Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 have a 12 GB partition with Linux installed in it, but I started runnung out of space. I tried to use gparted on a CD, but for some reason, I could not add space to the extended partition.
This is what my partition table looks like:

/dev/sda3     : extended        12    GB    
/dev/sda5     : ext4            10    GB    
/dev/sda6     : linux-swap      2     GB           
unallocated   :                 69,77 GB

i want to add unallocated to /dev/sda5. I tried to resize both dev/sda3 and /dev/sda5, but no free space is shown in the window.

Thanks in advance.

share|improve this question
up vote 8 down vote accepted

Using Gparted from a Live CD:

  1. Select the swap partition

  2. In the Partition menu, click on "swapoff"

  3. Delete the swap partition

  4. Recreate swap at the end of Unallocated (faster than moving it)

    Optional: Turn swap back on

  5. Resize sda5 as desired

share|improve this answer
I didn't check if that was swap, obviously your idea is better than mine ;) – Bahaïka Apr 9 '12 at 16:59
  1. Extend the extended partition.
  2. Move the 2 GB partition at the end of the extended partition.
  3. Extend the 10 GB partition.

That will normally do the trick.

share|improve this answer

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.