LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   cdrom troubles with newly compiled kernel (http://www.linuxquestions.org/questions/linux-general-1/cdrom-troubles-with-newly-compiled-kernel-37432/)

N_A_J_M 12-05-2002 04:39 PM

cdrom troubles with newly compiled kernel
 
One slight issue with my newly compiled kernel.
I have 2 cdrom drives one works with my new kernel and the other doesnt
/hdb - hp cd-writer 9100 (doesnt work with my new kernel)
/hdc - asus 16x dvd (does work with my new kernel)

both drives worked with the original Rh7.2 kernel 2.4.7-10, but with kernel 2.4.19 which i compiled the hp cd writer doesnt work (hdb)

when i try to mount the device:

Code:

[root@xion root]# mount -t iso9660 /dev/hdb /mnt/cdrom1
mount: /dev/hdb is not a valid block device
[root@xion root]#

i get that error :P

hmmmmm anyone know the answer?

cheers

neo77777 12-05-2002 04:50 PM

Do you have
append="hdb=ide-scsi"
in /etc/lilo.conf or any mention of hdb being ide-scsi in /boot/grub/grub.conf if you are using GRUB?

neo77777 12-05-2002 04:51 PM

Also post
demsg|less
output, we are intersted in section where CD-ROM's are getting initialized so you can skip the rest.

N_A_J_M 12-05-2002 05:17 PM

Yeah sorry i should have said i am using lilo
Code:

image=/boot/bzImage
        label=2.4.19
        read-only
        root=/dev/hda8
        append="hdb=ide-scsi"

what are you talking about demsg|less ? sorry are you talking about the file /var/log/dmesg ?

neo77777 12-05-2002 05:38 PM

yep, there is a command dmesg that parses this log as well, so now as you drive is known as scsi, show me /sbin/lsmod
is ide-scsi there?
If yes, according to dmesg it will be /dev/scd* or /dev/sr*, decipher the log to get a clue, if you are inpatient try
mount /dev/scd0 -tiso9660 /mnt/cdrom1
Works? No substitute /dev/sdc0 to /dev/sr0 and try again, but dmesg will tell you what device it got assign to, later you might as well edit /etc/fstab to point to the right device, one more check to see if your CD-R/RW is ready is running as root
cdrecord -scanbus
If it shows up you are good to roll

N_A_J_M 12-05-2002 05:59 PM

This is the output when i do /sbin/lsmod

Code:

[root@xion sbin]# lsmod
Module                  Size  Used by
ppp_deflate            40368  0  (autoclean)
bsd_comp                4048  0  (autoclean)
ppp_async              6688  1  (autoclean)
NVdriver            1065776  10  (autoclean)
mousedev                4048  1
hid                    12944  0  (unused)
usb-uhci              21984  0  (unused)
usb-ohci              18832  0  (unused)
usbcore                65248  1  [hid usb-uhci usb-ohci]
rtc                    6784  0  (autoclean)

is that what you meant? i cant see an "ide-scsi" there
hmmmm...

neo77777 12-05-2002 06:27 PM

You might've compiled it into kernel, so does cdrecord -scanbus reports anything about your CD-R/RW?

N_A_J_M 12-08-2002 05:40 PM

Neo sorry about the delayed reply! (rough weekend :P )

here it is, and it doesnt look good! ha

Code:

[root@xion root]# cdrecord -scanbus
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling
cdrecord: No such file or directory. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
[root@xion root]#

cheers

neo77777 12-08-2002 09:21 PM

When you compiled kernel what did you set for SCSI support, SCSI CD-ROM support, SCSI general support and IDE CD-ROM support?

N_A_J_M 12-09-2002 04:14 AM

From what i can remember i set all scsi to off! (naturally, coz i have no scsi devices), however support for ide drive i did include.
I didnt include support for old cdrom drives.

Im guessing the problem has something to do with the scsi support?


All times are GMT -5. The time now is 08:31 AM.