0

How to delete the swap partition in linux

I need to delete the swap partition in my OS and am using Ubuntu-16.04 OS.... Which is the safest way to remove it..????

Linux swap space Add a comment
james
asked Feb 09 2017

Answer

0

Swap partition can be removed by simply using the below command...

# swapoff -a

You can check the swap space simply using free command.

Add a comment
jagannatharumugam
asked Feb 12 2017
edited Oct 05 2018
Post your Answer
0

swapoff turns swap off. Use a partitioning tool (e.g. fdisk, parted, Gparted...) if you want to delete it as well. Note that (re-)partionning always include risk.

Add a comment
tuk0z
asked Dec 19 2017
edited Oct 05 2018
Post your Answer