Change the swap partition priority

Change the swap partition priority.

1> Disable swap partition
#swapoff -a

2> change priority.
#swapon -p -1 /dev/sda11
#swapon -p -2 /dev/sda9

3> renable swap
#swapon -a

note : verify new status using “#swapon -s”

======================================================================================================

Delete Swap partition.

1> Disable that particular swap partition.
#swapoff /dev/sda11

2> remove entry from /etc/fstab

3> #mount -a

4> cfdisk command and delete partition as normal method

5> #partx -a /dev/sda

Note : verify new status using “#swaon -a” and “#swapon -s” command.

=====================================================================================================

Posted in partitions

Leave a Reply