Why is du high for an empty directory?
I've been moving a lot of files around today, and come across a peculiar situation where an empty folder has a high reported disk usage.
du -b gives: Code:
4096 ./FolderOne ls -R gives: Code:
.: Any ideas what's going on? |
Did you change mount options?
diratime? fsck and report |
Wonder what ls */ says?
|
And there's always the obvious question: did you remove a file that process
was still writing to? lsof | grep FolderFour Cheers, Tink |
Thanks to all for the suggestions.
Mount options are unchanged. I can post my fstab if it helps? Ran a boot time fsck but the problem still exists. Is there a log file I should be looking at? Google reckons /var/log/messages, but that file doesn't exist on my system. I have /var/log/fsck/checkfs and /var/log/fsck/checkroot, but they haven't been modified since October '11. I'm running Mint 12. ls */ gives: Code:
FolderOne/: Any more ideas? |
Here's the line for the drive from /etc/fstab:
Code:
/dev/disk/by-uuid/f0fc5b1c-0d97-47f2-995d-0d4bc3c23531 /media/DATA3 ext3 auto,user,exec,rw 0 2 |
What is the size of the directory itself (ls -ld FolderFour)? If that directory once contained a large number of file names, the directory file itself will be large, and a directory file never shrinks.
|
ls -ld shows the same size as above - 229376.
Looks like a feature of ext filesystems. Thanks for your help! |
As pointed out in the referenced thread, the only way to reduce that size is to delete the directory and re-create.
|
All times are GMT -5. The time now is 03:52 PM. |