Howto install CD-ROM + CD-RW

Howto install CD-ROM + CD-RW

Post by John Zoetebie » Sun, 18 May 2003 10:00:27



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 ?

--
John Zoetebier
Transparent Systems

 
 
 

Howto install CD-ROM + CD-RW

Post by John Zoetebie » Sun, 18 May 2003 15:51:09


In the mean time I have figured this out.
The jumper on the CDRW had to be set to slave.

--
John Zoetebier
Transparent Systems

 
 
 

Howto install CD-ROM + CD-RW

Post by John Zoetebie » Sun, 18 May 2003 19:56:37


It's working now.
The bootloader needs to load in addition to other modules:
ide-scsi

--
John Zoetebier
Transparent Systems

 
 
 

Howto install CD-ROM + CD-RW

Post by Lew Pitche » Mon, 19 May 2003 02:26:15



> 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.

 
 
 

Howto install CD-ROM + CD-RW

Post by John Zoetebie » Tue, 20 May 2003 06:47:40


Thanks Lew

I had a look at the SuSE web side and followed their instructions.
After some while I figured out that I needed to set in
/etc/sysconfig/kernel:
INITRD_MODULES="reiserfs ide-scsi"

This can be done by bootloader in YAST or manually.
However SuSE advise to load some other modules like cdrom and ide-cd before
ide-scsi
And that caused me a lot of problems as scsi emulator was not working
properly.
After removing these modules all was working fine.

--
John Zoetebier
Transparent Systems

 
 
 

Howto install CD-ROM + CD-RW

Post by John Zoetebie » Tue, 20 May 2003 06:55:59



> 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

GRUB file looks like:
==>
# Modified by YaST2. Last modification on Sat May 17 21:00:17 2003

gfxmenu (hd0,0)/message
color white/blue black/light-gray
default 0
timeout 4
append hdc=ide-scsi hdd=ide-scsi

title linux
    kernel (hd0,0)/vmlinuz root=/dev/hda6   vga=791
    initrd (hd0,0)/initrd

title floppy
    root (fd0)
    chainloader +1

title failsafe
    kernel (hd0,0)/vmlinuz.shipped root=/dev/hda6 ide=nodma apm=off acpi=off
vga=normal nosmp maxcpus=0 disableapic 3
    initrd (hd0,0)/initrd.shipped
==>

On SuSE change via YAST.

--
John Zoetebier
Transparent Systems

 
 
 

1. SCSI CD-RW: yamaha 4416s: HowTo REWrite CD-RW's?

Hi,

I have a SCSI-CD-RW drive yamaha 4416s in my linux box
(4x write, 4x re-write, 16x read)
along with a SCSI CD-ROM TEAC CD-532S (/dev/scd0)

1) How to get it work with CD-RW's?
2) How to erase CD-RW's?
3) How to (re-)write?

I have cdrecord and xcdroast installed.

Many questions. I know

Any help is welcome.
Carsten

2. ADVERTISE TO OVER 100 MILLION PEOPLE FOR FREE!!!

3. Reading CD-RW from normal CD-Rom

4. Misleading comment for CONFIG_FUSION (LSI fusion MPT driver)

5. CD-ROM, CD-RW, Internal ZIP , Confusion!

6. Stumbled on this....

7. SCSI CD-rw and cd-rom recommendation

8. Modem Hangup

9. replacing IDE CD-ROM with IDE CD-RW - kernel panic!

10. 2nd CD-ROM/CD-RW

11. SCSI problem w/ CD-ROM & CD-RW

12. CD-RW and CD-ROM hogging the CPU

13. CD-ROM & CD-RW - How???