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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.
P.S. I did search the LQ forum for this problem before I posted so don't rag on me.
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
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.