Skip to content

wsl

Compact WSL partition and reclaim storage space

Start PowerShell Find where your WSL vhdx file is located. Usually under: C:\Users\yourname\AppData\Local\Package\Linuxdistroflavour\LocalState\ext4.vhdx Start diskpart (from PowerShell or CMD): diskpart.exe Run: select vdisk file=”C:\Users\Jan van den Berg\AppData\Local\Packages\TheDebianProject.DebianGNULinux_76v4gfsz19hv4\LocalState\ext4.vhdx” and next: compact vdisk

Windows Terminal + Cygwin

[UPDATE July 2022: I switched to using MobaXterm which does the job just fine. I don’t like that it is not free/open but I do like that it comes with an integrated SSH agent, which makes life a lot easier] I had been a happy WSL1 user for many years, but after switching laptops I more or less had to upgrade to WSL2. Which is the same thing but not… Read More »Windows Terminal + Cygwin