Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

disklabel trouble



I have been having trouble disklabeling a ST9500420AS disk on -current/amd64.
It is a complicated disklabel, so I just tried the following simplified test:

part of /etc/disktab:
test:\
        :dt=ESDI:se#512:ns#63:nt#16:sc#1008:nc#969021:\
        :pa#2097152:oa#212789248:ta=4.2BSD:ba#0:fa#0:\
        :pc#2097152:oc#212789248:\
        :pd#976773168:od#0:

# disklabel -w -r -v -v wd0 test
disklabel: reading mbr sector 0
disklabel: label found at offset 512 from sector 107931648
# echo $?
0
# disklabel -r -t -v wd0
test|Automatically generated label:\
        :dt=ESDI:se#512:ns#63:nt#16:sc#1008:nc#969021:

So no error, yet no label... The sectors for a/c above I well within
the NetBSD partition as per mbrlabel's c:

# mbrlabel wd0
Found unknown partition; size 3072000 (1500 MB), offset 2048
  adding unknown partition to slot a.
Found NTFS partition; size 104857600 (51200 MB), offset 3074048
  adding NTFS partition to slot b.
Found unknown partition; size 26818560 (13095 MB), offset 949954560
  adding unknown partition to slot e.
Found 4.2BSD partition; size 842022912 (411144 MB), offset 107931648
  skipping existing unused partition at slot c.

5 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:   3072000      2048    unknown                     # (Cyl.      2*-   3049*)
 b: 104857600   3074048       NTFS                     # (Cyl.   3049*- 107075*)
 c: 842022912 107931648     unused      0     0        # (Cyl. 107075*- 942415*)
 d: 976773168         0     unused      0     0        # (Cyl.      0 - 969020)
 e:  26818560 949954560    unknown                     # (Cyl. 942415*- 969020*)

Not updating disk label.


I must be missing something...

Cheers,

Patrick


Home | Main Index | Thread Index | Old Index