Skip to content

Instantly share code, notes, and snippets.

@ajparsons
Created December 3, 2021 11:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajparsons/7e678c95d082beef0d388bc6b7ea7672 to your computer and use it in GitHub Desktop.
Save ajparsons/7e678c95d082beef0d388bc6b7ea7672 to your computer and use it in GitHub Desktop.
Windows home doesn't give you the easy commands to steal space back from an expanding wsl volume, here's how you do that.
wsl --shutdown
diskpart
select vdisk file="C:\Users\USER\AppData\Local\Docker\wsl\data\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