1.虚拟机关机
右击虚拟机/设置,进入虚拟机设置
3.启动虚拟机,进入命令行

4.fdisk -l查看要扩展的分区名
5.resize要扩容的分区
sh
su root
parted /dev/sda resizepart 3 100%
fdisk -l
resize2fs /dev/sda3
df -T
- 完成
6.其他
进入磁盘管理
sh
fdisk /dev/sda
sh
m 菜单
d 删除分区
n 创建分区
w 保存