Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Nov 11 '11 at 17:09

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

add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.