Bug 62873 - boot error message with hdg=ide-scsi
boot error message with hdg=ide-scsi
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
Depends On:
Blocks: 61590
  Show dependency treegraph
Reported: 2002-04-06 16:59 EST by Joshua Jensen
Modified: 2014-03-16 22:26 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-04-09 17:18:38 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Joshua Jensen 2002-04-06 16:59:28 EST
Description of Problem:

During boot, between the "Mounting root filesystem" and "Finding module
dependencies" messages, I see a message that is something like:

/dev/hdg:  no such file or device

I have a cdrw drive on /dev/hdg, therefor I have "hdg=ide-scsi" on the kernel
line from my grub.conf file:

kernel /vmlinuz-2.4.18-0.13 ro root=/dev/hde6 hdg=ide-scsi ide0=noprobe
ide1=noprobe ide2=ata66

I am not using and have not changed /etc/sysconfig/harddisk* at all.
I've noticed that if I boot without the "hdg=ide-scsi" parameter, I see a
more-sensible hdparm message (something about setting /dev/hdg to use DMA mode
0) in place of the error message.

Version-Release number of selected component (if applicable):

Hampton Beta 4

[root@thunderbird RPMS]# rpm -qf /etc/rc.d/rc.sysinit

Thank you.
Comment 1 Nils Philippsen 2002-04-07 06:56:41 EDT
These lines from rc.sysinit cause the error:

# Turn off DMA on CD-ROMs. It more often than not causes problems.
if [ -e /proc/ide ]; then
  for N in `grep -v ide-disk /proc/ide/*/*/driver 2>/dev/null | awk -F / '{
print $5 }'`; do
   hdparm -d0 /dev/$N

First, rc.sysinit should check whether the device in question is ide-scsi and
depending on the result either do nothing or disable DMA differently (I don't
know if that can be done with hdparm, though). Second, hdparm should be quiet
("hdparm -q"):

# Turn off DMA on CD-ROMs. It more often than not causes problems.
if [ -e /proc/ide ]; then
  for N in `grep -v ide-disk /proc/ide/*/*/driver 2>/dev/null | awk -F / '{
print $5 }'`; do
   if [ -z "$(grep "$N=ide-scsi" /proc/cmdline)" ]; then
     #  no ide-scsi
     hdparm -q -d0 /dev/$N
     # ide-scsi -- ignore or disable DMA differently
Comment 2 Nils Philippsen 2002-04-08 18:48:25 EDT
Just noticed that rc.sysinit will ignore CDROMs/DVDs when evaluating
/etc/sysconfig/harddisk*. Very bad manners -- if I want wilfully to turn DMA on,
don't be standing in my way ;-). Watching DVDs just isn't possible with PIO (and
this is a 1.4GHz Athlon) and my DVD works very well with DMA, thank you. And
rc.local just isn't an option if there are hooks in rc.sysinit for it.

Maybe evaluate /etc/sysconfig/harddisk* for CDROMs/DVDs only when the user
waives all support right there? Maybe like this (/etc/sysconfig/harddiskhd*):

# DMA on CDROM or DVD causes many problems.
# Do not turn this on unless you know what you're doing. This configuration
# isn't supported!
Comment 3 Bill Nottingham 2002-04-10 01:26:24 EDT
The error messages should go away in initscripts-6.62-1.

Note You need to log in before you can comment on or make changes to this bug.