I was working on exporting and backing up my Ubuntu 18.04 WSL2 instance (under Windows 10 Insider Preview 1903 (18950.1000)) and saw it took almost 50 GB of data. This is much higher than I expected.
Looking at this question I installed and ran ncdu
with the following command: sudo ncdu --exclude mnt
.
I received the following results, nowhere near 50 GB worth of space being used:
3.7 GiB [##########] /usr
2.9 GiB [####### ] /home
453.1 MiB [# ] /var
200.7 MiB [ ] /opt
52.5 MiB [ ] /lib
17.8 MiB [ ] /sbin
15.9 MiB [ ] /bin
12.6 MiB [ ] /etc
612.0 KiB [ ] init
552.0 KiB [ ] /boot
400.0 KiB [ ] /tmp
16.0 KiB [ ] /lost+found
4.0 KiB [ ] /lib64
4.0 KiB [ ] /ssh
4.0 KiB [ ] /srv
4.0 KiB [ ] /snap
4.0 KiB [ ] /root
4.0 KiB [ ] /media
4.0 KiB [ ] /run
Where is all this extra storage consumption coming from?
18950.1000
is a build number for an Insider Preview build of 20H1 from July 2019. Please edit your question to clarify the details surrounding your problem.