Re: udev, atapi cdrw drives and cdrecord
On 07 Aug 2004, matt zagrabelny wrote:
> On Sat, 2004-08-07 at 10:08, Alan Chandler wrote:
> > I have a hardware setup which includes two atapi cdrom like drives - /dev/hdc
> > is a cd rewriter (or cd recorder) and /dev/hdd is a dvd drive.
> >
> > I am running a 2.6 kernel (2.6.7-k7-1) which is supposed to automatically
> > include ide-scsi without the need to load a module.
> >
> > I have set up udev to create /dev/hdc and also a symlink /dev/cdrw to point to
> > it.
> >
> > I am trying to use cdrecord to make a cd. But it seemingly hangs (forever).
> > It outputs the information below and then suspends (and ctrl C does not kill
> > it).
> >
> > alan@kanger debcd $ cdrecord -eject speed=12 dev=/dev/cdrw
> > sarge-i386-netinst.iso
> > cdrecord: No write mode specified.
> > cdrecord: Asuming -tao mode.
> > cdrecord: Future versions of cdrecord may have different drive dependent
> > defaults.
> > cdrecord: Continuing in 5 seconds...
> > Cdrecord-Clone 2.01a34 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg
> > Schilling
> > NOTE: this version of cdrecord is an inofficial (modified) release of cdrecord
> > and thus may have bugs that are not present in the original version.
> > Please send bug reports and support requests to
> > <cdrtools@packages.debian.org>.
> > The original author should not be bothered with problems of this
> > version.
> >
> > scsidev: '/dev/cdrw'
> > devname: '/dev/cdrw'
> > scsibus: -2 target: -2 lun: -2
> > Warning: Open by 'devname' is unintentional and not supported.
>
> actually the 2.6 kernel provides native ATAPI layer for cdrecord to use.
> so you dont need a scsi emulation layer (ide-scsi). google for something
> like "scanbus atapi cdrecord" to get started.
>
> that said, if you choose to use scsi emulation, your cd drives will be
> /dev/scd0, /dev/scd1. not /dev/hdc, etc.
>
> -matt
I had quite a lot of trouble with this one as well, when I first tried
the 2.6. kernel; my experience was similar to the OP's. When things
didn't work I also went back to scsi emulation but I had no luck with
that either. The solution, eventually, was to make a link:
/dev/cdrw > /dev/hdd
(I have two cd drives; if you have only one I suppose it would be
/dev/hdc.)
Incidentally, cdroast doesn't seem to like this arrangement so you have
to use cdrecord with the 2.6 kernels as far as I can see, but I've
decided this is an advantage anyway.
Anthony
--
ac@acampbell.org.uk || http://www.acampbell.org.uk
using Linux GNU/Debian || for book reviews, electronic
Windows-free zone || books and skeptical articles
Reply to: