From owner-freebsd-questions Mon Jun 8 03:27:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA12719 for freebsd-questions-outgoing; Mon, 8 Jun 1998 03:27:47 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from nanguo.chalmers.com.au (gateway.chalmers.com.au [203.1.96.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA12708 for ; Mon, 8 Jun 1998 03:27:36 -0700 (PDT) (envelope-from robert@chalmers.com.au) Received: from chalmers.com.au (carbon.chalmers.com.au [203.1.96.26]) by nanguo.chalmers.com.au (8.8.8/8.8.8) with ESMTP id UAA09588 for ; Mon, 8 Jun 1998 20:26:58 +1000 (EST) Message-ID: <357BBECD.CD9B7850@chalmers.com.au> Date: Mon, 08 Jun 1998 20:37:01 +1000 From: Robert Chalmers Reply-To: robert@chalmers.com.au Organization: chalmers.com.au X-Mailer: Mozilla 4.04 [en] (Win95; I) MIME-Version: 1.0 To: freebsd-questions Subject: Conclusion: disktab software is RS. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG To take this back to scratch, the command disklabel -r -w sd1 auto produces this for a disklabel on sd1; # /dev/rsd1c: type: unknown disk: label: flags: bytes/sector: 512 sectors/track: 86 tracks/cylinder: 18 sectors/cylinder: 1548 cylinders: 2655 sectors/unit: 4110000 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 3 partitions: # size offset fstype [fsize bsize bps/cpg] c: 4110000 0 unused 0 0 # (Cyl. 0 - 2655*) Now, the formula, sects/track * tracks/cylinder * number of cylinders for this produces a size of 4109940, which is clearly different to the 4110000 shown for partition c: It seems to have been rounded up? Now, no matter what I do with the numbers, a disktab for this will not work. However, a disklabel and edit the table directly does. I can only conclude that there is someing wrong with the disktab part of the whole process. bob -- Support Whirled Peas. Business in China? China House robert@chalmers.com.au ph:61 7 49440357 fx:61 7 49578425 China House Uses Webposition to ensure Top Spot in Searches http://www.chalmers.com.au/ChinaHouse/Business/webposition To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message