> I have added a CD-RW to my SuSE 8.1 box.
> The system does not recognize the CD-RW
> I remember having seen something about SCSI over IDE settings, but do not
> know the details anymore.
> Can somebody point me in the right direction ?
OK, first off, run the 'dmesg' command from a console
'dmesg | more'
and look for messages that look like
VP_IDE: VIA vt82c686a (rev 22) IDE UDMA66 controller on pci00:04.1
ide0: BM-DMA at 0xb800-0xb807, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xb808-0xb80f, BIOS settings: hdc:pio, hdd:DMA
hda: Maxtor 52049H4, ATA DISK drive
hdb: Maxtor 2B020H1, ATA DISK drive
hdc: SyQuest EZ135A, ATA DISK drive
hdd: CD-ROM 48X/AKH, ATAPI CD/DVD-ROM drive
The "hda:", etc messages show the IDE devices that the kernel detected,
and should list both your cdrom and cdrw devices. Note down /which/
device your cdrw device is listed as (i.e. hdd:), because you'll need to
know this later.
Now, you can access your cdrw device as is, by 'mount'ing the associated
/dev/hd? device. For instance, if 'dmesg' indicated that your cdrw
device was found on hdc:, then you can put a cdrom into the drive and
'mount -t iso9660 /dev/hdc /mnt/cdrom'
and access the cdrom in the cdrw drive through the mount.
Recent versions of the cdrecord tools can also use the IDE /dev/hd?
device to read and write cdrw disks, but the tools work better when
acting in the SCSI mode of the ATAPI interface, rather than the IDE mode.
So, you can either leave things as they are, or you can tell your kernel
that the device is really an IDE-SCSI device. To set the device as
IDE-SCSI, you'll have to give the kernel a startup parameter that says
"hd?=ide-scsi" (where the hd? is the device that dmesg reported your
cdrw drive on). You typically set this value through your bootloader; I
don't know how to set the kernel options through GRUB, but for LILO, you
simply include a line like ' append = "hdd=ide-scsi" ' in either the
global config or the config for your particular bootable image. The
latter looks like
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hdb2
label = linux
append = "hdd=ide-scsi"
read-only
You set the value in your lilo.conf file, and run 'lilo' to build a new
MBR. The next time you reboot, your cdrw device will be recognized as an
IDE-SCSI device, and all accesses to it will be handled by the SCSI drivers.
Now, since this causes the kernel to switch your cdrw device into SCSI
mode, you no longer access it through the /dev/hd? device. Instead, you
access it through the /dev/sr? (or /dev/scd?) device. Again, 'dmesg' can
help figure out which device this will be; 'dmesg | more' will show
something like
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: E-IDE Model: CD-ROM 48X/AKH Rev: R21
Type: CD-ROM ANSI SCSI revision: 02
where each scsi?: line corresponds to a specific /dev/sr? device (the
first scsi cd device reported will be /dev/sr0, the second will be
/dev/sr1, etc.)
Your mount command changes to
mount -t iso9660 /dev/sr0 /mnt/cdrom
or something similar.
Additionally, the cdrecord tools will report the device
(i.e. 'cdrecord -scanbus' will report the cdrw at a particular
bus/channel/lun number).
--
Lew Pitcher
Master Codewright and JOAT-in-training
Registered Linux User #112576 (http://counter.li.org/)
Slackware - Because I know what I'm doing.