Ask Your Question

Why does swap turn off if i restart or turn on my laptop?

asked 2016-01-11 04:56:48 -0500

ahmed751995 gravatar image

updated 2016-01-11 10:37:00 -0500

FranciscoD_ gravatar image

every time i restart my laptop or try to turn it on the swap is off and i turn it on using gparted and restart my laptop it return off again

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-01-11 09:25:43 -0500

aeperezt gravatar image

On your terminal issue command


It should start swap, but also make sure your swap partition is on your fstab normally on boot swapon is issue and if a swap entry is found on the fstab it will start it. On your terminal do:

grep swap /etc/fstab

It shoul return the line with the swap partition, make sure it is not commented

edit flag offensive delete link more



If this line is not there add it

/dev/sdax       swap            swap    defaults    0 0

sdax has to be adjusted to your actual swap partition. (look it up with lsblk).

florian gravatar imageflorian ( 2016-01-11 09:34:30 -0500 )edit

Question Tools

1 follower


Asked: 2016-01-11 04:56:48 -0500

Seen: 82 times

Last updated: Jan 11 '16