I installed a Ubuntu with VMware and selected a 40 Gb space during installation. I found that the space was insufficient during use. I still did not use the disk space in the VMware menu, there is no way to expand it. Shut down the ubuntu instance of the VM, edit the VM instance, and click "harddisk" in "VM-& gt; Setting", and select "fragment or resize" in Utilities to increase the disk space. If the version of the virtual machine is too old to use this function, add a new partition as follows:
I installed a Ubuntu with VMware and selected a 40 Gb space during installation. I found that the space was insufficient during use. I still did not use the disk space in the VMware menu, there is no way to expand it.
Shut down the ubuntu instance of the VM, edit the VM instance, click "VM"> "Setting", and click "harddisk". Select "Utilities" for partitioning or resizing to increase the disk space.
If the virtual machine version is too old to use this function, add a new partition as follows.
1. Install the Gparted software:
Sudo apt-get install Gparted
2. Shut down Ubuntu in Vmware first.
3. Use vmware's hard disk adjustment tool vmware-vdiskmanager.exe to change the size of the virtual disk. This tool is under the installation directory of vmware.
Vmware-vdiskmanager-x 30 Gb xxxx. vmdk
Xxxx. vmdk is the file generated after you install the Virtual Machine (you must add the full name of the absolute path and name to find this file)
4. Open the system-> Gparedd
The Space Distribution of the entire disk is displayed. One of them is/dev/sda3 (the name may not necessarily be the one) not mounted.
5. Right-click and choose format 4. After formatting, the partition can be used.
6. If you want to mount this partition to a directory under home, such as d
Sudo mount/dev/sda3/home/d
7. Check whether the mounting is successful:
Sudo df-h