Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've installed Ubuntu on my computer but I did a mistake during the installation and it created two swap's.

In fact I had tree partitions (system, home, swap) but the installator crashed so I restarted the installation and it has installed everything in the system partition.

So now I separated the home in the appropriate partition but I've two swap partitions.

How can I delete one ? If I delete one, how will it go ?

share|improve this question

migrated from Nov 11 '11 at 17:09

This question came from our site for professional and enthusiast programmers.

up vote 2 down vote accepted

you can safely delete one of the swap partitions using gparted disk management utility. but first remove its by running command

swapoff /dev/"swap parition"

and then delete, entry from /etc/fstab , so that it might not try to mount it again on reboot.

share|improve this answer

Boot with a LiveCD and use gparted to remove the swap partition. You can then resize the space however you'd like.

share|improve this answer
no need to use a livecd. – Matt H Oct 31 '12 at 23:20
If you want to expand a filesystem that's mounted you'd need to use a livecd. – Rob Nov 2 '12 at 22:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .