Subject: df gives negative capacity
To: None <port-mac68k@netbsd.org>
From: Paul Sander <paul@wakawaka.com>
List: port-mac68k
Date: 03/10/2000 20:21:41
Hi folks,

I know this was asked recently, but I can't find the answer in the archives of
several lists on the netbsd.org site.  :-(

I recently installed NetBSD v1.4.1 on a Quadra 700 with a Seagate 2GB
internal drive.  I used my usual trick of creating a 40MB Mac partition, a
250MG root partition, 100MB swap partition, and the rest as a usr partition.
Used the Mkfs application to create a NetBSD filesystem on the root
partition, but did not create filesystems on the swap or usr partitions.
I installed NetBSD on the root partition (all of the sets except for the
X-Windows and compiler sets) without error.

Now when I boot up NetBSD for the first time and do a df, it shows that
my root partition is "-111%" full, and the space used exceeds the total
capaciity.  This is a real pain because when I use echo to write my
/etc/ifconfig.* files and append to my /etc/fstab file I get "disk full"
errors.

I'm aware of a limitation of the Mkfs application in that it cannot create
filesystems that span a 1GB boundary on a disk, and I'm carefully avoiding
it.  I have successfully loaded earlier releases of NetBSD (v1.3 and v1.4) on
a IIci, a Quadra 840AV and a couple of Centris 650s in the past with no
problems.

The Mkfs version I'm using is the one that has no version number in its
name on the NetBSD distribution.  (There are two or three versions of all
of Mkfs, Installer, and Booter; the older ones seem to have version numbers
in their names.)

What's causing this, and how do I fix it?

Many thanks in advance,

Paul