Subject: Bizarre "df" output on /dev/sd0g
To: None <port-mac68k@NetBSD.ORG>
From: Marco Trillo <toad@arsystel.com>
List: port-mac68k
Date: 02/23/2005 21:28:52
Hi all!

I have NetBSD 1.6.2 installed on a 700MB disc, with 2 partitions for 
netBSD ("/" and "/usr" mountpoints).

I've used this system without any problem for few months.

I wanted to update to 2.0, so I extracted the "syssrc.tgz".
"/usr" partition had "53%" of free space before the extraction and the 
"tar" command exited without errors.

But now, when I run "df" to see free space available, I see this 
bizarre output:

radon# df -k
Filesystem  1K-blocks     Used       Avail Capacity  Mounted on
/dev/sd0a        339183   43467  278756         13%  /
/dev/sd0g        276151 265395     -3052        101% /usr

I tried to "fsck" but it didn't solved the problem, this was the output:

radon# fsck /dev/rsd0g
[...]
** Phase 5 - Check Cyl groups
32611 files, 265395 used, 10756 free (20 frags, 1342 blocks, 0.0% 
fragmentation)
[...]
***** FILE SYSTEM WAS MODIFIED *****

What could be the reason of this negative output? :-S

I used "Drive Setup" Mac OS program to part the HD, and the "newfs" of 
NetBSD to format the partitions.

Thanks in advance!

Cheers,
Marco