Windows uses one or two swap files inside the C:\ Drive while Linux uses normally a swap partition .
To create a swap-file from the bash terminal console :
Code:
dd if=/dev/zero of=${localSMNTPT}/pupswap.swp bs=1048576 count=$SWPSIZE
to create an empty file
and
Code:
mkswap ${localSMNTPT}/pupswap.swp
to create the swap file system;
where localSMNTPT could be something like localSMNTPT=/mnt/sda2
bs=1048576 Bytes =1024 KiloBytes KiB =1MiB
SWPSIZE=256 for 256 MiB if bs=1048576
*
To activate the swapfile :
Code:
swapon /mnt/sda2/pupswap.swp
*
NOTE : Code is from Puppy Linux 4 series /etc/rc.d/rc.shutdown