UbuntuHelp:SwapSpace
来自Ubuntu中文
Swap Space
Ever wanted to change your amount of swap space ? Now you can ! First add a new disk (sdb) to your physical or virtual machine then use fdisk to create an appropriate partition for your swap space (type 82)
# fdisk /dev/sdb
then
# free -k # mkswap -L sdb-swap /dev/sdb1 # swapoff -a # vi /etc/fstab LABEL=sdb1-swap swap swap defaults 0 0 # swapon -a # free -k
Finally reboot to check new swap area gets picked up on reboot !