okibcn / wslcompact

Compacts the size of the ever-growing WSL vhdx images.
https://github.com/okibcn/wslcompact
GNU General Public License v3.0
800 stars 19 forks source link

Custom VHDX Location? #36

Open ameeno opened 6 months ago

ameeno commented 6 months ago

Greetings, I have started using a shared VHDX file for my projects across WSL distro's.

Using: wsl.exe --mount --vhd D:/WSL/wsl2-shared.vhdx --name wsl2-shared before starting wsl distro's.

Is it possible to use wslcompact to shrink this ext4 formatted vhdx? its not the default root ext4 of any wsl distro :(