Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Jun 1998 20:37:01 +1000
From:      Robert Chalmers <robert@chalmers.com.au>
To:        freebsd-questions <freebsd-questions@FreeBSD.ORG>
Subject:   Conclusion: disktab software is RS.
Message-ID:  <357BBECD.CD9B7850@chalmers.com.au>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?357BBECD.CD9B7850>