Skip to content
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 Usage Tool #13

Open
ctsstc opened this issue Oct 11, 2019 · 1 comment
Open

Disk Usage Tool #13

ctsstc opened this issue Oct 11, 2019 · 1 comment

Comments

@ctsstc
Copy link
Owner

ctsstc commented Oct 11, 2019

Great tool I often forget about:

sudo apt install ncdu

WSL - Display Only Linux Usage

ncdu --exclude /mnt
@ctsstc
Copy link
Owner Author

ctsstc commented Oct 11, 2019

Q & A I set up:

https://superuser.com/questions/1491270/how-much-disk-space-is-wsl-using-on-windows/1491271

OP

Question

How much disk space is WSL using on Windows?

I found that you can go into Windows' Apps & Features and it will display disk usage for the WSL2 "Ubuntu", but this does not seem to include WSL Legacy or maybe it does since it seems to report more than I expect?

Answer

Determine Disk Usage From Linux

Using a tool like ncdu can make determining disk usage easy with a nice cli interface to it as well.

Install ncdu

sudo apt install ncdu  

Running ncdu

So we do not get all of Windows' directories along for the ride we'll need to exclude the /mnt directory.

ncdu --exclude /mnt

Determining From Windows

Under Windows' Apps & Features it lists Ubuntu "WSL2" as taking up 1.92 GB

ncdu reports 1.7 GiB (~1.82GB) which is pretty close to what Windows reports.

WSL Legacy "Bash on Ubuntu on Linux"

I was not able to find how much room Bash on Ubuntu on Linux was occupying through Windows, but I was able to see how much it was using by running ncdu --exclude /mnt.

Related Research

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant