VMware disk expansion

The first step: a virtual disk expansion

Method One: Select the disk capacity is needed in the virtual machine settings screen, then click on the button at the bottom right of the extension, you can start the expansion task:
Method 2: Ubuntu.vmdk file disk size expanded to 30GB

vmware-vdiskmanager -x 30GB D:/UbuntuDesk/Ubuntu.vmdk

Step two: disk partition

After the disk expansion, the operating system also does not recognize the spatial spreading out, this time we need to use the command to partition the space identified

  1. View existing partitions
sudo fdisk -l
  1. Start partition, here we expansion of hard drive is / dev / sda, you can already see the hard disk partition size from the view, to determine which hard drive partitions to go
sudo fdisk /dev/sda
  1. Enter the partition process, you need to pay attention to a few
    new partition
n

Create a primary partition, the remaining space can set the default

p

Finally, save the partition settings

w

The third step: file system

Change the partition file format, can be used dfto see mount / home partition file format

sudo mkfs -t xfs /dev/sda3

Step Four: Mount

Hanging on the hard disk to a specific directory, store files
manually mount

sudo mount /dev/sda3 /home/angel

If you want to automatically mount the boot, you can add the last line in / etc / fstab

/dev/sda3 /home/angel xfs defaults 0 0

reference

[1] VMware12 + Ubuntu16.04 virtual disk expansion http://www.voidcn.com/article/p-wzjeewca-bhr.html

Published 118 original articles · won praise 14 · views 50000 +

Guess you like

Origin blog.csdn.net/github_38641765/article/details/93336204