1, edit virtual machine settings, check the right side of the hard drive Utilities->expand (virtual machines can not be mirrored), enter the size to expand to
2, after the expansion into the system df-h will find no size changes, but fdisk-l can find that the hard disk space has changed, but the expansion of the space has not been formatted partition so not recognized
3. FDISK/DEV/SDA partition-->m (Help)-->n----and input partition number->w save
4. MKFS.EXT3/DEV/SDA4 formatted partition
5, new mount point/software mount Partition Mount/dev/sda4/software
6, if you want to make the mount long-term effective, that is, restart the system after the random mount need to modify the/etc/fstab file
As follows:
[[Email protected] etc]# VI fstab (add below)
/dev/sda4/software ext3 defaults 1 1
[Email protected] etc]# df-h
File system capacity has been used with available% mount points
/dev/sda2 7.7G 4.0G 3.4G 55%/
/DEV/SDA1 99M 15M 80M 16%/boot
Tmpfs 442M 0 442M 0%/dev/shm
/DEV/SDA4 20G 173M 19G 1%/software
Adding hard drives is the same principle.
VMware Workstation Linux Disk expansion