Subject: Re: NetBSD Vs. DVD-RAM
To: Andrew Ball <aball@students.prairiestate.edu>
From: David Laight <david@l8s.co.uk>
List: port-i386
Date: 06/02/2007 10:05:34
On Sat, Jun 02, 2007 at 12:06:34AM -0000, Andrew Ball wrote:
> 
> 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...
...
> bytes/sector: 2048

That just ain't gonna work ...

There have been several patches for non-512 byte media in the past, but
there are some filesystem layout issues to resolve correctly before
any such patches are applied.

In particuar some numbers that are currently defined as 'sectors' probably
need to be defined in terms of '512-byte units' so that the filesystem
contents are independant of the raw media sector size.

Similarly code that looks for the netbsd disklabel (on i386 et al) must
look at bytes 512-1023 of the partition, not in the 2nd sector (bytes 2024-
4097) otherwise it won't be using the reserved space within the bootcode.

Until very recently there was very little non-512 byte media available
(some floppies only sold in Japan).  However there are now some USB sticks
(usually with embedded MP3 players) that have 2k sectors and are cheap
and available - so possibly things might improve.

I'm also not entirely sure you want to put a UFS filesystem onto a DVD-RAM.
The access patterns will (probably) make the performance suck.

	David

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