Why my swap memory is zero? Print

  • 9

At first run cat /etc/fstab and make sure you have the following line:

/dev/sda1               /                       ext3    defaults                        1 1

/dev/sda2               none                    swap    defaults                        0 0 


if no, run nano or any other text editor to edit /etc/fstab:

Preserve this line in the file:

none    /dev/pts        devpts  rw      0       0


and add in :

/dev/sda1               /                       ext3    defaults                        1 1

/dev/sda2               none                    swap    defaults                        0 0 


save the file and reboot the VPS.

You should see your swap memory with value when run free -m

 


 


Was this answer helpful?

« Back