Extend root partition with recently unallocated storage space [duplicate]
(Step 0:) Back up anything really valuable. This is a pretty tried and tested formula but things can go wrong. A power cut at the wrong moment could really ruin your day if you haven't backed up.
- Boot to a LiveCD or LiveUSB drive in "try me" mode.
- Load gparted (should be installed by default, you can apt-get it if it's not)
- Resize your partitions (right click, click resize, follow the instructions).
- Click apply and sit back while it does the job.
- Reboot, taking out the USB stick or CD when it tells you to.
If you have already installed Ubuntu 12.04, then install GParted with sudo apt-get install gparted
.
Launch it using Alt+F2, and typing gparted
.
In order to expand the 63GB partition, you must have unallocated space adjacent right to this partition. So first you will have to use GParted to resize a partition above or below your 63GB partition. Refer the following figure:
When you click on resize, a window will open where you can easily drag and resize your partition. Once the free space is made available, resize your 63GB partition just like the above covering that free space.
You can only re-partition unmounted partitions.
I have a gParted live disc ready for things like that. You can find it here: http://gparted.sourceforge.net/livecd.php
Basic features:
GParted enables you to easily manage your disk partitions:
- Create partition tables, (e.g., msdos or gpt)
- Create, move, copy, resize, check, label, set new UUID, and delete partitions
- Enable and disable partition flags, (e.g., boot or hidden)
- Align partitions to mebibyte (MiB) or traditional cylinder boundaries
- Attempt data rescue from lost partitions
Resizing is explained in the documentation of gParted. In short (the link has some extra information and tips):
Resizing and moving a partition can be performed by a single gparted operation. To resize a partition:
Select an unmounted partition. See the section called “Selecting a Partition”.
Choose: Partition → Resize/Move. The application displays the Resize/Move /path-to-partition dialog.
Adjust the size of the partition. See the section called “Specifying Partition Size and Location”.
Specify the alignment of the partition. See the section called “Specifying Partition Alignment”.
Click Resize/Move.