Subject: Re: Problem with a corrupted disklabel
To: Richard Danter <richard.danter@ntlworld.com>
From: David Laight <david@l8s.co.uk>
List: port-hpcarm
Date: 05/11/2006 21:44:21
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: david@l8s.co.uk