VirtualBox 虚拟机硬盘扩容
不够用
$ df -h
文件系统 容量 已用 可用 已用% 挂载点
udev 1.9G 0 1.9G 0% /dev
tmpfs 394M 2.9M 391M 1% /run
/dev/sda5 98G 59G 35G 63% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/loop1 100M 100M 0 100% /snap/core/11420
/dev/loop2 56M 56M 0 100% /snap/core18/2066
/dev/loop3 56M 56M 0 100% /snap/core18/2074
/dev/loop4 219M 219M 0 100% /snap/gnome-3-34-1804/66
/dev/loop0 100M 100M 0 100% /snap/core/11316
/dev/loop5 219M 219M 0 100% /snap/gnome-3-34-1804/72
/dev/loop7 66M 66M 0 100% /snap/gtk-common-themes/1515
/dev/loop6 65M 65M 0 100% /snap/gtk-common-themes/1514
/dev/loop8 51M 51M 0 100% /snap/snap-store/542
/dev/loop9 2.7M 2.7M 0 100% /snap/upx/1
/dev/loop10 33M 33M 0 100% /snap/snapd/12398
/dev/loop11 14M 14M 0 100% /snap/universal-ctags/552
/dev/loop12 97M 97M 0 100% /snap/typora-alanzanattadev/2
/dev/loop13 33M 33M 0 100% /snap/snapd/12704
/dev/loop14 51M 51M 0 100% /snap/snap-store/547
/dev/loop15 12M 12M 0 100% /snap/universal-ctags/146
/dev/sda1 511M 4.0K 511M 1% /boot/efi
tmpfs 394M 24K 394M 1% /run/user/1000
VirtualBox 操作
管理 –> 虚拟介质管理 –> 拖动虚拟介质大小滑动条 –> 应用
Linux 操作
$ gparted
右击 /dev/sda2
右击 /dev/sda5
$ df -h
文件系统 容量 已用 可用 已用% 挂载点
udev 1.9G 0 1.9G 0% /dev
tmpfs 394M 2.9M 391M 1% /run
/dev/sda5 148G 59G 83G 42% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/loop1 100M 100M 0 100% /snap/core/11420
/dev/loop2 56M 56M 0 100% /snap/core18/2066
/dev/loop3 56M 56M 0 100% /snap/core18/2074
/dev/loop4 219M 219M 0 100% /snap/gnome-3-34-1804/66
/dev/loop0 100M 100M 0 100% /snap/core/11316
/dev/loop5 219M 219M 0 100% /snap/gnome-3-34-1804/72
/dev/loop7 66M 66M 0 100% /snap/gtk-common-themes/1515
/dev/loop6 65M 65M 0 100% /snap/gtk-common-themes/1514
/dev/loop8 51M 51M 0 100% /snap/snap-store/542
/dev/loop9 2.7M 2.7M 0 100% /snap/upx/1
/dev/loop10 33M 33M 0 100% /snap/snapd/12398
/dev/loop11 14M 14M 0 100% /snap/universal-ctags/552
/dev/loop12 97M 97M 0 100% /snap/typora-alanzanattadev/2
/dev/loop13 33M 33M 0 100% /snap/snapd/12704
/dev/loop14 51M 51M 0 100% /snap/snap-store/547
/dev/loop15 12M 12M 0 100% /snap/universal-ctags/146
/dev/sda1 511M 4.0K 511M 1% /boot/efi
tmpfs 394M 24K 394M 1% /run/user/1000