Mark,
I'm a Solaris man (as well as mandrake in my spare time), but AFAIK, df
reports actual disk space used (allocated blocks) and du reports the total
of the files sizes in a tree. Since disk space is allocated in fix sized
blocks, there will always be a degree of "wasted" space 'cus the files don't
exactly fit the final block allocated to each file. The discrepancy between
the two measures is particularly high with larger disk blocks sizes and/or
more and more small files (~= block the block size).
Nick.
Mark Weaver wrote:
> Hi list,
>
> I've got a problem here that isn't making any sense to me. This morning
> one of the leg messages reported that there wasn't any more space left on
> /var. that's ok cause it wasn't any big deal to fix that. what I did have
> a problem with is the difference free space that is being reported by two
> different programs on the system.
>
> df reports it this way:
>
> /dev/hdc6 787M 757M 30M 96% /var <-- the critical reading
>
> ---------------------------------------------------------
> ...and du reports it this way:
>
> 469M /var <-- the critical reading