Subject: Re: (Fwd) Re: how to disklabel a RZ58 ???
To: Jonathan Stone <jonathan@DSG.Stanford.EDU>
From: pmax Port <netbsd@ascom.de>
List: port-pmax
Date: 11/28/1996 17:29:52
On Thu, 28 Nov 1996, Jonathan Stone wrote:

> In message <Pine.ULT.3.91.961128090537.1639A-100000@rsac05.ascom.de>,
> Guenter Bernicken (netbsd@ascom.de) writes:
> 
> 
> >Absolutely right. This worked for mmy problem with the rz58. I used the 
> >self calculated disktab (85*15*2112=2692800 as the size) instead of the
> >ultrix disktab and labeled the --'a'-- Partition.
> 
> Oh...
> I just committed a  changes that adds an linekentry
> 	:su#2698061:\
> 
> to the rz58 disktab entry, which is how big the c partition
> in the disktab entry claims to be.
> 
> How big does your RZ58 claim to be at boot, and is it an RZ58 or an RZ58l?
> 
First, the SU-Entry allows to partition the disk with it's real size
(2698061 512 byte blocks instead of 85*15*2112=2692800). I verified this 
with a second disk.
Here are the disktab entries for both disks, how the partitions are
and what I see on the console at boot time:

-----------disktab for rz0 -----------------------------
rz58|RZ58|DEC RZ58 Winchester:\
	:ty=winchester:ns#85:nt#15:nc#2112:\
	:pa#65536:oa#0:ba#8192:fa#1024:\
	:pb#375000:ob#65536:bb#8192:fb#1024:tb=swap:\
	:pc#2692800:oc#0:bc#8192:fc#1024:\
	:pd#131072:od#440536:bd#8192:fd#1024:\
	:pe#131072:oe#571608:be#8192:fe#1024:\
	:pf#1990120:of#702680:bf#8192:ff#1024:\
	:pg#781250:og#702680:bg#8192:fg#1024:\
	:ph#1208870:oh#1483930:bh#8192:fh#1024:

-----------disktab for rz2 -----------------------------
rz58|RZ58|DEC RZ58 Winchester:\
	:dt=SCSI:ty=winchester:ns#85:nt#15:nc#2112:\
	:su#2698061:\
	:pa#65536:oa#0:ba#8192:fa#1024:\
	:pb#375000:ob#65536:bb#8192:fb#1024:tb=swap:\
	:pc#2698061:oc#0:bc#8192:fc#1024:\
	:pd#131072:od#440536:bd#8192:fd#1024:\
	:pe#131072:oe#571608:be#8192:fe#1024:\
	:pf#1995381:of#702680:bf#8192:ff#1024:\
	:pg#781250:og#702680:bg#8192:fg#1024:\
	:ph#1214131:oh#1483930:bh#8192:fh#1024:


Note: partitions c,f and h of rz2 are bigger than those of rz0



------------------ disklabel -r /dev/rz0c ----------------------
# /dev/rz0c:
type: unknown
disk: rz58
label: isack
flags:
bytes/sector: 512
sectors/track: 85
tracks/cylinder: 15
sectors/cylinder: 1275
cylinders: 2112
total sectors: 2692800
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]
  a:    65536        0    4.2BSD     1024  8192    16 	# (Cyl.    0 - 51*)
  b:   375000    65536      swap                    	# (Cyl.   51*- 345*)
  c:  2692800        0    unused     1024  8192       	# (Cyl.    0 - 2111)
  d:   131072   440536    4.2BSD     1024  8192    16 	# (Cyl.  345*- 448*)
  e:   131072   571608    4.2BSD     1024  8192    16 	# (Cyl.  448*- 551*)
  f:  1990120   702680    4.2BSD     1024  8192    16 	# (Cyl.  551*- 2111*)
  g:   781250   702680    4.2BSD     1024  8192    16 	# (Cyl.  551*- 1163*)
  h:  1208870  1483930    4.2BSD     1024  8192    16 	# (Cyl. 1163*- 2111*)



-------------------- disklabel -r /dev/rz3c ------------------------
# /dev/rz3c:
type: SCSI
disk: rz58
label: newlabel
flags:
bytes/sector: 512
sectors/track: 85
tracks/cylinder: 15
sectors/cylinder: 1275
cylinders: 2112
total sectors: 2698061
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]
  a:    65536        0    unused     1024  8192       	# (Cyl.    0 - 51*)
  b:   375000    65536      swap                    	# (Cyl.   51*- 345*)
  c:  2698061        0    unused     1024  8192       	# (Cyl.    0 - 2116*)
  d:   131072   440536    unused     1024  8192       	# (Cyl.  345*- 448*)
  e:   131072   571608    unused     1024  8192       	# (Cyl.  448*- 551*)
  f:  1995381   702680    unused     1024  8192       	# (Cyl.  551*- 2116*)
  g:   781250   702680    unused     1024  8192       	# (Cyl.  551*- 1163*)
  h:  1214131  1483930    unused     1024  8192       	# (Cyl. 1163*- 2116*)



------------------- boot messages: ---------------------------------

Nov 28 16:58:23 isack /netbsd: rz0 at asc0 drive 0 slave 0 DEC RZ58     
(C) DEC rev 3000, 2698061 512 byte blocks

Nov 28 16:58:23 isack /netbsd: rz3 at asc0 drive 3 slave 0 DEC RZ58     
(C) DEC rev 2000, 2698061 512 byte blocks                        ^
                                                                 |
                                                                 |
Where do you expect the message about the disk type RZ58 or RZ58l ?
I think, what you see at boot time is just the disk's vendor string. 





Guenter Bernicken
Ascom Infrasys GmbH      Charlottenburger Allee 61      D-52068 Aachen
Bernicken@ascom.de   Phone: +49 241 96806 252   Fax: +49 241 96806 225