Subject: emergency help re. disklabel
To: None <port-i386@NetBSD.org>
From: Steve Blinkhorn <steve@prd.co.uk>
List: port-i386
Date: 10/04/2006 18:28:57
I have just had a double failure - main disk supporting users failed
*and* backup tape drive failure.   I had, however kept rsync'd copies
of very nearly everything on another machine.   But since it will take
me time to make emergency DVD backups, I currently have only one copy
of everything.   On this same machine is a whole unused, unlabeled
160Gbyte disk waiting to be commissioned which is identical to the
main disk - they are both Maxtor 6L160P0.

My attempts at labeling this disk have failed, however.   I tried
adding a copy of the label from the existing wd0 into /etc/disktab:

abcd# disklabel -w -r -f /etc/disktab wd1 Maxtor6L160P0
disklabel: Invalid signature in mbr record 0
disklabel: unknown disk type: Maxtor6L160P0

The entry in /etc/disktab looks like this:

Maxtor6L160P0 |Automatically generated label:\
        :dt=unknown:se#512:ns#63:nt#16:sc#1008:nc#317632:\
        :pa#9626400:oa#63:ta=4.2BSD:ba#8192:fa#1024:\
        :pb#263088:ob#9626463:tb=swap:\
        :pc#320172993:oc#63:\
        :pd#320173056:od#0:\
        :pe#8192016:oe#9889551:te=4.2BSD:be#8192:fe#1024:\
        :pf#4096512:of#18081567:tf=4.2BSD:bf#8192:ff#1024:\
        :pg#9626400:og#22178079:tg=4.2BSD:bg#8192:fg#1024:\
        :ph#9626400:oh#31804479:th=4.2BSD:bh#8192:fh#1024:\
        :pi#9626400:oi#41430879:ti=4.2BSD:bi#8192:fi#1024:\
        :pj#9626400:oj#51057279:tj=4.2BSD:bj#8192:fj#1024:\
        :pk#41943888:ok#60683679:tk=4.2BSD:bk#8192:fk#1024:\
        :pl#41943888:ol#102627567:tl=4.2BSD:bl#8192:fl#1024:\
        :pm#41943888:om#144571455:tm=4.2BSD:bm#8192:fm#1024:\
        :pn#41943888:on#186515343:tn=4.2BSD:bn#8192:fn#1024:\
        :po#82086480:oo#228459231:to=4.2BSD:bo#8192:fo#1024:\
        :pp#9627345:op#310545711:tp=4.2BSD:bp#8192:fp#1024:

It's not what I'd planned to do, but obviously there is a reasonably
quick route to safety if I can simply replicate on wd1 what's there on
wd0, but my experience of getting disks labeled other than
interactively during installation is severely limited.


All suggestions gratefully received.

--
Steve Blinkhorn <steve@prd.co.uk>