Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum

How can I delete a swap partition?

Started by Otto_Van_Chotto, February 23, 2019, 08:00:01 PM

Previous topic - Next topic


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?



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!


I advise you to disable swap (or to create swap file) before making any changes to swap partition. Info at the link below
Quote from: forum rulesWhen an issue has been resolved for you, please edit the original post to include <SOLVED> in the title. This provides a good indicator for users with a similar problem to check out the thread
Want to chat? Join #sparkylinux at [url="//"][/url]

View the most recent posts on the forum