setting swapfile size

Kok, Auke sofar at
Sat Jul 21 00:25:05 CEST 2007

cesar l. wrote:
> Hi,
> How do I set the swapfile size?

swapfiles are made like this:

dd if=/dev/zero of=swapfile bs=1024 count=${size in kb}

to change sizes, just replace your swapfile with a new one:

swapoff swapfile
rm swapfile
<make new swapfile>
mkswap swapfile
swapon swapfile

make sure that you update your fstab if needed.


More information about the Lunar mailing list