Subject: df doesn't agree with me...
To: None <port-mac68k@netbsd.org>
From: Chris Brown <chrsbrwn@mindspring.com>
List: port-mac68k
Date: 02/16/1999 21:26:24
First, the good news...
I have, over the last couple of weeks, successfully installed NetBSD-Mac68k
on a leftover IIci my job gave me, got it talking to my cable modem,
got it doing IPNAT through a second ethernet card and a hub to my PowerMac,
and I am  getting lovely transfer rates with very little cpu/memory utilization.

I also really like being able to telnet to my machine from wherever I am and
read my email (the cable modem is always up).

The only thing I haven't been able to figure out is why df is lying to me.

This is the output I get when I type df:

Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/sd0a       49391    11670    32781    26%    /
/dev/sd0g      247262   192880    29655    87%    /usr
/dev/sd0d       97677     1484    86425     2%    /var
/dev/sd0f      282000   102551   151249    40%    /home
/dev/sd0h      346189   282009    29561    91%    /tmp
kernfs              1        1        0   100%    /kern
procfs              4        4        0   100%    /proc

Next is the output from disklabel, and the actual partition sizes as I
created them. The sectors are 512k, so divide by 2 to compare with the
numbers above. The one that worries me the most is /tmp , which should
be 66510 kbytes, but instead is showing up as 346189, with only 29561
free. Yet du says /tmp is only using 9 blocks...

8 partitions:
#      size   offset      fstype   [fsize bsize   cpg]
a:   102400   122976      4.2BSD        0     0     0   # (Cyl.  316*- 580*)
b:   122880       96        swap                        # (Cyl.    0*- 316*)
c:  1431760        0      unused        0     0         # (Cyl.    0 - 3690*)
d:   202300   634976      4.2BSD        0     0     0   # (Cyl. 1636*- 2157*)
e:    79984  1351776         HFS                        # (Cyl. 3483*- 3690*)
f:   381480   837276      4.2BSD        0     0     0   # (Cyl. 2157*- 3141*)
g:   409600   225376      4.2BSD        0     0     0   # (Cyl.  580*- 1636*)
h:   133020  1218756      4.2BSD        0     0     0   # (Cyl. 3141*- 3483*)

Can anybody tell me why df is saying such strange things about the size and
capacity of the partitions? I'm running NetBSD-1.3.3-generic.