#Windows Linux Sub System 压缩
用系统管理员登录 Power Shell
1)运行diskpart
c:> diskpart
Diskpart>
2)选择磁盘文件:
Diskpart> select vdisk file=“C:\Users\wangy\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu20.04onWindows_79rhkp1fndgsc\LocalState\exi4.vhdx”
Diskpart> DiskPart successfully selected the virtual disk file.
3) 压缩:
Diskpart> compact vdisk
Diskpart> DiskPart has encountered an error: The process cannot access the file because it is being used by another process.
See the System Event Log for more information.
4)说明LinuxSubSystem还在运行,
停止服务HV Host Service 和Hyper-V打头的服务,再次运行compact vdisk
Windows Linux Sub System vhdx 磁盘压缩
最新推荐文章于 2023-04-06 10:10:13 发布