Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Oct 2000 21:11:12 +0300
From:      Odhiambo Washington <wash@iconnect.co.ke>
To:        freebsd-questions@freebsd.org
Cc:        brueggma@snoopie.yi.org
Subject:   Re: du/df
Message-ID:  <20001030211112.V4090@poeza.iconnect.co.ke>
In-Reply-To: <20001025000210.A2828@snoopie.yi.org>; from "Eric Brueggmann" on Wed, Oct 25, 2000 at 12:02:10AM -0500
References:  <20001025000210.A2828@snoopie.yi.org>

next in thread | previous in thread | raw e-mail | index | archive | help
* Eric Brueggmann <brueggma@snoopie.yi.org> [20001025 08:04]:
=>Hello..
=>
=>	Sorry for the cross post.  I was wondering what could cause this:
=>
=># du -hc /var | grep total
=> 15M    total
=># df -h /var
=>Filesystem     Size   Used  Avail Capacity  Mounted on
=>/dev/ad3s2e    483M   101M   343M    23%    /var
=># sync
=># df -h /var
=>Filesystem     Size   Used  Avail Capacity  Mounted on
=>/dev/ad3s2e    483M   101M   343M    23%    /var
=>
=>This happens every couple of weeks or so..  The difference is usually not
=>as great as it is now.  Is there any way to fix it?  I don't think du is
=>following any sym links, or anything.

As root

alouette# du -hc /var/ | grep total
 23M    total
alouette# df -h /var/
Filesystem     Size   Used  Avail Capacity  Mounted on
/dev/ad0s2f     34M    23M   8.0M    74%    /var
alouette#

As ordinary user:
I get a disparity because I am denied permission to some directories


for du -hc /var

[snip]

 39K	/var/db/pkg/AbiWord-0.7.10
5.0K	/var/db/pkg/lrzsz-0.12.20
5.0K	/var/db/pkg/minicom-1.83.1
6.0K	/var/db/pkg/bash-2.04

.
.
.
1.2M	/var/tpc
 19M	/var
 19M	total
[snip]

[wash@alouette:~]> df -h /var/
Filesystem     Size   Used  Avail Capacity  Mounted on
/dev/ad0s2f     34M    23M   8.0M    74%    /var
[wash@alouette:~]>

HTH


-Wash

--
Odhiambo Washington  Inter-Connect Ltd.,
wash@iconnect.co.ke  5th Flr Furaha Plaza
Tel: 254 11 222604   Nkrumah Rd.,
Fax: 254 11 222636   PO Box 83613 MOMBASA, KENYA.

What we call human nature in actuality is human habit. -Jewel, "Pieces of You" 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001030211112.V4090>