Subject: Re: changing SCSI device type?
To: None <hubert.feyrer@informatik.fh-regensburg.de>
From: Kenneth D. Merry <ken@kdm.org>
List: tech-kern
Date: 11/22/1999 22:54:20
Hubert Feyrer wrote...
> On 22 Nov 1999, Charles M. Hannum wrote:
> > > cd1 at scsibus0 targ 4 lun 0: <MATSHITA, PD-2 LF-D100, A113> SCSI2 5/cdrom removable
> > Which is arguably correct.  *Why* do you want to change this?
> 
> Because
> 1) The writer is not supported by cdrecord and according to Joerg
>    Schilling will never be. Reason here seems to be that this is a
>    "PD" drive, whatever that is.

You don't need support from cdrecord for DVD-RAM drives.  DVD-RAM drives
use a standard read/write model, like optical disks, instead of the CD-R
model where the disks require fixation, etc.

I'm not sure what "PD" stands for, either.

What I did for FreeBSD (really some one-off hacks) was put write support in
the CD driver.  (It hasn't been checked in yet, since it hasn't really been
tested very much.)  The guy I did the change for is using a bunch of
DVD-RAM drives in a FreeBSD box as a DVD-RAM duplication system.

> 2) A patch located at
>    http://www.panasonic.com/industrial_oem/computer/storage/dvd-ram/images/drivers/panasonic-dvd.diff.gz
>    (note that the drive is sold by Panasonic) 
>    suggests that treating the device like a disk (sd) works, which seems
>    to be ~true. Right now I can write up to 2048 bytes and read them back,
>    anything more will experience some corruption. 

Right, these drives act more or less like disks.  They don't need to be
fixated like CD-R's.

> I didn't have time to look further into this, but any help/suggestions are
> very welcome.

Ken
-- 
Kenneth Merry
ken@kdm.org