Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345
Rep:
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:
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.
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.