Re: Problem with a corrupted disklabel

David Laight <[email protected]>
Newsgroups gmane.os.netbsd.ports.hpcarm
Message-ID <[email protected]>
On Thu, May 11, 2006 at 05:04:34PM +0100, Richard Danter wrote:
> Thanks Mark. For some reason my version of disklabel does not have the
> -D option. <sigh>

That only got added post 3.0

If you hexdump the start of the disk, the label is (probably) in sector
0 (or maybe sector 1, or maybe the first (or second) sector of a netbsd
mbr partition).  In any case writing zeros to the sector with 'dd'
will zap it (but you might have to use disklabel -W to make the label
unprotected [1]).

	David

[1] run 'sleep 9999 </dev/rwdxd' in another window (or with &) to keep the
diak open.

-- 
David Laight: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.