redcode-labs / easyWSL

Create WSL distros based on Docker Images.
Other
554 stars 37 forks source link

View disk usage & reclaim disk space #40

Open AmineDjeghri opened 1 month ago

AmineDjeghri commented 1 month ago

Can you please add the disk usage for the distros and also the ability to reclaim the disk space ?

Here is what i do to reclaim it :

polarathene commented 1 month ago

Doesn't have to be optimize-vhd (I think I had an issue getting that available when I tried prior to wslcompact)

My comment provides plenty of insight: https://github.com/microsoft/WSL/issues/4699#issuecomment-2209770016

Dark-Matter7232 commented 2 weeks ago
select vdisk file="ext4.vhdx"
attach vdisk readonly
compact vdisk
detach vdisk

Should be easy to implement.