Subject: disklabel revisted
To: None <port-hp300@NetBSD.ORG>
From: Nathan Gelbard <gelbard@ENGR.ORST.EDU>
List: port-hp300
Date: 06/23/1997 14:01:37
I don't know why this is so hard for me. :)

Here's what I've got

120mb drive:
rd0 at hpibbus0 slave 0 punit 0: 7958A
rd0: 1013 cylinders, 7 heads, 255276 blocks, 512 bytes/block

300mb drives:
rd1 at hpibbus0 slave 1 punit 0: 7959B
rd1: 1572 cylinders, 9 heads, 594216 blocks, 512 bytes/block
rd2 at hpibbus0 slave 2 punit 0: 7959B
rd2: 1572 cylinders, 9 heads, 594216 blocks, 512 bytes/block
rd3 at hpibbus0 slave 3 punit 0: 7959B
rd3: 1572 cylinders, 9 heads, 594216 blocks, 512 bytes/block
rd4 at hpibbus0 slave 4 punit 0: 7959B
rd4: 1572 cylinders, 9 heads, 594216 blocks, 512 bytes/block

rd0 is my boot drive, NetBSD-current. Here is the disklabel for rd1:

type: HP-IB
disk: space!!
label: boink.
flags:
bytes/sector: 512
sectors/track: 42
tracks/cylinder: 9
sectors/cylinder: 378
cylinders: 1572
total sectors: 594216
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0

3 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
  a:   594216        0    4.2BSD     1024  8192    16   # (Cyl.    0 - 1571)
  c:   594216        0      boot                        # (Cyl.    0 - 1571)

rd1a has been newfs, and now holds /usr. I'd like to partition rd2-4
the same way. Sounds simple? I thought so.

disklabel -R -r rd2 image (where image is a text file holding the above)
disklabel: ioctl DIOCSDINFO: Open partition would move or shrink.

Now, rd2-3 aren't mounted. They are exactly the same disk (rd7959B).

Whats happening here?