Today, installed a relatively large software package, found that VMware under the Ubuntu18.04 disk space is insufficient, online access to the data found a relatively simple and quick disk expansion way, record.

VMware expands disk space

  1. First, you need to shut down the virtual machine.
  2. Enter the virtual machine setting interface, as shown below:

As shown in the figure, the maximum disk capacity of the VM is 40 GB.

  1. The disk expansion page is displayed. Change the expanded disk capacity to 41 GB and save the configuration.

Gparted Merges disk space

  1. Ubuntu does not have the Gparted tool installed by default. You must install it yourself. The installation command is as follows:

    sudo apt-get install gparted

  2. Gparted requires the root permission. Run the following command to go to the gParted configuration screen:

    sudo gparted

  3. First, take a look at the disk usage before capacity expansion: df -h

4. Gparted lists all partitions of the disk in the current system. You can see the unused status of the partition we just expanded, as shown in the figure:5. All we need to do is merge this part of disk space into the first partition. Let’s edit the first partition, right click and choose Change Size, as shown in the picture:6. Adjust the disk size to the maximum, as shown in the following figure:7. Click the “Confirm” button above to perform disk expansion, as shown in the figure:8. Wait a moment, capacity expansion is successful, as shown in the figure:9. View the system partition information again, as shown in the following figure:

conclusion

From the above steps, you can see that we can easily expand the disk space of Ubuntu partition using vmware and GParted, which can be so simple.