Adding swap

0

grep SwapTotal /proc/meminfo
dd if=/dev/zero of=/swapfile bs=2048 count=17408000
dd if=/dev/zero of=/swapfile bs=2048 count=8704000
df -h
chmod 600 /swapfile
sudo mkswap /swapfile
swapon /swapfile
vi /etc/fstab
mount -a
df -h
free -h
grep SwapTotal /proc/meminfo

Swap Mount

/swapfile swap swap defaults 0 0

Share.

About Author

Leave A Reply