df is wrong for mounted device
I am using an external hard drive (an apple ipod) and I am confident that there is 41G space left 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.
I believe that df is wrong. But what is causing the problem and how do I correct it?
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/