Previous Section
 < Day Day Up > 
Next Section


Installing IDE CD-R/RW and DVD R/RW Devices

Linux CD-burning applications all treat CD-R/RW and DVDR/RW drives as if they were SCSI drives. This means that IDE CD-R/RW drives have to emulate SCSI drives for them to be recognized and used by CD or DVD writing software. Even if you want to use an IDE CD-ROM or DVD-ROM in a CD writing applications—say, as just the reader to copy a CD disc—that IDE CD-ROM drive would still have to emulate a SCSI CD-ROM drive. Only SCSI drives (CD-R/RW/ROM or DVDR/RW/ROM) are recognized by Linux CD or DVD writing software. For example, if you have a regular IDE CD-ROM and you want to use it with Linux CD-write software to copy CDs (ripping), you still have to have that IDE CD-ROM emulate a SCSI CD-ROM. Check the CD-Writing HOW-TO at www.tldp.org for more details. A brief description is provided here.

Tip 

SCSI emulation for IDE devices is implemented in the kernel as SCSI Emulation Support in the IDE, ATA, and ATAPI Block Devices entry, located in the ATA/IDE/MFM/RLL Support window opened from the main kernel configuration menu. Normally, it is compiled as a module.

IDE CD and DVD drives (CD-R/RW/ROM or DVDR/RW/ROM) are recognized as IDE devices during installation and installed as such. However, when you start up your system, you need to instruct the Linux kernel to have the IDE CD and DVD drives emulate SCSI CD or DVD drives. This means that a CD-R drive that would be normally recognized as a /dev/hdc drive has to be recognized as a /dev/scd0 device, the first SCSI CD-ROM drive. You do this by loading the ide-scsi module, which allows an IDE CD drive to emulate a SCSI CD drive.

SCSI Emulation

You can implement SCSI emulation for IDE CD and DVD drives in one of two ways: by either loading the ide-scsi module as a kernel parameter or specifying the module in the /etc/modules.conf file (/etc/modprob.conf in 2.5 and 2.6 kernels). You will also have to indicate the IDE drives to emulate. If the ide-scsi module is compiled into the kernel (not as a separate module), you have to load it as a kernel parameter. An ide-scsi module can be loaded either way.

Tip 

During installation, Red Hat will recognize the IDE CD and DVD drives you have installed on your system, and it will include the ide-scsi kernel parameter automatically as part of either your LILO or GRUB boot loader configurations. You do not need to perform any of the specific configuration tasks described in this section.

Kernel Parameters at Boot Time

As a kernel parameter, you can either manually enter the ide-scsi parameter at the boot prompt or place it in the /etc/grub.conf or /etc/lilo.conf file (depending on whether you are using the GRUB or LILO boot loader) to have it automatically entered. The parameter is read when the system starts up. List each IDE CD or DVD drive that needs to emulate a SCSI drive as using the ide-scsi module. You assign the ide-scsi module to the device name of the IDE CD drive to be emulated. The following example loads the ide-scsi module to have the master IDE drive on the secondary IDE connection (hdc) emulate a SCSI drive:

hdc=ide-scsi

Grub and CD Writers

If you installed Red Hat with your IDE CD-R/RW drive already attached, GRUB would have automatically detected it and listed the ide-scsi module for that drive in its boot parameters. You can always manually enter the parameter by typing a at the GRUB boot entry for your Linux system, displayed when you start up your computer. The parameters for your Linux system will be listed. Just add the CD-R/RW ide-scsi module assignment. The following example shows how two IDE CD drives are specified at the Linux boot prompt:

grub append> ro root=/dev/hda3 hdc=ide-scsi

For the /etc/grub.conf file, add these parameters to the Linux kernel line, just as you would to a boot entry:

kernel /boot/vmlinuz-2.4.18-3 ro root=/dev/hda3 hdc=ide-scsi
Tip 

If you are not using GRUB, or if for some reason you do not want to modify the /etc/grub.conf file, you can configure the /etc/modules.conf file (/etc/modprob.conf on 2.5 and 2.6 kernels) to load and implement the SCSI emulation for your IDE CD drives. This involves entering several module configuration commands in the /etc/modules.conf file. When your system starts up, it will load the modules as specified in that file.

scanbus

To check that your IDE drives are being recognized as SCSI drives, run cdrecord with the -scanbus option (or dvdrecord for DVD writers). This example shows two IDE CD drives now emulating SCSI CD drives. One is a Plextor IDE CD-RW drive (scd0), and the other is a Toshiba DVD-ROM drive (scd1).

# cdrecord -scanbus
Cdrecord 1.9 (i686-pc-linux-gnu) Copyright (C) 1995-2000 Jörg Schilling
Linux sg driver version: 3.1.17
Using libscg version 'schily-0.1'
scsibus0:
            0,0,0  0) 'PLEXTOR ' 'CD-R   PX-W1210A' '1.02' Removable CD-ROM
            0,1,0  1) 'TOSHIBA ' 'DVD-ROM SD-M1402' '1010' Removable CD-ROM
            0,2,0  2) *
            0,3,0  3) *
            0,4,0  4) *
            0,5,0  5) *
            0,6,0  6) *
            0,7,0  7) *


Previous Section
 < Day Day Up > 
Next Section
This HTML Help has been published using the chm2web software.