1、首先查看swap大小
# free
total used free shared buffers cached Mem: 3922944 158168 3764776 0 6948 37384 -/+ buffers/cache: 113836 3809108 Swap: 0 0 0
# dd if=/dev/zero of=/doiido/swap bs=1024 count=8388608
total used free shared buffers cached Mem: 3922944 158168 3764776 0 6948 37384 -/+ buffers/cache: 113836 3809108 Swap: 8388608 0 8388608
这样SWAP分区就创建完毕
原文地址:http://blog.csdn.net/doiido/article/details/43707319