redcode-labs / easyWSL

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

View disk usage & reclaim disk space #40

Open AmineDjeghri opened 4 months ago

AmineDjeghri commented 4 months 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 3 months 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 months ago
select vdisk file="ext4.vhdx"
attach vdisk readonly
compact vdisk
detach vdisk

Should be easy to implement.