Increase Ubuntu partition size under virtual machine
I use MacBook with Mac OS X 10.9.1. I have installed VMWare Fusion 6.0.2, under which Ubuntu 12.04 LTS has been installed as virtual machine.
Now I need to increase the size of the disk of Ubuntu
. GParted
shows that there is 80G
unallocated:
However, right-clicking on the first partition shows that Resize/Move
is gray, then I don't know how to continue...
PS: this post seems to have same problem as I. If so, could anyone tell me how to Boot from the Ubuntu LiveCD
under VMWare Fusion
?
Edit1:
I have set up the following in VMWare to try to Boot from the Ubuntu LiveCD
:
Once started, it is odd that I didn't see anything different from a boot from hard disk... Still, I opened terminal, turned swap off, and launched GParted. In GParted, I deleted the swap (as well as the whole extended partition containing it). However, I could not resize/move /dev/sda1
. Could anyone help?
Edit2:
Following the comment of @Hadi , I think creating another disk is not a bad idea, a disk usage analysis shows the follows. Could anyone suggest which of my folders should be mounted to a newly created disk?
You have to boot from Ubuntu live disk.So that you can be able to resize your installed Ubuntu partition on Virtualbox.
-
First Right-click on the Ubuntu virtual machine and select settings option.From the settings menu, select Storage option.Finally choose CD/DVD virtual disk file(choose an iso file of Ubuntu in which you want to boot).I had choosed Ubuntu 13.04 iso file.
-
Now from the Ubuntu settings, select System option.From the boot-order, enable only CD/DVD option and put it on the top.
Now strat the selected Ubuntu virtual machine(Ubuntu is name given for my virtual machine).
-
It will boot from the iso file(live disk) you have to select Try Ubuntu option on startup.Then open gparted from dash.
In my case /dev/sr0 represents Ubuntu 13.04 live disk and
/dev/sda1
represents the partition where Ubuntu 13.10 is installed. Now You can be able to unmount all the
/dev/sda
disk partitions like in the above screenshot.Resize your
/dev/sda1
ext4 partition by adding the unallocated space with it or just add some space from the free space then using the remaining space, create an extended partition(make a swap within it).After resizing, shutdown the virtual machine and change the boot-order to Hard-disk on virtual machine settings.
It will boot from the hard-disk.Now your Ubuntu partition size will be resized.
Note: I am running Virtual box not vmware fusion.
All of above answers are right and whatever but I advise you by this:
Why should you extend your partition. You need more space Ok that's fine so you can just make another partition and move your home to.
What I mean the following:
Most user data are located under /home/... directories so what I'll do here is just create a new partition of your unallocated space and make your /home be mounted on. This has critical useful effect on your system in case of failure.
For multi-user systems or systems with lots of disk space, it's best to put /usr, /var, /tmp, and /home each on their own partitions separate from the / partition. source
Now let's go.
First using Gparted make the new partition and format it to ext4.
Now let's know the UUID of the newly created partition.
sudo blkid
copy the UUID of the newly created partition.
Now let's move your home to this partition
Open your /etc/fstab
gksu gedit /etc/fstab
add the following line:
UUID=THE COPIED UUID ABOVE /home ext4 defaults 0 2
Now save and reboot then Enjoy :)