Using an ATAPI CD-R

Support knowledgebase (adrian_ide_brenner)
Applies to

SuSE Linux: Versions up to (including) 7.1
This article refers to an older version of SuSE Linux. Therefore some of the informations given in this article may be outdated or the article may contain stale links.

Kernel: Version 2.2

Request:

You'd like to write CDs using an ATAPI CD writer

Procedure:

The program cdrecord, the standard program used under Linux to write CDs, only functions with SCSI Writers. There is, however, a kernel module that can simulate a SCSI Drive on an IDE bus. With the help of this module you can succesfully write CDs using an IDE CD-R drive. For this it is necessary to repress the loading of support for IDE CD drives so that the SCSI emulator, as module, can be loaded later. You can do so using YaST under menu item System Administration --> / Kernel/Boot Configuration --> / Configure LILO . In the "Append Line for Hardware Parameter" you need to add the option hdX=ide-scsi, where X is the specific device number. If, for example your CD-R drive is connected as Master on the second Bus then you should enter hdc=ide-scsi

In addition you'll need to change the file /etc/conf.modules.
Exchange the line:

alias scsi_hostadapter off
with
alias scsi_hostadapter ide-scsi
After you've booted the kernel you should be able to mount your CD drive as /dev/scdX, where X is the specific device number, if you've other SCSI drives this number will vary.
You drive should be listed with the command:
cdrecord -scanbus
Some CD-R drives will be detected 8 times (i.e. as /dev/scd0 to /dev/scd7). In this case please add in the "Append Line for Hardware Parameter" (see above) the option

max_scsi_luns=1

Keywords: ATAPI, IDE, CDR, WRITER, SCSI

SDB-adrian_ide_brenner, Copyright SuSE Linux AG, Nürnberg, Germany - Version: 15. Nov 1999
SuSE Linux AG - Last generated: 17. Apr 2002 by wimer (sdb_gen 1.40.0)