WSL
Last updated
Last updated
Reclaims unused space. Does not change maximum virtual disk size. Disk can automatically expand again in the future, so you have to do this periodically when you delete large files.
The path for a WSL vdisk is usually:
"C:\Users\user.name\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc\LocalState\ext4.vhdx"
(replace with appropriate linux distro name and ID)
Let it reboot.
Default is 1TB (1024 GB), so this is only relevant if you want to set the MAX size larger than 1TB.
The MAX size is the "Virtual Size" when you run the following in diskpart
: