Disk expansion of ubuntu system in vmware fusion 12 under Mac

Reprinted to https://blog.csdn.net/zsx1314lovezyf/article/details/105445554

Add hard drive memory

The virtual machine must be powered off

Enter virtual machine settings

Insert picture description here

Select hard drive

Insert picture description here

Adjust to the size you want, click Apply, wait for completion, and turn on the virtual machine

Insert picture description here

Enter the system to install the gparted partition management tool

sudo apt-get install gparted

Insert picture description here

Open the partition tool sudo gparted

Insert picture description here

Allocate space

Select sda5, right click to prohibit swap space

Insert picture description here

Select sda5, right click to delete

Insert picture description here

Select sda2, right click to delete

Insert picture description here

Select sda1, right click to change the size

Insert picture description here

Set the size of sda1, click to resize

Insert picture description here

Select the unallocated space, right click to create

Insert picture description here

Select the extended partition, click Add

Insert picture description here

Select the unallocated space, right click to create

Insert picture description here

Select the file system as: linux-swap, click Add

Insert picture description here

Click save

Insert picture description here

Click to apply

Insert picture description here

After waiting for completion, click close

Insert picture description here

Restart the operating system, reboot

df -h view the disk partition after carving.

In addition, fdisk -l is to view partition information,

To operate the disk, you need to execute a specific disk, such as fdisk /dev/sda

Common commands:

p: Display disk list information

d: delete a disk

q: Exit without saving

w: save and exit 

Guess you like

Origin blog.csdn.net/ynshi57/article/details/110728754