Subject: Re: can't write to vnd partition
To: None <netbsd-help@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: netbsd-help
Date: 06/14/2005 18:23:26
On Tue, Jun 14, 2005 at 01:09:07PM +0200, Jukka Salmi wrote:
> Hi,
> 
> seems as if I can't write to a vnd partition:
...
> $ sudo dd if=/dev/zero of=/dev/rvnd0a
> dd: /dev/rvnd0a: Read-only file system
> 2+0 records in
> 1+0 records out
> 512 bytes transferred in 0.001 secs (512000 bytes/sec)
...
> What am I missing?

The sector that (is expected to) contains the NetBSD disklabel is write
protected.

See disklabel -NW, but be aware that this info is likely to get lost
once there are no opens on the disk (I think there might be something
somewhere else that makes it persistent - but I can't remember.)

	David

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