1, start the VMware program, click on the hard disk, pop up the virtual Machine Settings window, select the hard disk, click on the lower right of the extension, enter the expansion of the desired capacity, click on the extension:
2, start Linux, log in as root, perform fdisk-l view disk information:
Delete logical partition: FDISK/DEV/SDA, D-4
Create logical partition: FDISK/DEV/SDA, N-, enter (start sector selection default), enter (end sector selection default)
New partition on logical partition: FDISK/DEV/SDA-N, carriage return (Start Sector selection default), +2048m (Sda5 swap)
New partition on logical partition: FDISK/DEV/SDA-N, carriage return (Start Sector selection default), +1000m (SDA6)
...
Now partition settings information in memory, write to disk: Fdisk/dev/sda W
Let the core know that the disk has changed: FDISK/DEV/SDA-Partprobe
Finally, use Fdisk-l to view the disk information
Linux (13) CentOS 7 VMware extended Linux hard disk space