Created
December 3, 2021 11:25
-
-
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.
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\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