Created
July 28, 2021 21:57
-
-
Save isaaccorley/ac4f88c553fc26140ba685c2a1310b6e to your computer and use it in GitHub Desktop.
Free unused space from WSL2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wsl --shutdown | |
diskpart | |
select vdisk file="C:\Users\<user>\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu20.04onWindows_79rhkp1fndgsc\LocalState\ext4.vhdx" | |
attach vdisk readonly | |
compact vdisk | |
detach vdisk | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment