Quote:
Originally Posted by knc1
Well, if you find you have to use a partition (a device) rather than a file...
|
You can also make a new node inside /dev/ called swap for easier access:
Code:
mknod /dev/swap b 7 8 #b=block device, 7=use loop driver, 8=loop device number
Make a separate directory in /mnt/us/ called swap:
Code:
mkdir /mnt/us/swap
cd /mnt/us/swap
Make a new swap file:
Code:
dd if=/dev/zero of=swapfile bs=1M count=128
mkswap swapfile
Turn the file into a block device:
Code:
losetup /dev/swap /mnt/us/swap/swapfile
I made some scripts in /mnt/us/swap/ for easy swapping on/off:
swapon.sh
swapoff.sh
Swap on...swap off Sounds like wax on, wax off from the original Karate Kid, if you know what I'm talking about