VMware changes the disk space size of Ubuntu

Source: Internet
Author: User
Tags gparted
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.