Subject: Re: Cloning /dev/wd0
To: Frederick Bruckman <fredb@immanent.net>
From: David Laight <david@l8s.co.uk>
List: netbsd-help
Date: 12/10/2002 15:09:24
> > You will also, probably, find that netbsd will refuse to write
> > to the sector that is believes contains the netbsd disklabel.
> > This might be sector 0 if the disk doesn't have a netbsd partition.
> > The DIOCWLABEL ioctl will let you do the write...
> 
> I zero'd out a labeled disk before removing it just the other day,
> using the raw device. The in-core label is protected, but "dd" did
> actually write zeros to the disk, as evidenced by the label being
> absent after a reboot. It might not work with the block device.

Yes - dev/ata/wd.c doesn't call 'bounds_check_with_label' for
the RAW_PART.

	David

-- 
David Laight: david@l8s.co.uk