0
点赞
收藏
分享

微信扫一扫

Hyper-V Ubuntu 22.04 磁盘扩容

艾晓雪 2022-10-09 阅读 79

扩容时,虚拟机关机状态或开启状态都可以

 step1 : 在 Setting 中,选择硬盘,然后 Edit

Hyper-V Ubuntu 22.04 磁盘扩容_磁盘扩容

step2 :t选择扩容 Expand 选项

如果Ubuntu 处于开机状态, 则只有一个 Expand 选项

Hyper-V Ubuntu 22.04 磁盘扩容_ubuntu_02

如果 ubuntu 处于关机状态,则需要选中对应的 Expand 扩容选项

Hyper-V Ubuntu 22.04 磁盘扩容_磁盘扩容_03

step3 注意,此处输入的是扩容后的最终大小, 比如当前已经分配了 30GB ,new size 则最少是 31GB,下一步

Hyper-V Ubuntu 22.04 磁盘扩容_ubuntu_04

step4, 查看 summary, 没问题则点击 Finish

Hyper-V Ubuntu 22.04 磁盘扩容_磁盘扩容_05

step5 打开软件 GParted

如果是最小化安装的系统,没有 GParted 软件,则需要手动安装, 可通过 Ubuntu Software 安装

Hyper-V Ubuntu 22.04 磁盘扩容_磁盘扩容_06

或手动执行

sudo apt-get install gparted

step6 安装完 gparted 后, 打开软件,会提示有空间未被使用的警告,点击 Fix

Hyper-V Ubuntu 22.04 磁盘扩容_ubuntu_07

step7 在弹出的框中会发现有5GB 的未分配 unallocated 空间

Hyper-V Ubuntu 22.04 磁盘扩容_ubuntu_08

step8 点击要扩展的分区, 鼠标右键,选择 Resize/Move

Hyper-V Ubuntu 22.04 磁盘扩容_ubuntu_09

step9. 如果要将全部大小都使用,则在 New size 处输入 Maximum Size , 完成后,点击 Resize

Hyper-V Ubuntu 22.04 磁盘扩容_磁盘扩容_10

step10. 点击确定

Hyper-V Ubuntu 22.04 磁盘扩容_磁盘扩容_11

step11. 点击apply

Hyper-V Ubuntu 22.04 磁盘扩容_ubuntu_12

step12. 完成

Hyper-V Ubuntu 22.04 磁盘扩容_磁盘扩容_13

最后查看磁盘空间大小

df -h

举报

相关推荐

0 条评论