SparkyLinux Forums

Software & hardware support => Newbie questions => Topic started by: Otto_Van_Chotto on February 23, 2019, 08:00:01 PM

Title: How can I delete a swap partition?
Post by: Otto_Van_Chotto on February 23, 2019, 08:00:01 PM
The installation made a 17GB swap partition which I don't have plans to use (I don't hibernate my PC). How can I safely delete it?

Thanks
Title: Re: How can I delete a swap partition?
Post by: ionmich on February 23, 2019, 11:24:38 PM
As root invoke fdisk -l to list your drives. Then fdisk /dev/sdx x being the drive descriptor in question. "m" will list all the command options. "p" will print all the partitions and you can see which one is formatted as swap. "d" will delete it.  "w" will write (save) the change.

CAREFUL! The wrong choice will cause much damage!
Title: Re: How can I delete a swap partition?
Post by: lami07 on February 24, 2019, 09:15:01 AM
I advise you to disable swap (or to create swap file) before making any changes to swap partition. Info at the link below

https://wiki.archlinux.org/index.php/Swap#Swap_partition