Warning: include(/usr/local/apache/htdocs/dev.php3): failed to open stream: No such file or directory in /usr/local/www/apache22/vhosts/linux.ardynet.com/idescsi.php3 on line 2 Warning: include(): Failed opening '/usr/local/apache/htdocs/dev.php3' for inclusion (include_path='.:/usr/local/share/pear') in /usr/local/www/apache22/vhosts/linux.ardynet.com/idescsi.php3 on line 2
Written by Rick Dicaire 01/31/99.
Warning: filemtime(): stat failed for /usr/local/apache/htdocs/idescsi.php3 in /usr/local/www/apache22/vhosts/linux.ardynet.com/idescsi.php3 on line 10 Last updated on December 31, 1969, 07:00:00 PM
This document also assumes a straight IDE PC, with no scsi controller cards (after all, if you had a scsi card, why would you bother with an IDE cd writer :-)
The following people are credited, I gleaned most of this from their various READMEs and other docs, and simplified it for the masses of new Linux users.
Credits:
From
xcdroast docs - Thomas Niederreiter, and
all those people HE credited for in his README.ATAPI. The authors of
mkisofs, and cdrecord.
The authors of the Linux kernel, "Use the Source Luke!" :) If I
missed anyone, email me and let me know, I will fix it pronto!
alias scsi_hostadapter ide-scsi
Don't forget to run depmod -a after altering modules.conf
Here are my /etc/fstab entries for the CDROM drives:
/dev/hdc /mnt/cdrom iso9660 noauto,ro 0 0 /dev/hdd /mnt/cdrom iso9660 noauto,ro 0 0 /dev/scd0 /mnt/cdrom iso9660 noauto,ro 0 0 /dev/scd1 /mnt/cdrom iso9660 noauto,ro 0 0The mount points are arbitrary, I use a single mount point for all of them because I don't have a need to mount two CDs simultaneously. You may of course mount them wherever you wish.

Disable CDROM support, enable SCSI emulation support.
Under SCSI Support:

Enable SCSI support, SCSI CDROM support, Enable vendor-specific extensions, and SCSI generic support. You can modularize these as I have, or add them in full (select y instead of m). Further down in the above menu is SCSI low-level drivers --->. Go in here and disable any and all SCSI controller card support (default unconfigured kernel has one of the SCSI cards enabled, select n for it). Make sure no other cards are enabled. Exit the kernel configuration, saving the options. Compile and install kernel. Reboot. Watch boot messages for something like the following:
hdc: HP CD-Writer+ 7200, ATAPI CDROM drive hdd: ACER CD-787E/JAS, ATAPI CDROM drive scsi0 : SCSI host adapter emulation for IDE ATAPI devices scsi : 1 host. Vendor: HP Model: CD-Writer+ 7200 Rev: 3.01 Type: CD-ROM ANSI SCSI revision: 02 Vendor: ACER Model: CD-787E/JAS Rev: 22N Type: CD-ROM ANSI SCSI revision: 02 scsi : detected total.
If you're successful, cdrecord -scanbus should return something similar to:
Cdrecord 1.8a40 (i586-pc-linux-gnu) Copyright (C) 1995-2000 Jörg Schilling
Using libscg version 'schily-0.1'
scsibus0:
0,0,0 0) 'HP ' 'CD-Writer+ 7200 ' '3.01' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
On my system the following modules are autoloaded when an audio CD is played:
sr_mod 17068 2 (autoclean) cdrom 11584 0 (autoclean) [sr_mod]
When I mount a data CD, additional file system support module(s) are loaded:
isofs 17096 1 (autoclean)
The scsi generic module sg.o gets loaded when you burn a cd:
sg 12012 0 (autoclean)
The CDR is /dev/scd0. I can also use both to mount data CDs. Here's my
/etc/fstab entries for them:
/dev/scd0 /cdrom iso9660 noauto,ro 0 0 /dev/scd1 /cdrom2 iso9660 noauto,ro 0 0
This configuration is arbitrary. See here for other /etc/fstab entries. However, since only one /dev/cdrom link can be set, its recommended by this author that you link it to the device best suited for your CD audio playback needs.