Mauro Souza wrote:
Yes, there is...

This will create a 128MB swapfile:

cd /mnt
dd if=/dev/zero of=one.swp bs=1024 count=131072
mkswap -c /mnt/one.swp
swapon /mnt/one.swp
free -m


Note that a swap file must not contain any holes (so, using cp to copy a
large file to be used as swap is _not_ acceptable).  As Mauro indicated,
make sure you use `dd` to create the swapfile.


After that, add the folloowing line to /etc/fstab:
/mnt/one.swp    none    swap    defaults        0 0

Only needed if you want to retain this swap space across reboots.  If
you're in a pinch and need additional swap only until you add some
VDISKs, this might not make sense for you guys.

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to