Subject: Re: DS5000/120: Problem with disklabel
To: Helge MEINHARD, Chorus, CERN-ECP <meinhard@afsmail.cern.ch>
From: Ted Lemon <mellon@fugue.com>
List: port-pmax
Date: 07/06/1995 13:15:20
> I was trying with one machine (a DS5000/120) to follow the recipe of Ted 
> Lemon given in his mail to this list on May 4th. I've not succeeded yet 
> to write a label and move the boot blocks to a freshly connected SCSI 
> disk (IBM 1 GB) on that machine. More detailed information follows:

> Command tried: ./disklabel -w -B rz1 rzxx
> gives Memory fault(coredump)

First, I think you need to specify /dev/rz1c, not just rz1.   Second,
disklabel probably can't read the Ultrix /etc/disktab file (that's my
assumption), which may be why it's dumping core.   You really need use
disklabel -R with a pre-prepared disk label file similar to the
following:

# /dev/sd2d:
type: SCSI
disk: rz25
label: 
flags:
bytes/sector: 512
sectors/track: 62
tracks/cylinder: 9
sectors/cylinder: 558
cylinders: 1476
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0 

5 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
  a:    65536   166026    4.2BSD     1024  8192    16   # (Cyl.  297*- 414*)
  b:    65536   231562      swap                        # (Cyl.  414*- 532*)
  c:   499730   166026    unused        0     0         # (Cyl.  297*- 1193*)
  d:   823608        0    unused        0     0         # (Cyl.    0 - 1475)
  e:   368658   297098    4.2BSD     1024  8192    16   # (Cyl.  532*- 1193*)

The file above is for an RZ25, so it won't work properly with your
drive, but you can probably tweak it to do what you want.   You need
to fix the sectors/track, tracks/cylinder and sectors/cylinder fields,
and the latter needs to be the product of the former two.
sectors/cylinder times cylinders should multiply out to the size of
the disk.  Then you need to tweak the partition table to be to your
liking.   Then type ``disklabel -B -R drive-geom'', where drive-geom
is the name of the file containing the above information.

			       _MelloN_