filesyst. full: where are the files?

oxy oxyopes at googlemail.com
Tue Aug 27 10:51:37 UTC 2013


Hi gurus,

`df` shows 1.1T used on partition /
but doing `du` i come up with ~240G.
Where is the rest?

Here some code:  (comments start with ...)

# df -h
/dev/md5        1.3T  1.1T  204G  84% /

# du -hs /home/usr1
1004G	/home/usr1

# du -s /home/usr1/* | awk '{ sum+=$1} END {print sum}'
238316748   ... it means 238G

... so maybe there are monster files in the $HOME/.* hidden dirs.
... Lets see:

# du -hs /home/usr1/.*
1004G	/home/usr1/.
27G	/home/usr1/..

... Cannot see the hidden files ... trying harder...

# ls -d /home/usr1/.*
... this shows all hidden files. Thus

# du -hs `ls -d /home/usr1/.*`
1004G	/home/usr1/./
27G	/home/usr1/../

... where are the hidden files now? du supresses them.
... If i go a second level inside the $HOME/.* hidden dirs
... it works, but combersome:

# du -s `ls -d /home/usr1/.*/*` 2>/dev/null |grep -v '/home/usr1/./' | \
grep -v '/home/usr1/../' | awk '{sum+=$1} END {print sum}'
405432

... the above result means 405MB. So I still have ~860G
... to reach the above mentioned 1.1T used space. Whats wrong?

... Thx 4 any tip...




More information about the ubuntu-users mailing list