To reset the size of the virtual machine:
Modify the expanded disk size
3 Step three
4 Start Linux
5 Use fdisk–l command to view disk information
6 open a terminal window and view parted Command
Mans parted
input parted command:
Use Mkpart command to Partition
note the units of the values above the start and end points are M
from the above you can know that the newly added disk is: /dev/sda3
7 Formatting Partitions
sudo mkfs.ext4/dev/sda3
In this step, the formatting has been completed.
8 Create a mount point Mydisk, and mount the partition to Mydisk directory under
9 to this section, the disk has been re-partitioned and the file system has been set to Ext4 File System
Ten if you want to make this configuration Linux It also works after a reboot to configure the relevant files
Vim/etc/fstab
A Restart Linux . View partition status sudofdisk-l
2. When the Linux disk size in VMware is not large enough, the solution to modify the Linux disk space size in VMware