Subject: 2048 bytes/sector vnd and newfs
To: None <netbsd-users@netbsd.org>
From: Florian Stoehr <netbsd@wolfnode.de>
List: netbsd-users
Date: 02/10/2005 00:34:01
Hi,
I'd like to create a vnd with 2048 bytes/sector, consisting of 100
sectors/cylinder, 1 track/cylinder and 327 cylinders.
The goal is to create a FFS non-ISO CDROM image (thus 2048 bytes/sec).
It fails in newfs.
Any hints? Is that possible at all (regarding the FFS CDROM).
root@irina [~] # dd if=/dev/zero of=image.img bs=2k count=32768
32768+0 records in
32768+0 records out
67108864 bytes transferred in 2.352 secs (28532680 bytes/sec)
root@irina [~] #
root@irina [~] # vnconfig vnd0 image.img 2048/100/1/327
# /dev/rvnd0d:
type: vnd
disk: vnd
label: fictitious
flags:
bytes/sector: 2048
sectors/track: 100
tracks/cylinder: 1
sectors/cylinder: 100
cylinders: 327
total sectors: 32768
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
4 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 32768 0 4.2BSD 0 0 0 # (Cyl. 0 -
327*)
d: 32768 0 unused 0 0 # (Cyl. 0 -
327*)
root@irina [~] # newfs vnd0a
/dev/rvnd0a: 64.0MB (32768 sectors) block size 16384, fragment size 2048
using 4 cylinder groups of 16.00MB, 1024 blks, 1920 inodes.
wtfs: write error for sector 32767: Invalid argument
root@irina [~] #
Thanks
Florian