wsl --shutdown diskpart # open window Diskpart select vdisk file="C:Users<user>AppDataLocalPackagesCanonicalGroupLimited.Ubuntu20.04onWindows_79rhkp1fndgscLocalStateext4.vhdx" attach vdisk readonly compact vdisk detach vdisk exit