LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-21-2003, 11:48 AM   #1
phekno
Member
 
Registered: May 2003
Distribution: Gentoo, Slackware
Posts: 75

Rep: Reputation: 15
SCSI Emulation after Kernel recompile


OK. I recompiled my kernel last week and tried to mount a CD-ROM last night. When I try to mount I get this:

[root@localhost /]# mount /mnt/cdrom
mount: /dev/cdrom: can't read superbloc

Here is what my fstab says:

/dev/cdrom /mnt/cdrom auto noauto,owner,kudzu,ro 0 0

(OK it says more than that but this line is the only relevent one)

Here is what it says when I run cdrecord -scanbus:

[root@localhost /]# 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'.

This would lead me to believe that when I recompiled my kernel I didn't include SCSI emulation for IDE devices even though I did include SCSI support. Is that where my problem lies? If so can I do: make oldconfig and change it? In grub I have hdc=ide-scsi and hdd=ide-scsi. Is this wrong?

FYI this drive is a Sony CD-RW CRX220E1, ATAPI CD-ROM drive.

Any help would be greatly appreciated.

Thanks,
Phekno

P.S. I did search the LQ forum for this problem before I posted so don't rag on me.
 
Old 10-21-2003, 12:58 PM   #2
hussar
Member
 
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Rep: Reputation: 30
You will need to enable generic scsi support as well as scsi support.

What does /dev/cdrom point to? If it is still pointing to /dev/hdc or /dev/hdd, that could be the problem too. For example, my /dev/cdrom is a link pointing to /dev/sr0.

When you do 'dmesg | less' do you see lines like this in the output:

SCSI subsystem driver Revision: 1.00
hdc: attached ide-scsi driver.
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: SAMSUNG Model: CDRW/DVD SM-348B Rev: T501
Type: CD-ROM ANSI SCSI revision: 02
 
Old 10-21-2003, 02:05 PM   #3
phekno
Member
 
Registered: May 2003
Distribution: Gentoo, Slackware
Posts: 75

Original Poster
Rep: Reputation: 15
Here are some answers to your questions:

[root@localhost dev]# ls -alc | grep cdrom
lrwxrwxrwx 1 root root 8 Oct 15 18:39 cdrom -> /dev/hdc

So to answer your first question, yes, /dev/cdrom is pointing to /dev/hdc.

ide_setup: hdc=ide-scsi
ide_setup: hdd=ide-scsi

SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2

Those are several things that I found under dmesg. When I compiled the kernel a week ago I specifically remember compiling into the kernel (not a module) generic scsi support, however, I don't think (I don't even know if this is an option) I added support for scsi emulation and I think that is why I can't mount this thing. The other option is that it's a bad disk, but I hope that's not the case.

Later,
Phekno
 
Old 10-21-2003, 03:48 PM   #4
hussar
Member
 
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Rep: Reputation: 30
Change /dev/cdrom so that it points to /dev/sr0 and then try to mount the drive, or enter the command 'mount -t auto /dev/sr0 /mnt/cdrom'. The reason for this is that now that you have told the kernel that hdc should be handled as a scsi device you need to address it as such.

What you need to compile support for, either in the kernel or as a module, is scsi support, generic scsi support, and (under the ide/atapi) scsi emulation. Looks like you've got all that covered. (Although checking again can't hurt.)

BTW, what distro are you trying this on? I am not certain if they all use /dev/sr0 for the first scsi drive in the chain. My Slackware box does; so does my SuSE 8.0 box. But, I have never run Red Hat or Mandrake.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel 2.8.1 scsi emulation doralsoral Linux - Software 6 10-18-2004 09:30 AM
k3b and scsi emulation in kernel 2.6x taek Slackware 10 10-03-2004 09:46 AM
CD Writing without ide-scsi emulation in 2.6 kernel xgreen Linux - Software 6 02-19-2004 09:49 AM
Kernel SCSI Emulation for CD-RW Obscure Slackware 4 08-22-2003 02:00 PM
SCSI Emulation with Kernel 2.4.18-bf2.4 Donald1000 Linux - Hardware 2 10-30-2002 05:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration