


As for the end position, I simply specified it to increase by 15G, so the end position is calculated dynamically. Note here that the start position of the new partition should be close to the end position of the existing Linux LVM partition, as shown in the figure below. Use the command sudo fdisk /dev/sda, and then select n to create a new partition, the type is p, and the number is 3. The ubuntu command sudo fdisk -l can see that the new disk size has taken effect.īut the size of the file system viewed by df -H has not changed. I have seen the size take effect in VirtualBox. Use the command VBoxManage.exe modifyhd -resize to change the size. The current disk space can be viewed through the command line VBoxManage.exe list hdds. So I decided to adjust the size of the ubuntu virtual machine disk to 30G. (3) Clean up orphaned packages that are no longer needed by the system.

(2) sudo apt-get clean (the installation package of the software is not uninstalled) (1) sudo apt-get autoclean (installation package of uninstalled software) I encountered an error message when I installed Cloud Foundry in ubuntu installed with VirtualBox, and the disk space is insufficient:Īfter cleaning up with these three commands, the result is still not ideal:
