Disk Usage Question
This is probably something stupid that I am overlooking, but can't quite seem to find it and have not found an answer online. Possibly I just suck at searching. When testing a script to display my disk usage I found the numbers for /home don't add up. I seem to be missing 5GB somewhere:
rootatlocalhost:~# du -sh /home/*
Just over 9.3GB total for /home, however when I run df-h it shows 14G as being used.
rootatlocalhost:~# df -h
Filesystem Size Used Avail Use% Mounted on
[irrelevant info deleted]
/dev/sda3 280G 14G 252G 6% /home
This is a fairly big discrepancy for such a small amount of data in the home directory. I am sure I am just overlooking something silly, but can't seem to figure out what it is. There is obviously plenty of free space so that is not an issue and won't be for some time, just trying to figure out what I am missing. The file system is ext4.
Anyone have any ideas?
peculiar...tried a reboot?
- Afaik * doesnt include hidden files and directories
- There might be deleted files, which are still held open by a running process. Check with "lsof |grep -i deleted"
Irithori is correct (just checked), hidden files will not be checked by du using the *, that is.
Originally Posted by Irithori