Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!rutgers!labrea!decwrl!nsc!andrew
From: andrew@nsc.nsc.com (Andrew Lue)
Newsgroups: comp.unix.questions
Subject: Contradictions between mkfs and df
Message-ID: <4515@nsc.nsc.com>
Date: Fri, 24-Jul-87 12:23:25 EDT
Article-I.D.: nsc.4515
Posted: Fri Jul 24 12:23:25 1987
Date-Received: Sat, 25-Jul-87 15:12:38 EDT
Organization: National Semiconductor, Sunnyvale
Lines: 23
Keywords: mkfs, df


  I hope someone out there can solve this problem.  I have a UNIX-based
development system that includes a 40 Mb hard disk.  I created three
partitions.  Using mkfs, I assigned 29088 blocks (each 512 bytes) to
/dev/dsk/0s0 and 22032 blocks to /dev/dsk/0s2. The second partition was
the swap area. (Obviously, before I did the mkfs I mkpt'ed.)

  When I df -t'ed to confirm the number of total blocks per partition,
I got unexpected results:

  -- /dev/dsk/0s2 had 21896 blocks (4236 blocks free)

  -- /dev/dsk/0s0 had 9928 blocks (1672 blocks free)

  The discrepancy for 0s0 is unbelievable. Can anyone explain?

  Please respond to ucbvax!sun!nsc!andrew.

  Thanks.

  andrew lue

  PS: This is a System V.2 setup.