Subject: [Q] why 'df' and 'fsck' say differently?
To: None <port-mac68k@NetBSD.ORG>
From: Mamoru Yamanishi <yama@biotech.okayama-u.ac.jp>
List: port-mac68k
Date: 08/02/1997 13:42:34
Hi all.

When I do 'df' to know the free space of my disk, it returns
unexpected large values.  REALY my disk have not so much files
as 'df' says.

        Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
        /dev/sd0a      504952    459598    -5142    101%    /
        ..... and so on

I assign only 65536 blocks, but 'df' says 504952 blocks.

Then I do 'fsck', that returns reasonable number of files, used
and free space.

        368 files, 8824 used, 22679 free (39 frags, 2830 blocks, ...

These error may be corrected by using 'newfs' on other partitions
than /dev/sd0a.  However root partition (/dev/sd0a) could never be
'umount'ed.

My questions are:

1)  Why 'df' and 'fsck' say different result?

2)  How to correct it.

-------------------
Mamoru Yamanishi <yama@biotech.okayama-u.ac.jp>
+81-86-251-8196(voice) & +81-86-253-7399(GIII type FAX)
Biotech. Dept., Okayama Univ.