Subject: NetBSD Vs. DVD-RAM
To: None <port-i386@netbsd.org>
From: Andrew Ball <aball@students.prairiestate.edu>
List: port-i386
Date: 06/02/2007 00:06:34
Hello,

This morning I made another attempt at using NetBSD with DVD-RAM
media. NetBSD's fdisk wants nothing to do with it, which is fine by me
because I would rather avoid fdisk altogether. I was able to label the
disc and even create a filesystem on it. Unfortunately I can't seem to
mount the disc...

# uname -a
NetBSD  4.99.20 NetBSD 4.99.20 (ALMOND-$Revision: 4.mungrel $) #4: Mon
May 21 14:04:43 GMT 2007  root@:/usr/obj/sys/arch/i386/compile/ALMOND
i386

# disklabel cd0
# /dev/rcd0d:
type: ATAPI
disk: mydisc
label: fictitious
flags: removable
bytes/sector: 2048
sectors/track: 100
tracks/cylinder: 1
sectors/cylinder: 100
cylinders: 22368
total sectors: 2236704
rpm: 300
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:   2236703         1     4.2BSD      0     0     0  # (Cyl.      0*
-  22367*)

# newfs -S 2048 /dev/cd0a
/dev/cd0a: 4368.6MB (2236703 sectors) block size 16384, fragment size
2048
using 24 cylinder groups of 182.03MB, 11650 blks, 23040 inodes.
super-block backups (for fsck_ffs -b #) at:
8, 93208, 186408, 279608, 372808, 466008, 559208, 652408, 745608,
838808,
......................................................................

# mount /dev/cd0a /mnt/dvd
mount_ffs: /dev/cd0a on /mnt/dvd: incorrect super block

How should I mount ffs media with 2048-byte sectors?

  - Andy Ball.