https://blog.csdn.net/weixin_39510813/article/details/78387334? FPS=1 & amp; LocationNum=7
We in the vm virtual machine disk extension:

Set the disk size and then click the extension:

Vm prompt found extension after success, virtual machine from the client operating system for internal disk partition and extended file system:

Ubuntu open my computer, open a terminal, type sudo apt - get the install gparted installation gparted, then sudo gparted running, the results are as follows:

Find our 19 g, swap partition about 1 g, this is our previous 20 g, in the us in the vm for the Ubuntu after the disk to 50 g capacity, in the bottom again 30 g of unallocated space,

First to disable the swap partition and then delete the original extended partition, so our 50 g disk is only primary partition and undistributed

Now I want to expand the primary partition according to the links above post, only to find that can't change the partition size

Excuse me, where is set wrong, lead to cannot change/dev/sda1 primary partition size, how to set?