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

2 Answers 2

up vote 6 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
add comment

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

http://www.rootusers.com/use-gparted-to-increase-disk-size-of-a-linux-native-partition/

share|improve this answer
1  
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
add comment

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.