Subject: Re: ccd disklabel: What's the geometry
To: None <thorpej@nas.nasa.gov>
From: Hacksaw <hacksaw@gerbils.fe.com>
List: netbsd-help
Date: 11/25/1996 15:29:40
Here's what I got after setting up the drives as
ccdconfig ccd0 0 0 /dev/wd1e /dev/wd2e
gerbils:/
ROOT> disklabel ccd0
# /dev/rccd0d:
type: ccd
disk: ccd
label: default label
flags:
bytes/sector: 512
sectors/track: 2048
tracks/cylinder: 1
sectors/cylinder: 2048
cylinders: 812
total sectors: 1663200
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize cpg]
d: 1663200 0 4.2BSD 0 0 0 # (Cyl. 0 - 812*)
e: -1961069564 17843446 unused 0 0 # (Cyl. 8712*- 1148311*)
f: -800033651 -1240167165 unused 0 0 # (Cyl. 1491601*- 1100960*)
g: 881702404 -1913948924 unused 0 0 # (Cyl. 1162606*- 1593125*)
h: -593423426 256058229 unused 0 0 # (Cyl. 125028*- 1932422*)
disklabel: boot block size 0
disklabel: super block size 0
disklabel: partition e: offset past end of unit
disklabel: partition e: partition extends past end of unit
disklabel: partition f: offset past end of unit
disklabel: partition f: partition extends past end of unit
disklabel: partition g: offset past end of unit
disklabel: partition g: partition extends past end of unit
disklabel: partition h: offset past end of unit
disklabel: partition h: partition extends past end of unit
I even tried to label them assuming that the d: partition reflected
reality, but got:
ROOT> disklabel -rw ccd0 ccdcfs420x2
disklabel: partition a: partition extends past end of unit
disklabel: partition c: partition extends past end of unit
disklabel: partition d: partition extends past end of unit
Here's the disklabel I tried:
ccdcfs420x2|@ CFS420's setup as a ccd:\
:dt=ccd:ty=ccd:se#512:nt#1:ns#2048:nc#812:\
:pa#1663200:oa#0:ta=4.2bsd:ba#8192:fa#1024:\
:pc#1663200:oc#0:\
:pd#1663200:od#0:
The partition size number does reflect the underlying labels; wd1e and
wd2e each have parition sizes of 831600.
The number of sectors and tracks I find weird, though...
Any clues?
--
Hacksaw