Search This Blog

Friday, December 30, 2011

Expand your Root partition in Linux. [Tutorial]



Here is a demo of how to expand the size of any partition in Linux. It could be either Root or Home or any other partition.

Prerequisites:
=> An empty partition just before or after your partition that needs to get expanded.
=> A separate installation of Linux in case you are expanding the root partition. Since the drive getting expanded needs to be un-mounted at the time of expansion.
=> Gparted Partition Editor. (usually comes pre-installed with Ubuntu)

My Laptop has 80GB of hard disk and currently has 4 OS installed. The pic below shows the scheme.
34GB for Windows
10 GB for ubuntu B
10 GB for Ubuntu N
and remaining 20 GB partitioned between swap, home and root partitions of my another Ubuntu installation that i generally use.
I realized that i was running out of space on my Ubuntu B partition while i was rarely using Ubuntu N. So, i decided to format the Ubuntu N installation and allocate the free space to Ubuntu B.

To format a partition, right click on the partition and format it. Gparted doesn't format it rightaway, but queues the action. Now the Free space is being shown as "unallocated".

To re-size the partition, right click on the partition to be modified and click on "resize".
This would prompt the box as shown in the above pic. you can either change the values or drag and shift the blue bar position to increase the size according to your requirement.

This is how it looks when the partition has been re-sized. I allocated the complete space to my partition.


Now it shows the new size of my Ubuntu B partition and 2 operations as pending.

Click on the green "tick" button to apply the operations. All the changes made till this point can be reversed as these are only the queued operations. Once the changes are applied, they will be permanent on the hard-disk.





Voila!!! The task is done. Now my Ubuntu B partition is of approx 20GB, without formatting the installation of Ubuntu B.

1 comment:

  1. Your Linux video is really helpful. Because i overall work do in Linux. My friend is really need of this post. I shared this post in Car towing service site. Thanks for sharing.

    ReplyDelete