Create the swap file:
dd if=/dev/zero of=/swap0 bs=1m count=300 chmod 0600 /swap0 echo "md99 none swap sw,file=/usr/swap0,late 0 0" >> /etc/fstab
The md(4) device md99 is used, leaving lower device numbers available for interactive use.
Swap space will be added on system startup.
To add swap space immediately, use swapon(8):
swapon -aL
—
return to gimbo wiki home page