mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[GH-ISSUE #421] du / dust disagreement #183
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ammaraziz on GitHub (Jul 26, 2024).
Original GitHub issue: https://github.com/bootandy/dust/issues/421
Hi Bootandy,
Thanks for creating and maintaining
dustit is excellent piece of software.I am finding that
dudisagrees withdustby several TB. Would you have any idea what could be causing the difference?The commands I am running on the same directory:
duagrees withdfin regards to the total space used. The difference is something like 4TB of data. I have noticed thatdustandduround numbers differently.@wugeer commented on GitHub (Jul 26, 2024):
@ammaraziz commented on GitHub (Jul 26, 2024):
The
-sresults in the total size being greater than what I think the total disk space is. So it went from 25T to 35T.When I use
--apparent-sizeindu, I get a similar value (what I was expecting).@wugeer commented on GitHub (Jul 26, 2024):
Can you try du -s and dust -ok?

I'm a newer, If this doesn't work, could you provide more information to help me reproduce the issue?
@ammaraziz commented on GitHub (Jul 26, 2024):
Thank you for all your help.
This is on a directory with no external mounted drives.
@ammaraziz commented on GitHub (Jul 26, 2024):
Here's system info:

Using
dustversion1.1.1,duversiondu (GNU coreutils) 8.25.architecture is x86_64
@wugeer commented on GitHub (Jul 27, 2024):
Hello, I think I have roughly identified the issue.
On my local machine, there is a directory that contains symlinks to the files.
The results of running du -a and dust -ok in this directory are inconsistent. du reports a result of 16, while dust -ok reports 0.
The difference is that by default, du considers the size of the symlinked file as 4K, while dust considers the size of the symlinked file as 0.
To calculate the actual size of the symlinked file, you need to add the -L parameter.
For your situation, you can try
du -s -Landdust -ok -Lto check the results. I hope this helps. @ammaraziz@ammaraziz commented on GitHub (Jul 28, 2024):
Massively helpful thank you wugeer. Feel free to close this when you see fit.
@bootandy commented on GitHub (Jul 31, 2024):
thanks for your help @wugeer