cdrdao (WAS Re: [CLUE-Tech] ISO images from Audio CD's?)

Timothy C. Klein teece at silverklein.net
Sun Dec 8 19:10:02 MST 2002


* Randy Arabie (randy at arabie.org) wrote:
> On Sunday,  8 December 2002 at 18:52:41 -0700, Timothy C. Klein <teece at silverklein.net> wrote:
> > * Randy Arabie (randy at arabie.org) wrote:
> > > On Sunday,  8 December 2002 at 12:37:24 -0700, Dave Price <davep at kinaole.org> wrote:
> > > I'm giving cdrdao a whirl.  I tried this:
> > > 
> > > rrarabie at potter:~$ cdrdao copy -v 10 --device 0,0,0 --source-device
> > > /dev/hdb --speed 4 --buffers 64 --reload --eject --on-the-fly --fast-toc
> > > --paranoia-mode 0
> > > 
> > > And I got this:
> > > 
> > > 0,0,0: HP CD-Writer+ 9100       Rev: 1.0c
> > > Reading driver table from file "/usr/share/cdrdao/drivers".
> > > Found 184 valid driver table entries.
> > > Using driver: Generic SCSI-3/MMC - Version 1.2 (options 0x0010)
> > > 
> > > ERROR: /dev/cdrom: Need a filename that resolves to a SCSI device.
> > > ERROR: Cannot open SCSI device '/dev/cdrom': Cannot open '/dev/cdrom'
> > > ERROR: Please use option '--device bus,id,lun', e.g. --device 0,6,0
> > > ERROR: Cannot setup source device /dev/cdrom.
> > > 
> > > I think I understand the error.  /dev/cdrom is a symbolic link to 
> > > /dev/hdb.  It works as a CD-ROM, but I've never been able to play 
> > > audio CD's from it.  Apparently, cdrdao and the xmms need to access 
> > > it via it's SCSI device bus,id,lun.  However, I don't know hot to 
> > > get this.  For my writer I use cdrecord --scan-bus, that only reports
> > > my CD-Writer:
> > 
> > I believe that it wants a SCSI device, not a device on the filesystem.
> > If cdrdao is like cdrecord, you would give it: --device 0,0,0
> 
> But I don't know the bus,id,lun for my CD-ROM (/dev/cdrom)!  When I 
> do cdrecord --scan-bus, it only reports the CD-Writer.  How do I 
> 'discover' the bus,id,lun of the CD-ROM?
> 
> I guess I could start trying 1,0,0 and 0,0,1 and 1,1,1 until I find 
> it ;)
> 

Oh, sorry, I did not notice that you had two CD drives.  In this case, I
don't think you will be able to use the device with the cd burning
utilities unless you make the generic scsi driver control it.  I thought
it controlled all drives by default, but maybe not.  Try rebooting,
passing a parameter to the kernel of:

hdb=ide-scsi

You could do it through lilo, or just type at the boot prompt

LILO:  linux hdb=ide-scsi

I think I have that right above.  Replace linux with whatever the name
of your boot image is.

I find this to be an annoying feature of all of the CD burning software
- it all relies on generic SCSI.  If you don't want a drive to be a
generic SCSI, (like, say, my DVD drive, which has its performance
destroyed by the software only sg driver), you can't use that drive as a
read device.  I can see why they do it, but it is still a pain.

Tim
--
==============================================
== Timothy Klein || teece at silverklein.net   ==
== ---------------------------------------- ==
== "Hello, World" 17 Errors, 31 Warnings... ==
==============================================



More information about the clue-tech mailing list