Subject: Re: (Fwd) Re: how to disklabel a RZ58 ???
To: Robert Rusek <rusek@alpha.fdu.edu>
From: Brandon Browning <brandon@nwnet.net>
List: port-pmax
Date: 11/27/1996 17:32:23
> I am haveing the same problem with trying to label my RZ25.  Has a
> solution been found to this problem?
> 
> After calculating the proper size of the RZ25 of 823608, because the
> distributed /etc/disktab is wrong.
>
> I receive error message:
>
> disklabel: ioctl DIOCSDINFO: Open partition would move or shrink

Heh... spent two nights on this one setting up my machine.  The
solution is easier than it seems.

1) 'disklabel -e -r /dev/rrz2c' & add a partition 'a' (doesn't matter
   how big).  Save it.

2) 'disklabel -e -r /dev/rrz2a' <-- this is the critical line.  Notice
that the "open" partition is now _a_.  Modify your c partition to your
hearts content.  Save it.

3) 'disklabel -e -r /dev/rrz2c' <-- add your other partitions.


This might also come in handy: this is what I see when I do a
'disklabel -r rz2'; you can use this to write the table after the
above steps (using disklabel -w...).

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

4 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
  a:    66960        0    4.2BSD     1024  8192    16   # (Cyl.    0 - 119)
  b:    33480    66960      swap                        # (Cyl.  120 - 179)
  c:   823608        0    unused     1024  8192         # (Cyl.    0 - 1475)
  d:   723168   100440    4.2BSD     1024  8192    16   # (Cyl.  180 - 1475)
--cut here------------------------------------------------------------

the 'bmbrz25' was an entry I put in /etc/disktab, and is thus:

bmbrz25|BMBRZ25|Brandon's DEC RZ25 Winchester:\
        :dt=SCSI:ty=winchester:ns#62:nt#9:nc#1476:\
        :pa#66960:oa#0:ba#8192:fa#1024:\
        :pb#33480:ob#66960:ba#8192:fa#1024:tb=swap:\
        :pc#823608:oc#0:bc#8192:fc#1024:\
        :pd#723168:od#100440:bd#8192:fd#1024:

YMMV (headache not included).  I really suggest boning up on the
disklabel man page if you can find it.  Though it be vague, it allowed
me to find the above solution.

Again, the above worked for me; if it messes up all your stuff, please
don't blame me. :)


-- 
Brandon M. Browning
Systems Engineer / Mailing List Maintainer
http://www.nwnet.net/