Subject: can't write to vnd partition
To: None <netbsd-help@netbsd.org>
From: Jukka Salmi <j+nbsd@2005.salmi.ch>
List: netbsd-help
Date: 06/14/2005 13:09:07
Hi,

seems as if I can't write to a vnd partition:

$ dd if=/dev/zero of=image count=4k
4096+0 records in
4096+0 records out
2097152 bytes transferred in 0.039 secs (53773128 bytes/sec)
$ vnconfig vnd0 image
$ vnconfig -l
vnd0: /home (/dev/raid0i) inode 43181
vnd1: not in use
vnd2: not in use
vnd3: not in use
$ disklabel vnd0
[...]
4 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:      4096         0     4.2BSD      0     0     0  # (Cyl.      0 -      1)
 d:      4096         0     unused      0     0        # (Cyl.      0 -      1)
$ 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)

However, newfs works:

$ newfs vnd0a
/dev/rvnd0a: 2.0MB (4096 sectors) block size 4096, fragment size 512
        using 4 cylinder groups of 0.50MB, 128 blks, 224 inodes.
super-block backups (for fsck -b #) at:
   32, 1056, 2080, 3104,


What am I missing?

TIA, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~