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.
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.
copy the UUID of the newly created partition.
Now let's move your home to this partition
Open your /etc/fstab
add the following line:
Now save and reboot then Enjoy :)
You can insert the ISO image of Ubuntu into the VMWare's CD drive, and you should be able to run a live session of Ubuntu from there.
actually gparted itself can help. When you initialize the disk/format it as linux type 8e, it actually assigns /dev/sda3 as disk id. Then you can use " fdisk /dev/sda" to see and list it.. Rest is easy, extending the volume group to see the disk, with vgextend, lvdisplay, pvextend ...
If you just want to have more space, no matter whether by increasing the size of an existing partition or by creating a new partition, you can simply create a new partition and mount it.
You can use gparted to create a new partition, for example, /dev/sda3 of file system ext4, out of your unallocated space:
Then edit /etc/fstab to mount automatically each time you boot the computer:
And add the following line:
Now reboot your VM, and you shall see your newly create file system: