[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

IDE-Scsi Emulation without recompiling ... :-)



Hi there all, it seems that lots of people are having problems recompiling the
new kernel which comes with redhat 7.0

The reason I needed to is to get my IDE HP8100i CD Writer to work. Well,
someone (initials=I.E.) has sent me a solution which worked great, and doesn't
involve any recompiling of the kernel, and is so much quicker to configure :-)

Here is what he wrote:
-------------------------------------------------------------------------------

This is how I would make my CD writer to work.

$ su -
password: <scret>
# cp /etc/conf.modules /etc/conf.modules.bak
# vi /etc/conf.modules

Modify conf.modules for your CDROM writer, my CDROM is located at
/dev/hdc

Here is my conf.modules

alias scd0 sr_mod
alias scsi_hostadapter ide-scsi
options ide-cd ignore=hdc

# cp /etc/rc.d/rc.local  /etc/rc.d/rc.local.bak
# vi  /etc/rc.d/rc.local

Put this at the end of the rc.local
# load ide-scsi module
insmod ide-scsi

# cp /etc/lilo.conf /etc/lilo.conf.bak
# vi /etc/lilo.conf

put the append statement for /etc/lilo.conf your cdrom
'append="hdX=ide-scsi"' and run lilo.
Here is /etc/lilo.conf, my CDROM is located at /dev/hdc

boot=/dev/fd0
timeout=100
message=/boot/message
prompt
image=/boot/vmlinuz-2.2.14-6.1.1
        label=linux
        root=/dev/hda4
        append="hdc=ide-scsi"
        read-only

# /sbin/lilo

Now relink the /dev/cdrom to your scsi emulation of your cdwriter

# mv /dev/cdrom /dev/cdrom.bak
# ln -s /dev/scd0 /dev/cdrom

Reboot.  (I don't know how to restart with new conf.modules and rc.local

in linux :( )

Run dmesg to see if your scsi emulation is working after the reboot

# dmesg
scsi0: SCSI host adapter emulation for IDE ATAPI devices
scsi: 1 host.
  Vendor: HP        Model: CD-Writer+ 8100   Rev: 1.0g
  Type:   CD-ROM                             ANSI SCSI revision: 02
Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
Uniform CDROM driver Revision: 2.56


Run cdrecord to see if you scsi emulation is working also.

# cdrecord -scanbus
Cdrecord 1.8 (i686-pc-linux-gnu) Copyright (C) 1995-2000 Jvrg Schilling
Using libscg version 'schily-0.1'
scsibus0:
        0,0,0     0) 'HP      ' 'CD-Writer+ 8100 ' '1.0g' 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) *

I hope it works for you, it works for me





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]