Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

How can I delete a swap partition?

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

Previous topic - Next topic

Otto_Van_Chotto

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

ionmich

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!

lami07

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
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="//irc.freenode.net"]irc.freenode.net[/url]

View the most recent posts on the forum