[SunHELP] "df -k" & "du -ds /" difference

Kevin Stevens sunhelp at sunhelp.org
Mon Apr 2 03:47:35 CDT 2001


Well, you asked for the "df" info in 1024 byte blocks, and the "du" info in
512 byte blocks, for one thing...

But that still takes you in the wrong direction.

Did the id you ran "du" under have permissions all the way down the directory
tree?

KeS



----- Original Message -----
From: "bakis" <sahinbaki at hotmail.com>
To: <sunhelp at sunhelp.org>
Sent: Monday, April 02, 2001 01:35
Subject: [SunHELP] "df -k" & "du -ds /" difference


Hi all
Today we have faced a starange thing. There is a controversy between "df -k"
and "du -ds /"
When we look the "/" usage by
"df -k" it is below
# df -k

Filesystem kbytes used avail capacity Mounted on

/dev/md/dsk/d0 4860130 4512480 299049 94% /

but we use "du -ds /"  it give following

# du -ds /

2535030

There is a great difference btw  4512480 and 2535030. We couldn't understand
the reason for this.

Do you have any idea?

Thanks








More information about the SunHELP mailing list