[CentOS] very large difference between df and du (10 GB, hard to believe)

m.roth at 5-cent.us m.roth at 5-cent.us
Mon Feb 1 16:17:25 UTC 2010


>>> I rebooted on the CentOS v4.8 CD #1, started "linux rescue" :
>>
>> After the reboot that would be taken care of, so that's not the issue
>> here.
>
> My understanding of the difference between df and du was that du
> reports the actual size of the file while df reports the space
> allocated by the filesystem.
>
> So if a filesystem allocates 64KB per block and a file is only 2KB, du
> will report 2KB and df will report 64KB.

There's also the possibility of a lot of hard links.

       mark



More information about the CentOS mailing list