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

"Show apparent size" needed for WSL instance to Windows drive #162

Open
daniejstriata opened this issue Sep 5, 2022 · 2 comments
Open

Comments

@daniejstriata
Copy link
Collaborator

daniejstriata commented Sep 5, 2022

Hi,

I'm not sure why this is happening but when I run gdu -dn I get the following output:

  Device      Size      Used      Free Used% Mount point
/dev/sdc 251.0 GiB  13.7 GiB 237.3 GiB    5% /

when I am inside a mnt to the Windows drive from my WSL the following happens:
/mnt/d/Data/repo/security

$ gdu -n
    7.8 EiB /packages
    4.8 EiB /app1
  -463550477559806976 B /app2
  -3473665266239336448 B /audit_configs
  -3801883870989672960 B /server-fixes

to get the proper output I need to run it like this:

$ gdu -na
  106.9 MiB /packages
    1.0 GiB /app1
  333.1 KiB /app2
  215.4 KiB /audit_configs
  442.2 MiB /server-fixes

Is this expected behaviour? I'm not sure why the mnt is confusing the space from within WSL.

@daniejstriata daniejstriata changed the title "Show apparent size" needed for WSL instance "Show apparent size" needed for WSL instance to Windows drive Sep 5, 2022
@dundee
Copy link
Owner

dundee commented Sep 6, 2022

Interesting, I will need to install WSL to check this, so it will take me some time.

@daniejstriata
Copy link
Collaborator Author

daniejstriata commented Jan 15, 2023

I've noticed that dust is doing the same thing on WSL drives. It must be the way the kernel presents the filesystem, what is "apparent size" actually?
bootandy/dust#295

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

2 participants