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.


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.

  • 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. – Panther 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: pasteall.org/pic/29411 – gilthethrill Apr 1 '12 at 4:04
  • Here is a screenshot of GParted: pasteall.org/pic/29412 – gilthethrill Apr 1 '12 at 4:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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