Subject: Disklabel troubles
To: None <port-pmax@NetBSD.ORG>
From: H. Jared Agnew <jagnew@vtaix.cc.vt.edu>
List: port-pmax
Date: 10/29/1996 23:04:12
  Evening,

  I'm having a bit of trouble labeling my rz25.  The disktab that comes with
netbsd doesn't seem to work.  I have my pmax booting diskless of of a FreeBSD
box, but I can not get the pmax to disklabel the rz25.  This is what
I've dont so far, any sudgestions would be greatly apreciated.

Disklabel from when drive was Ultrix,

root:obi-wan:/home/jagnew >disklabel rz2
# /dev/rrz2c:
type: SCSI
disk: 
label: 
flags:
bytes/sector: 512
sectors/track: 0
tracks/cylinder: 0
sectors/cylinder: 1
cylinders: 0
total sectors: 832527
rpm: 0
interleave: 0
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0 

8 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
  a:    16384        0    unused        0     0         # (Cyl.    0 - 16383)
  b:    65536    16384    unused        0     0         # (Cyl. 16384 - 81919)
  c:   832527        0    unused        0     0         # (Cyl.    0 - 832526)
disklabel: sectors/track 0

The machine functioned fine when it had ultrix on it so I'm guessing this
was not a bad disklabel, but my guess is not so good usualy. ;)

Here is waht I'm trying and then my errors

/etc/disktab for rz25

rz25|RZ25|DEC RZ25 Winchester:\
        :dt=SCSI:ty=winchester:ns#62:nt#9:nc#1476:\
        :pa#32768:oa#0:ba#8192:fa#1024:\
        :pb#131072:ob#32768:bb#8192:fb#1024:tb=swap:\
        :pc#832527:oc#0:bc#8192:fc#1024:\
        :pd#222896:od#163840:bd#8192:fd#1024:\
        :pe#222896:oe#386736:be#8192:fe#1024:\
        :pf#222895:of#609632:bf#8192:ff#1024:\
        :pg#668687:og#163840:bg#8192:fg#1024:

my commands to try and disklabel

disklabel -w -B -b /usr/mdec/rzboot -s /usr/mdec/bootrz rz2 rz25 "newlabel"

and here are the errors.

disklabel: partition c: partition extends past end of unit
disklabel: partition f: partition extends past end of unit
disklabel: partition g: partition extends past end of unit

Anyhelp would be very nice.

---  Jared
--jared@vt.edu