-
Check current state of swap
swapon -s
-
Turn off the swap
swapoff -a
-
Formate a file or block device as swap
mkswap /dev/sdX
-
Update fstab to mount this swap devie/file on every boot
echo "/dev/sdX swap swap default 0 0" >> /etc/fstab
-
Enable swap for current boot
swapon /dev/sdX
orswapon -a
-
Verify current state of swap
swapon -s
Created
December 17, 2021 17:35
-
-
Save kapil1024/06b387aad37fc64c80f4ef2365db6855 to your computer and use it in GitHub Desktop.
Enable swap space to virtually expand the RAM
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment