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 am trying to resize my /dev/sda1 as shown in the diagram using the gparted Live cd.However although I have unallocated space I am unable to expand it.I have tried expanding /dev/sda2(which works) and then decreasing its size from the beginning(which doesnt). But that doesnt work either. Could someone please tell ,me how to resize my /dev/sda1 partition.

enter image description here

share|improve this question
up vote 9 down vote accepted

The extended sda2 partition is in the way. Do one of two things:

  • If Gparted allows, move sda2 to the very right, and then you'll be able to expand sda1.
  • Alternatively, delete sda2, expand sda1 by 2GB and then recreated your swap partition (an extended partition isn't required if you have 4 or less primary partitions).
share|improve this answer
The first is not possible since it does not allow me not do that. Does the swap partition have any specific data in it or is it simply empty space to use when the ram is overloaded with the swap flag turned on? – Developer Android Aug 13 '12 at 5:38
Your understanding of swap is correct - there is no data in it. – izx Aug 13 '12 at 5:40

The above is correct, sda2 is in the way - you will be able to move it by following this:

share|improve this answer
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – Seth Dec 14 '12 at 1:31

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.