Steps#
- Power off the virtual machine.
- Edit virtual machine settings > Hardware > Hard Disk (If an error occurs, refer to "Error Resolution" below):
After the expansion progress is complete, power on the virtual machine. - After powering on, refer to this article for disk expansion operations within the operating system. It is important to note that most commands need to be prefixed with
sudo
to elevate permissions: Expand Virtual Space on Ubuntu Server 22
Error Resolution#
Insufficient space in the file system to perform the selected operation#
Following the instructions below, I deleted some long-unused files to free up enough space to support the expansion operation. Alternatively, you can also copy the files to a partition with sufficient space, perform the expansion operation, and then copy them back to the original location.
https://blog.csdn.net/Haidijoya/article/details/127980779