
Originally Posted by
_TUX_
uummm... How do you make a swap file and not a partition?
The advantage of a swap file is that you don't need to find an empty partition or repartition a disk to add additional swap space. If your still interested, here is how to create a 1GB file, type:
Code:
dd if=/dev/zero of=/swapfile bs=1024 count=1048576
/swapfile is the name of the swap file, and the count of 1048576 is the size in kilobytes (i.e. 1GB). Similarly, mount it using the swapon command:
The /etc/fstab entry for a swap file would look like this:
Code:
/swapfile none swap sw 0 0
Hope this helps.......
Bookmarks