Reference:
http://m.blog.csdn.net/blog/pcsxk/38501579
First,VMware to expand the original disk space
This is more intuitive.
1. In the shutdown state, select disk---Utilities, expand
2. Change the "max disk size" to the value you need in the pop-up window [my: 25g->120g]
3. After the extension is complete, VMware will prompt you to manually partition the virtual machine system in order to use the expanded space
Second, start the virtual machine system, partition (GParted)
1, install the free partition tool GParted, execute the following command
sudo Install gparted
2. Start GParted
sudo gparted
Click "Apply Changes"
Power off restart
Third, configuration Fstab to Enable automatic mounting of newly added partitions
1. Create a new directory
mkdir /home/tingpan/myspace
2. Read the new partition's UUID (for the Sda3 created earlier)
ls -l/dev/disk/by-uuid
3. Open the Fstab in root mode
sudo gedit/etc/fstab
4, add the following at the end, please replace the value of the UUID yourself
5. Restart effective
Virtual machine Ubuntu New mount point for disk expansion