Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Apr 1995 00:00:00 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        rgrimes@gndrsh.aac.dev.com, roberto@blaise.ibp.fr
Cc:        bde@zeta.org.au, freebsd-current@FreeBSD.org
Subject:   Re: Label/slices : how to add a disk ?
Message-ID:  <199504061400.AAA22412@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> 215 [3:34] root@keltia:~# disklabel -B sd2
>> Bad pack magic number (label is damaged, or pack is unlabeled)
>Do what I said with fdisk, then create a file /tmp/foo that looks like
>this (only use your numbers):

># /dev/rsd0c:
>type: SCSI
>disk: MICROP_2112
>label: 15MQ1001901HQ30
>...
>8 partitions:
>#        size   offset    fstype   [fsize bsize bps/cpg]
> c:  1966080        0    unused        0     0         # (Cyl.    0 - 959)

>Then disklabel -R -B sd2 /tmp/foo

I think you can create a suitable /tmp/foo using
	disklabel /dev/rsd2 >/tmp/foo
You'll have to edit the unused (?) rpm and interleave fields to satisfy
disklabel(8) and some ASCII fields for printing in bug reports (:-).
The driver should initialize a few more fields.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504061400.AAA22412>