-
-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disk file ext4.vhdx
takes too much space
#372
Comments
Hi @FoliageOwO, I’m not sure if you still need help, but I recently faced the same issue, so I thought I'd share my solution for anyone else encountering it. My distro was set to sparse for a while, which caused some complications. I resolved it by running: wsl --manage <distro> --set-sparse false After doing this, I was able to use For reference, I’m using the default Ubuntu distro, but this solution should also work for ArchWSL and others. |
@lucasacoutinho Thanks, this really does work! :) |
Hi. I'm new to playing with a WSL. I've used the
ArchWSL
for a while, but I found my disk almost full when installing stuff.After running
gdu -i /mnt
in theArchWSL
, it told me the WSL only used 18.4 GiB:But the disk file occupies 50+ GiB:
Environment:
Additional context
Seemed to have a connection with this issue WSL#8226, for which I did
Optimize-Vhd /path/to/the/ext4.vhdx
on my PowerShell, and it threw me an error:I followed the instructions of the reply on the issue WSL#4103, which did nothing.
Is the space the disk file takes normal, or my settings for ArchWSL is wrong?
The text was updated successfully, but these errors were encountered: