LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-28-2007, 11:51 AM   #1
dwhitney67
Senior Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Question about CD-ROM device


In the past when I dealt with Linux Kernel 2.4.27, my CD-ROM drive was handled via /dev/scd0 and /dev/cdrom (was somehow created) to point to that character device. During boot-up from a CD-R, the root (within the grub configuration) was set to /dev/scd0. Everything worked fine.

Now that I am using Linux Kernel 2.6.20.1, my CD-ROM drive is recognized by Grub as /dev/hdb. Yet once I boot up, /dev/cdrom is pointing to /dev/scd0.

I suspect that /dev/scd0 is the correct device, however I am not sure if I have configured the kernel properly? The hardware I am using is the same. I have an IDE HDD and a CD-ROM drive connected to the same IDE cable. I am not a hardware guru, so all I can say is that the CD-ROM drive is a Plextor CD-R/W drive.

Btw, when I finish with the operations I perform after booting from the CD-ROM, I get a Kernel Panic... perhaps eluding that I am using the wrong device??

Here is the listing of my Grub menu.lst file that actually allows me to boot:

PHP Code:
#
# Grub boot file
# For iso9660 cdrom
#
# THIS IS NOT THE FILE YOU ARE LOOKING TO EDIT.  See /boot/boot/grub/menu.lst
# (Unless, of course, you are tweaking the CD ROM boot sequence -- not likely.)
#

default 0
timeout 10

#splashimage=/boot/splash.xpm.gz

title install
root 
(cd)
kernel /boot/vmlinuz-2.6.20.1 root=/dev/hdb init=/to_install/do_install_wrapper 
Please, I need help with this issue. If there is any information that I have left out that could help troubleshoot this problem, please let me know.

Thank you.
 
Old 09-28-2007, 01:29 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
I'm not sure I totally understand what the CD-ROM booting situation is all about, but I will offer two ideas anyhow;

1 - As the CD-ROM device is identified by GRUB (and I presume by the system itself) as /dev/hdb I recommend deleting the symlink /dev/cdrom and recreating it to point to /dev/hdb. Just navigate to the /dev folder, and as root, delete the /dev/cdrom device node, and use
Code:
ln -s /dev/hdb /dev/cdrom
and

2 - perhaps for whatever reason, either your computer, or that particular CD drive, you may try adding hdb=ide-scsi on the kernel boot line. I suggest this, because under your old configuration, the CD drive was linked to a scsi device node, and it worked, so it may work again by doing this.

Let us know if this gets you anywhere
 
Old 09-28-2007, 01:42 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
In the 2.4 kernel IDE CDs were handled by emulating them as SCSI CDs. In the 2.6 kernel IDE CDs are handled as native IDE mode. The old SCSI emulation should be dropped.

In moving from the 2.4 kernel to the 2.6 kernel you should get rid of anything specifying IDE-SCSI emulation. You can straighten out /dev/cdrom with these commands:
rm /dev/cdrom
ln -s /dev/hdb /dev/cdrom

"Here is the listing of my Grub menu.lst file that actually allows me to boot:"

This implies that you have tried several menu.lst files. This one seems OK. If you have any menu.lst files where you
have passed hdb=ide-scsi as a kernel parameter then remove hdb=ide-scsi. The hdb=ide-scsi was used in the 2.4 kernel to specify IDE-SCSI emulation.

------------------
Steve Stites
 
Old 09-28-2007, 02:03 PM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
Quote:
Originally Posted by jailbait View Post
In the 2.4 kernel IDE CDs were handled by emulating them as SCSI CDs. In the 2.6 kernel IDE CDs are handled as native IDE mode. The old SCSI emulation should be dropped.
Steve Stites
Humm, so maybe CONTRARY to my suggestion, it may actually be the source of the issue, rather than a solution? If there were the IDE-SCSI flag in use, it may actually cause the problem?

If so-- fancy that! I learn something EVERY DAY around here! Thanks.
 
Old 09-28-2007, 02:27 PM   #5
dwhitney67
Senior Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541

Original Poster
Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Jailbait and GrapefruiTGirl -

In the past when I dealt with 2.4.27, there was nothing special about the menu.lst file that specified to treat the CD-ROM device (/dev/scd0) as an ide-scsi. The same with the new menu.lst.

I have found that the "eject" command accepts the device name as a parameter. I suppose I could be specific when using this command to eject /dev/hdb, instead of relying on it to use whatever /dev/cdrom points to.

When I am booting from the CD-ROM and running Busybox, I am operating in read-only mode (except for /tmp and /var/log which are setup as read/write ram-disks). Thus changing the /dev/cdrom link (if any) would not be possible.

Anyhow, I have another pressing matter (for which I have sought help)... my keyboard isn't working after boot-up. Thus it is impossible right now to analyze the system after it has booted into a shell.

Anyhow, thanks for your help. I was hoping that there was a kernel configuration option that I should enable or disable, but perhaps the issue with the CD-ROM drive is not "really" an issue, and all that is needed is to adjust the link of /dev/cdrom.
 
  


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
CD-Rom is not a valid block device. MikeEnIke Slackware 9 03-17-2006 01:11 AM
Can not find CD-Rom device sgtbob Linux - Hardware 4 03-31-2004 08:28 AM
Block Device and CD-Rom Mounting Alybyzrp Linux - Newbie 12 10-28-2003 07:45 AM
cd-rom device for Gentoo Tez218 Linux - Distributions 1 09-22-2003 10:41 PM
DVD-ROM not detected CD-RW mistaken as CD-ROM Device DarkXtar Slackware 21 06-02-2003 07:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:29 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