|
Worry about creating a virtual machine hard disk capacity is too real disk space occupied by the General Assembly, the hard disk capacity is set very small, but to wait until the virtual machine installed system and then install other software, only to find the hard disk capacity is not enough. This need to find ways to expand Ubuntu root partition, Here I introduce such a method.
1. Modify the size of the hard disk
In WMware installation directory executable file named vmware-vdiskmanager.exe, open the console in the windows and into the WMware installation directory, use the following command (assuming my virtual machine files in E: \ VMware \ Ubuntu \ Ubuntu.vmdk):
vmware-vdiskmanager.exe -x 16Gb e: \ VMware \ Ubuntu \ Ubuntu.vmdk
Where: -x 16Gb hard disk represents the expansion tie to 16Gb, behind e: \ VMware \ Ubuntu \ Ubuntu.vmdk virtual machine files.
After this process is complete, open vmware, virtual machine running again, this time the size of the hard disk on the virtual machine display has changed.
The following information is displayed correctly when you run:
note:
1. If there are spaces in the path exists, use double quotation marks to enclose path.
2. The above process is carried out under the windows console.
3. The above process is required in the case of vmware closed.
2. Hard Disk
Use fdisk -l command to check the hard drive:
In this case the size of the hard disk has become 16GB (17.2GB), due to the new hard drive and no partitions, so the following does not appear in the following sda1, sda2, sda5 is possible to use a hard disk, or the total amount of the original 6G, now need to do is to partition the new hard disk. There is a software called gparted, can operate like Linux partition in Windows partitionmagic as we can at the official website to download the gparted-live-0.8.0-5.iso (http://nchc.dl.sourceforge.net/project/gparted /gparted-live-stable/0.8.0-5/gparted-live-0.8.0-5.iso) this file, and then load the CD-ROM drive and restart the VMware virtual machine, open the virtual machine in an instant press the ESC key so that VM BIOS boot from CD-ROM
Then select GParted Live (Default settings) In the following screen, click Enter:
Then you can enter the following interface to partition:
Finally, in relation to partition the hard drive. We want to expand the size of the Ubuntu root partition, so you can transfer large will sda1. But swap partition behind sda1, sda1 tune does not move, you can delete the first swap, the large sda1 tune, to swap left with the memory space as large, then put this into such a big space swap partition. Finally, click Apply to restart a success. Then use fdisk -l command, you can see the Ubuntu root partition bigger |
|
|
|