Skip to content

Instantly share code, notes, and snippets.

@FalconNL93
Last active August 7, 2022 06:30
Show Gist options
  • Save FalconNL93/3c96034e2793570d0e391a76e69431c2 to your computer and use it in GitHub Desktop.
Save FalconNL93/3c96034e2793570d0e391a76e69431c2 to your computer and use it in GitHub Desktop.
Optimize WSL Disk
select vdisk file="C:\Users\<user>\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_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