Quote |
Operation.........................................................................Command Ensure you have sufficient ...............................................df -h diskspace to create the disk Check your existing swap space......................................swapon -s Create a 32MB file for use as additional swap space......dd if=/dev/zero of=/dev/swapfile count=32768 bs=1024 (for 32Meg file (count=65536 for 64Meg)) Confirm the new swapfile is actually 32Megs................................ls -l /dev/swapfile Convert this new file to a swap file..................................mkswap /dev/swapfile Add this new swap space (swapfile)................................swapon /dev/swapfile to your existing swap space (swap partition) Check your new swap space............................................swapon -s |
Code Sample |
swapon /dev/swapfile |