I am using a 75G external hard drive (an apple ipod) and I am confident that only 41G has been used up on it. That is also what du tells me:
Code:
~> du --max-depth=0 /mnt/ipod/
42319056 /mnt/ipod/
However, df reports that it is almost full:
Code:
~> df /mnt/ipod/
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdb2 77973488 77797872 175616 100% /mnt/ipod
And indeed I am told that I'm out of space when I try to copy large files.
Why does the output of du disagree with that of df, and how do I correct the situation so that I can use the remaining 34G that df says is unavailable?
Thanks a lot,
Dan
p.s. I have previously seen this sort of thing being caused by files stored below the mountpoint, that are "hidden" by the mounted device. However, when I unmount the device, there is nothing stored at /mnt/ipod
Code:
~> umount /mnt/ipod
~> du /mnt/ipod/
4 /mnt/ipod/
p.p.s. I posted the same question on linuxquestions.org; if that is bad form, could someone tell me so, and sorry.