Subject: Re: need room on /
To: None <netbsd-help@netbsd.org>
From: James K. Lowden <jklowden@schemamania.org>
List: netbsd-help
Date: 02/07/2003 00:36:20
On Thu, 6 Feb 2003 21:11:49 -0500, groo@old-ones.com (Bill Squier) wrote:
> On Thu, Feb 06, 2003 at 06:27:56PM -0500, James K. Lowden wrote:
> > What would you do?
> 
> First, I'd find the discrepancy between the du's that you did and the
> space consumed on /.  You're missing a large amount of used space.

So I am!  Most of it, 76%, as a matter of fact!  

I'm sorry to sound like such a tenderfoot, but I'm completely at a loss to
understand -- assuming these utilities work correctly on 1.4.2 -- how du
and df can disagree.  

What should I do?  Is the filesystem necessarily corrupted?  dump wd0a,
newfs it, and restore?  Use tar, so I traverse the directory hierarchy? 
Or just boot single user and fsck it?  Or reëxamine my assumptions?  

thanks again.

--jkl

> > $ df -k;  pwd; ls  |grep -Ev 'usr|mnt' |xargs sudo du -xskc |sort -rn 
> > Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
> > /dev/wd0a       84327    78768     1342    98%    /
> > /dev/wd0e     9319453  5742359  3111121    64%    /usr
> > /dev/wd0f     9904956  1605674  7804034    17%    /usr/local/play
> > kernfs              1        1        0   100%    /kern
> > /dev/wd1e     9319453  5745232  3108248    64%    /mnt
> > /
> > 14660   total
> > 6304    sbin
> > 3393    bin
...