Link to home
Start Free TrialLog in
Avatar of Isaiah Melendez
Isaiah Melendez

asked on

Re-sizing EX4 Ubuntu partition - Help

Currently I am trying to re-size my sda1 ex4 partition using a live ubuntu dvd but I can't seem to get gparted to help my current partition 248.59GB to use the additional free unallocated 577.41GB.  Any suggestions?

See images for the description also.
Part1.jpg
Part2.jpg
Avatar of rindi
rindi
Flag of Switzerland image

Delete the swap partition, and after that also the extended partition in which it sits. After that you can resize your sda1. When done create a new swap partition in the space left over. When that is done check your /etc/fstab file and change the entry for the swap partition so it reflects the new one (usually you have to change partition ID, which you can view via gparted).

The reason you can't resize now is because you have the swap partition between your current partition and the unallocated space. The space must always border right to the partition you want to resize.
Avatar of Isaiah Melendez
Isaiah Melendez

ASKER

Rindi,

There is a key the surrounds the extended and swap partition what do you suggest to get around that?

Currently the screen shots are done via live cd.
I don't understand what you are asking. Just delete the swap partition, then the extended one.
See the attached image
Part3.jpg
Just FIRST delete the swap partition, and AFTER that the extended one. The extended partition is a container for further partitions, and your swap partition is inside that, you can't delete an extended partition until all it's contained partitions are removed.

The reason for having extended partitions is because with the old MBR disk scheme you had a limit of 4 primary partitions per disk. So if you made one of the 4 possible primary partitions an extended one, you were then able to have many logical partitions inside that. With the new GPT disk scheme that limit has gone and you can have many primary partitions. So for those you don't have extended partitions anymore.
So it doesn't give me the option to delete it dose say Swapoff is that what I need to choose?
Yes, if the Ubuntu LiveCD is using the swap partition you must first turn swap off.
Ok after I have done that... How do I create the new swap and the extended?
If you don't intend to put more than 4 partitions on the Disk, you won't need the extended partition. In gparted just select new when you right click in the unallocated space you have left, and there you can select what type of format, or whether that new partition shall be a swap partition.
So the system will work fine with out swap or an extended correct?
ASKER CERTIFIED SOLUTION
Avatar of rindi
rindi
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial