Fundamental Docker Jargon
Fundamental Docker Jargon
April 25, 2023
Which one is more accurate?
Which one is more accurate?
May 9, 2023

May 2, 2023

How to save some space when working with WSL2?

Powershell:

Get-AppxPackage -Name "Ubuntu" | Select PackageFamilyName
CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc

Find the *.vhdx file in: %LOCALAPPDATA%/Packages/CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc/LocalState

Powershell:

> wsl --shutdown
> diskpart
# open window Diskpart with full path of .vhdx file
> select vdisk file="C:\...\...\ext4.vhdx"
> attach vdisk readonly
> compact vdisk
> detach vdisk
> exit
How to save some space when working with WSL2?
This website uses cookies to improve your experience. By using this website you agree to our Data Privacy Statement
Read more