2004-03-17 20:23:05

by Karel Kulhavy

[permalink] [raw]
Subject: SCSI emulation - CD-R

Hello

When I want an ATAPI CD-writer to appear on device (21,0) (/dev/sg0)
using the scsi emulation mechanisms, which bits have to be on and off
from the following 4 config bits in make menuconfig?
* IDE/ATAPI CDROM support
* SCSI emulation support
* SCSI CDROM support
* SCSI generic support

How can this information be derived from linux kernel documentation? I
would like to understand the mechanism beyond deriving this information
from the linux kernel documentation so that next time, when solving some
other problem, I could use the same approach and not need to write here
on linux-kernel.

Cl<


2004-03-17 21:09:30

by Matthew Reppert

[permalink] [raw]
Subject: Re: SCSI emulation - CD-R

On 17 Mar 2004, Karel Kulhavy <Karel Kulhavy
<[email protected]>> wrote:
> Hello
>
> When I want an ATAPI CD-writer to appear on device (21,0) (/dev/sg0)
> using the scsi emulation mechanisms, which bits have to be on and off
> from the following 4 config bits in make menuconfig?
> * IDE/ATAPI CDROM support
> * SCSI emulation support
> * SCSI CDROM support
> * SCSI generic support
>
> How can this information be derived from linux kernel documentation? I
> would like to understand the mechanism beyond deriving this information
> from the linux kernel documentation so that next time, when solving some
> other problem, I could use the same approach and not need to write here
> on linux-kernel.

The first time I had to set up a CD writer to work with Linux, I checked
(what is now) the Linux Documentation Project http://www.tldp.org/ which
has a nice CD-writer HOWTO document, detailing not only how you need to
configure your kernel, but also how to use the userspace tools to burn
CDs.

However, with recent kernels and tools, you don't need to (and shouldn't)
use ide-scsi to use ATAPI CD writers. cdrecord dev=/dev/hdc (assuming
that's
the correct IDE device) works just fine.

Matt

2004-03-18 12:48:58

by Karel Kulhavy

[permalink] [raw]
Subject: Re: SCSI emulation - CD-R

> The first time I had to set up a CD writer to work with Linux, I checked
> (what is now) the Linux Documentation Project http://www.tldp.org/ which
> has a nice CD-writer HOWTO document, detailing not only how you need to
> configure your kernel, but also how to use the userspace tools to burn
> CDs.
>
> However, with recent kernels and tools, you don't need to (and shouldn't)
> use ide-scsi to use ATAPI CD writers. cdrecord dev=/dev/hdc (assuming
> that's
> the correct IDE device) works just fine.

Now it works. The trick was to disable the support for ATAPI CD-ROM

Cl<