1829539 Members
2113 Online
109992 Solutions
New Discussion

Still Have CDROM Problem

 
SOLVED
Go to solution
Nobody's Hero
Valued Contributor

Still Have CDROM Problem

This has been an ongoing problem and I have posted it here for resolution and I appreciate everyones help. I built a kernel from scratch to support ACL. the kernel has XFS support. I still cant see my cdrom with

cdrecord -scanbus, it returns:


[root@pompano boot]# cdrecord -scanbus
Cdrecord 2.0 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.


I am still missing something and I cant figure it out. Its probably simple.

My modules.conf file looks like:

alias scsi_hostadapter sym53c8xx
alias scsi_hostadapter1 megaraid
options ide-cd ignore=hda #ignore ide-cd for hda
alias scd0 sr_mod #load sr_mod upon access of scd0
pre-install sg modprobe ide-scsi # load ide-scsi before sg
pre-install sr_mod modprobe ide-scsi #load ide-scsi before sr_mod
pre-install ide-scsi modprobe ide-cd #loa ide-cd before ide-scsi

not sure where to go from here.



UNIX IS GOOD
30 REPLIES 30
Huc_1
Honored Contributor

Re: Still Have CDROM Problem

First I would check to see if your scsi card is loaded.

#dmesg

if this is loaded

#lsmod

This should show something like

sym58c8xx
ide-cd

as loaded

if not insmod
#insmod ide-cd

Cut past from your dmesg and lsmod here so we can have a look and try help futher.

J-P
Smile I will feel the difference
Patrick Van Humbeeck
Valued Contributor

Re: Still Have CDROM Problem

also did you pass hdx=ide-scsi to the kernel at boot time ? (from grub or lilo)
Nobody's Hero
Valued Contributor

Re: Still Have CDROM Problem

Patrick yes, you mean in /boot/grub/grub.conf?
If so, then yea I have that entry in there.

I loaded another SCSI parm and I can run cdrecord -scanbus but as you can see, no cdrom.

root@pompano root]# cdrecord -scanbus
Cdrecord 2.0 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jrg Schilling
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.7'
cdrecord: Warning: using inofficial libscg transport code version (schily - Red Hat-scsi-linux-sg.c-1.75-RH '@(#)scsi-linux-sg.c 1.75 02/10/21 Copyright 1997 J. Schilling').
scsibus0:
0,0,0 0) 'HP ' '18.2GB C 68-P94N' 'P94N' Disk
0,1,0 1) 'HP ' '9.10GB C 68-BX05' 'BX05' Disk
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
scsibus1:
1,0,0 100) *
1,1,0 101) *
1,2,0 102) 'HP ' 'C1537A ' 'L105' Removable Tape
1,3,0 103) *
1,4,0 104) *
1,5,0 105) *
1,6,0 106) *
1,7,0 107) *

When I run mondoarchive, I get the following error.

insmod: ide-scsi: no module by that name found


Funny though, If I boot from a mondoarchive cdrom backup cd, it wants to go. Looks like it boots fine from the firmware. Not sure whats going on,,,kernel problem?

I am in the process of trying the suggestions above. I'll post the outcome in a few minutes.
UNIX IS GOOD
Patrick Van Humbeeck
Valued Contributor

Re: Still Have CDROM Problem

well your problem is probably right there, you do not have the ide-scsi module on your system (unless you compiled that into the kernel ? what does grep -i ide-scsi /usr/src/linux/.config say ?)

try to find that module and load it:
find /lib/modules -name 'ide-scsi.o'
modprobe ide-scsi

that should help. In case you forgot to build the kernel (line in .config is commented out) just change that line to read IDE-SCSI=m (not sure about the exact name) and run make clean && make dep && make modules modules_install from /usr/src/linux, then you should be able to load it.
Mark Grant
Honored Contributor

Re: Still Have CDROM Problem

I take it you have "CONFIG_BLK_DEV_IDESCSI" (SCSI emulation support) in your kernel.
Never preceed any demonstration with anything more predictive than "watch this"
Huc_1
Honored Contributor

Re: Still Have CDROM Problem

Yes, check and see your .config file

I also found

/usr/share/doc/kernel-doc-2.4.20/ide.txt
on my system did not know about this look some usefull info in there! also about ide-cd

My god this forums is fast, just turn around answer phone and 2 good replys ! wow

J-P
Smile I will feel the difference
Nobody's Hero
Valued Contributor

Re: Still Have CDROM Problem

dmesg is attached. I am guessing that my scsi card is loaded because I am using SCSI drives.

#lsmod
returns nothing....

[root@pompano root]# insmod ide-cd
insmod: ide-cd: no module by that name found
UNIX IS GOOD
Nobody's Hero
Valued Contributor

Re: Still Have CDROM Problem

Sorry...here you go...dmesg

UNIX IS GOOD
Nobody's Hero
Valued Contributor

Re: Still Have CDROM Problem

OK once again...
UNIX IS GOOD
Alexander Chuzhoy
Honored Contributor

Re: Still Have CDROM Problem

I'm sorry.
Do you have 2 CDROMS?
it seems from the file that the cdrom/dvdrom is ide device that sits on hda
cdrecord -scanbus usefull to find SCSI devices...
Nobody's Hero
Valued Contributor

Re: Still Have CDROM Problem

Patrick,

grep -i ide-scsi /app/kernel/linux-2.4.19/.config

Returns nothing...
UNIX IS GOOD
Patrick Van Humbeeck
Valued Contributor

Re: Still Have CDROM Problem

Yeah sorry as Mark kindly mentionned above, the line you want to look for is called CONFIG_BLK_DEV_IDESCSI which does not match grep -i ide-scsi, I replied a bit too fast :)

what does it say for CONFIG_BLK_DEV_IDESCSI ?
Nobody's Hero
Valued Contributor

Re: Still Have CDROM Problem

Marc,

CONFIG_BLK_DEV_IDESCSI is not set


this was in my .config file
UNIX IS GOOD
Huc_1
Honored Contributor

Re: Still Have CDROM Problem

Your dmesg show your disk and scsi cards no problem there.

but the fact that you find no lsmod is not so good !

Are you sure you did

make modules
modules install

after you created your new kernel ...

for that matter are you sure it is your new kernel that is booted ?

Normal situation is /etc/modules.conf populated and lsmod returning value

Dont despair, well get you there.

I will go grab a bite now, before collaps

J-P

Smile I will feel the difference
Patrick Van Humbeeck
Valued Contributor

Re: Still Have CDROM Problem

well then just change that line to remove the # in front and append =m, then save (well, use the same syntax as other modules defined in there).

then run the make commands as I put in an earlier post, this will build the needed module and should fix your issue.
Nobody's Hero
Valued Contributor

Re: Still Have CDROM Problem

Only 1 cdrom.

DVD/RW
UNIX IS GOOD
Mark Grant
Honored Contributor

Re: Still Have CDROM Problem

Although it looks like your cdrom is attached to a detected ide card the general ide set up looks really wacky. If I were you, I would include CONFIG_BLK_DEV_SVWKS (ServerWorks OSB4 chipset support) in your kernel. It might make things a bit saner at least.
Never preceed any demonstration with anything more predictive than "watch this"
Alexander Chuzhoy
Honored Contributor

Re: Still Have CDROM Problem

Well then does it really SCSI device?
Maybe it's IDE?
Where does it connect to?
You know just to be sure....
Nobody's Hero
Valued Contributor

Re: Still Have CDROM Problem

Yes ide cdrom...

When I compile a kernel, during the make modules install,
I get the following error:


No module sym53c8xx found for kernel 2.4.19-xfs
mkinitrd failed
make[1]: *** [install] Error 1
make[1]: Leaving directory `/app/kernel/linux-2.4.19/arch/i386/boot'
make: *** [install] Error 2
UNIX IS GOOD
Patrick Van Humbeeck
Valued Contributor

Re: Still Have CDROM Problem

hmm, that's rather strange .. you are in the kernel tree you used to build the currently running kernel, right ?

also make sure you run make modules_install and not make modules install (well, that should work too but will attempt to auto install everything, which is not needed, you only want one single module at this point).

can you find the .o files for that module ? and the ide-scsi one ?
Alexander Chuzhoy
Honored Contributor

Re: Still Have CDROM Problem

you wrote that you don't see your cdrom when you run: cdrecord -scanbus
from cdrecord's man:
-scanbus is to scan all SCSI devices, i.e. it doesn't suppose to show your cdrom which is IDE.
Regards
Patrick Van Humbeeck
Valued Contributor

Re: Still Have CDROM Problem

but he needs his drive to show up as a scsi device (using scsi emulation if it's IDE) in order to use it as a burner, wether it physically is an IDE or SCSI drive does not matter.
Mark Grant
Honored Contributor

Re: Still Have CDROM Problem

Don't compile the CONFIG_BLK_DEV_SVWKS (ServerWorks OSB4 chipset support) as a module. I think you need this option and it might be your problem.
Never preceed any demonstration with anything more predictive than "watch this"
Nobody's Hero
Valued Contributor

Re: Still Have CDROM Problem

Yes I found the .o file you asked me to look for...

/lib/modules/2.4.20-8/kernel/drivers/scsi/ide-scsi.o
UNIX IS GOOD