- Backup any critical data.
- Launch an administrative PowerShell session.
- Change directory like
cd "C:\Users\andrew\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState"
- Run
optimize-vhd -Path ext4.vhdx -Mode full
- Wait a few minutes for the process to complete.
- Relaunch WSL.
Created
November 18, 2021 17:19
-
-
Save mcandre/16e464f9c1e03624c3aa7a371bbb8d7d to your computer and use it in GitHub Desktop.
Shrink WSL
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment