How to resize the root partition of VM by gparted
You can resize the root partition on Ubuntu by booting from the installation disk (a live USB) and using a partition editor like gparted, which is available in the live environment, to adjust the size of your root partition directly on your system disk Click “Apply All Operations”