Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer

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: 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
show 4 more comments

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.