Enabling SCSI Emulation for CD Burning Software



I had difficlutly setting up a Ricoh CD Burner under RedHat 7.2 this is what I did to enable it to work with sony CD Player also installed.

The following was done on a RedHat 7.2 box.

Add Kernel  Parameter/s

I pass kernel parameters when I boot enabling scsi emulation.

You need to make sure that this value persists accross reboots.

Edit /etc/grub.conf

So in grub I put hdX=ide-scsi where X is the letter of your CD/CDRW....
To tell the kernel to treat it like a scsi device....

Here is a sample from my /etc/grub.conf
title Red Hat Linux (PreEmpt)
        root (hd0,2)
        kernel /boot/vmlinuz-2.4.18-2002-04-25preempt ro root=/dev/hda3 
hdc=ide-scsi
        initrd /boot/initrd-2.4.18-2002-04-25.img
# the above lines from kernel to ide-scsi is on one line
if you have another cdrom / cdrw put "hdc=ide-scsi hdd=ide-scsi" change the
lettering to suit your install.
or

Edit /etc/lilo.conf

if you have to do this in lilo
put an "append="hdc=ide-scsi hdd=ide-scsi"" in the global configuration area
(i.e. up the top of the file not in the seperate image sections)

Link your scsi devices to the standard devices

I did the following command as root.
If you have a cdrom and a cdrw then do these...
ln -sf /dev/scd0 /dev/cdrom
ln -sf /dev/scd1 /dev/cdrw

Edit the /etc/fstab

Your fstab file should have these entries so you can mount both as CD's
/dev/cdrom /mnt/cdrom iso9660 noauto,user,kudzu,ro 0 0
/dev/cdrw /mnt/cdrw iso9660 noauto,user,kudzu,ro 0 0

any of your burning sotware should refer to the
/dev/scd1 device or whatever your cdrw number is....

Reboot

Check using dmesg for the correct parameters being passed to the kernel

dmesg | grep hd

If you do it correctly you will get similar to the following

Kernel command line: ro root=/dev/hda3 hdc=ide-scsi
ide_setup: hdc=ide-scsi

Telling you the kernel has read the parameter and understands that you want
to treat your IDE CD's like scsi...

Check that you have the correct scsi modules loaded

lsmod

Module                  Size  Used by
sr_mod                 13664   2  (autoclean)
ide-scsi                7776   1
scsi_mod               89920   2  [sr_mod ide-scsi]

I don't have these in my /etc/modules.conf the kernel auto-detects they are needed and adds them.

James McDonald