当系统提醒容量低的时候,请及时对磁盘进行扩容,否则ubuntu会进不去系统,一直卡这里,如下图所示。
当你手足无措的时候,请不要哭泣,来我这个贴子看一看,说不定就能解决了。
- 关闭ubuntu系统,在安装目录找到VBoxManage.exe,默认路径为C:\Program Files\Oracle\VirtualBox\,在此目录先运行cmd。20480是20G,我要从10G扩展到20G。但是运行了命令后,我也不知为啥会报错,但试着用“VBoxManage list hdds”命令查了一下是否申请成功,结果歪打正着还真成了。
C:\Program Files\Oracle\VirtualBox>VBoxManage.exe modifyhd C:\VirtualBox VMs\ubuntu18045\ubuntu18045.vdi --resize 20480 (注释:重新定义磁盘大小)
Oracle VM VirtualBox Command Line Management Interface Version 6.1.16
© 2005-2020 Oracle Corporation
All rights reserved. <cnt>
Usage:
VBoxManage modifymedium [disk|dvd|floppy] <uuid|fi