Sample Header Ad - 728x90

Why is ncdu reporting different data from df?

4 votes
1 answer
3732 views
df -h prints:
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        59G  6.6G   50G  12% /
devtmpfs        1.8G     0  1.8G   0% /dev
tmpfs           2.0G     0  2.0G   0% /dev/shm
tmpfs           2.0G  9.0M  1.9G   1% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           2.0G     0  2.0G   0% /sys/fs/cgroup
/dev/mmcblk0p1  253M   54M  199M  22% /boot
tmpfs           391M     0  391M   0% /run/user/1000
while ncdu / prints:
Total disk usage:   1.8 GiB  Apparent size:   1.8 GiB  Items: 176500
Why is one reporting 6.6+ GiB used while the other reports only 1.8 GiB?
Asked by Iulian Onofrei (176 rep)
Mar 29, 2020, 06:54 PM
Last activity: Apr 2, 2024, 07:00 PM