Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 had a dual boot-able system with Ubuntu 12.04 and Debian. I wanted to remove debian so I opened GParted and deleted the partition with Debian. After doing so I thought I could simply resize the Ubuntu partition but I am not able. Now I am left with partitions:

1) /dev/sda1 (ext4)

2) /dev/sda2 Extended >unallocated

3) /dev/sda5Linux-swap

Sorry can't attach a picture.

I also ran GParted from a live CD but had the same problems.

All I really want is Ubuntu on one partition and of course the linux swap.

Does anyone have a way to fix my situation I would appreciate it.

Thank you.

share|improve this question

You have to make all your changes one step at a time. First of course you have to be running from a live CD with all the partitions unmounted, including swap. You can unmount them from gparted if need be.

  1. Resize the extended partition (/dev/sda2) , free space in front , adjacent to /dev/sda1

  2. Apply changes.

  3. Resize /dev/sda1

  4. Apply changes.

share|improve this answer
Hello. Thank you for your reply. Unfortunately,I am unable to unmount either from the GParted or Disk Utility apps when running from the live cd. – gilthethrill Apr 1 '12 at 2:36
When running live, what can you not unmount ? sudo swapoff -a will do swap. look closer at the menu I gparted, unmount should be an option. – bodhi.zazen Apr 1 '12 at 2:40
If I select either of the partitions in GParted live, the unmount is not highlighted. – gilthethrill Apr 1 '12 at 3:41
Here is a snapshot of terminal listing partitions: – gilthethrill Apr 1 '12 at 4:04
Here is a screenshot of GParted: – gilthethrill Apr 1 '12 at 4:06

Your Answer


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.