Subject: Re: df doesn't agree with me...
To: None <port-mac68k@netbsd.org>
From: NetBSD <netbsd@bvjtoday.co.jp>
List: port-mac68k
Date: 02/17/1999 19:27:29
my 2 cents ;-)

I had a similar experience running 1.3 (Generic). I ran newfs on every
partition and successfully have df reporting what seems like a more
plausible report for multiple partitions
/ 	/usr	/var 	/home

man newfs and see if it has any appeal for you, if so it could be a way to
fix things. It worked for me

------------------- reply seperator ---------------------------

Chris wrote:

>
>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.