View Single Post
Posts: 486 | Thanked: 251 times | Joined on Oct 2009
#5
Originally Posted by dnastase View Post
The /home is mounted on /dev/mmcblk0p2. It shows:

/home/user # cd /home
/home # df -h .
Filesystem Size Used Available Use% Mounted on
/dev/mmcblk0p2 2.0G 1.4G 488.7M 74% /home
/home #

but if I check how much is used:

/home # du -xhs .
183.7M .

Is there something I'm missing ? There is a discrepancy of roughly 1.2Gb!
du adds up all the file sizes. It does not count the unused space in the last cluster of a file. If you have a lot of small files, this wasted space adds up. The VFAT Mydocs is even worse for small files.