CDROM drive failure under Linux seems odd - ResellerRatings Store Ratings
Comparison shop, read reviews, find savings, at ResellerRatings.com.
Comparison shop, read reviews, find savings, at ResellerRatings.com.
Comparison shop, read reviews, find savings.
What are you shopping for?
Digital Cameras Plasma and LCD
HDTv's iPods and Other
MP3 Players PC Laptops Camcorders

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 07-05-2002, 07:35 AM   #1 (permalink)
Registered User
 
Join Date: Feb 2001
Location: 03809 region
Posts: 3,501
dunbar is on a distinguished road
Send a message via ICQ to dunbar
Systems CDROM drive failure under Linux seems odd

Ok, here is why I think a certain CDROM drive is still good: Linux boot images (vmlinuz, used on install CDs and with LILO until mid way through the boot process) access it perfectly first try, every try. Rescue disks are the same because they tend to use vmlinuz.

Here is why I think the drive is bad: First off, I replaced it with a different CDROM drive, all seems fine as of now. Second, back when the 'bad' CDROM was still installed, under certain conditions, I had to suffer 3 ATAPI resets before it would allow me to use it. Those conditions were: always need to perform 3x ATAPI reset on the very first access [after the machine was cold booted] or [warm rebooted]. This was not specific to one distro: I tried Slackware 8.0, Debian something and several RPM based distros (RH, MDK, and some others). All suffered the problem. DEVFS was used in some installs, not used in others. Third, sometimes during installations, the install would fail "package error , package foo not installed", but the very next install attempt fails elswhere, or possibly not even failing at all!

The puzzler to me is the fact that bootimages ever got flawless access first try....

Something is assumed differently between the 2 cases of IDE access (vmlinuz vs installed kernel), and the vmlinuz instance is the better choice, IMO. The asumption of a difference makes sense to my limited Linux knowledge, because the 2 kernels themselves are different (amongst other diferences): the modular kernel seems to be the post install / post boot choice; whereas I suspect that the vmlinuz kernel is using more elementary (read that as 'less assumptions').

Any ideas?

__________________
Registered Linux user 260423.
dunbar is offline   Reply With Quote
Old 07-05-2002, 07:49 AM   #2 (permalink)
Registered User
 
Join Date: Oct 2001
Location: australia
Posts: 444
KraM is on a distinguished road
Well, I think when you boot from the CD, the bootloader (NOT Linux) loads an initrd image into memory which the kernel uses as the root filesystem. Whatever install programs that are on there, probably are inside the image and are run (by the kernel) from memory, not from CD.

When the kernel is accessing the CD drive (eg. copying packages) it has problems....

I think this is what you are asking...not real sure...

HTH
KraM is offline   Reply With Quote
Old 07-05-2002, 07:59 AM   #3 (permalink)
Registered User
 
Join Date: Feb 2001
Location: 03809 region
Posts: 3,501
dunbar is on a distinguished road
Send a message via ICQ to dunbar
Quote:
Originally posted by KraM
Well, I think when you boot from the CD, the bootloader (NOT Linux) loads an initrd image into memory which the kernel uses as the root filesystem. Whatever install programs that are on there, probably are inside the image and are run (by the kernel) from memory, not from CD.
It is a really tricky issue: I booted from CD without the errors, on the first try. Then, after the installer routine loads (flawlessly), that program then reads the first data from the CD - flawlessly... remember the initrd you mentioned? It came from the CD, as I am not using a floppy to boot with. Really odd...
__________________
Registered Linux user 260423.
dunbar is offline   Reply With Quote
Old 07-05-2002, 08:27 AM   #4 (permalink)
Registered User
 
Join Date: Oct 2001
Location: australia
Posts: 444
KraM is on a distinguished road
Yes, but the bootloader loaded the image. It just sounds like linux is having trouble with your particular combination of hardware. Or, there is something wrong with you hardware.

I'm taking an educated guess here: I think the bootloader uses the BIOS to access the IDE devices. But, Linux, being the advanced piece of software that it is , accessing these devices directly, thus bypassing potentially buggy BIOSes.

You can force Linux to access the PCI bus through the BIOS, and the IDE controllers are on the PCI bus (??). Anyway, to do this, while configuring a kernel:

make menuconfig -> General Setup -> PCI Access Mode -> BIOS

I use menuconfig when configuring the kernel, it may be somewhat different if you use xconfig.

Worth a try I think May open up a whole new can of worms if your BIOS is buggy etc...

If it doesn't work, no big deal, just go back to your old kernel. It may also be worth trying just selecting direct instead of any, which is the default AFAIK.
KraM is offline   Reply With Quote
Old 07-05-2002, 10:04 AM   #5 (permalink)
Registered User
 
Join Date: Oct 2001
Location: Clovis, CA
Posts: 2,481
caddmannq is on a distinguished road
Whoa! This is an eye-opener!

I've got two distros that have failed to install from CD's I burned on another PC. I've been blaming the CDs themselves, even though they seemed to check out clean when I made them.

I've installed Linux from CD on this box before, but it had a diffferent CD drive...
caddmannq is offline   Reply With Quote
Old 07-05-2002, 11:04 AM   #6 (permalink)
Registered User
 
Join Date: Feb 2001
Location: 03809 region
Posts: 3,501
dunbar is on a distinguished road
Send a message via ICQ to dunbar
yeahbut

Quote:
Originally posted by KraM
Yes, but the bootloader loaded the image.

Exactly where did the image come from???? It came from the CDROM disc called 'distro install disc one'. Flawless performance on that first try when accessing the CDROM drive. After that point, the loaded data contained something that eventually modified how the current process would access the CDROM. Buggy BIOS or no, the same BIOS worked correctly before the software loaded in order to get the bootloader (did not need ATAPI resets at that point... I'd have heard it, very distinct pattern of head positioning attempts), then everything still worked correctly while loading the first booted code and even worked while loading of a few subsequent screens. After this, the system then began working incorrectly. And the same BIOS works fine on a different CDROM.
Quote:
It just sounds like linux is having trouble with your particular combination of hardware. Or, there is something wrong with you hardware.
Granted. I use a different CDROM now because I have already decided the first CDROM drive might be bad... I'm now using a diffferent drive on the same system and things now act correctly. We'll see how the different drive functions over the next few weeks, but no ATAPI resets thus far means I like it more than the first drive.
Quote:
I'm taking an educated guess here: I think the bootloader uses the BIOS to access the IDE devices. But, Linux, being the advanced piece of software that it is , accessing these devices directly, thus bypassing potentially buggy BIOSes.
Might the device be designed exactly the other way around - assuming the BIOS will be the only method? Might the Linux assumption that 'all CDROM drives are standardized' be a bit less than realistic?
Quote:
You can force Linux to access the PCI bus through the BIOS, and the IDE controllers are on the PCI bus (??). Anyway, to do this, while configuring a kernel:
Not while booting from CD for the first install....
Thanks for trying, but I remain uninformed.
__________________
Registered Linux user 260423.

Last edited by dunbar : 07-05-2002 at 11:09 AM.
dunbar is offline   Reply With Quote
Old 07-05-2002, 04:53 PM   #7 (permalink)
Registered User
 
Join Date: Oct 2001
Location: Augsburg, Germany
Posts: 3,814
Peter M is on a distinguished road
Point here probably is that the board's BIOS runs the CDROM drive in a slower transfer mode than Linux is trying to do. Typically, CDROM boot is performed using some kind of PIO mode, while modern Linux distros try to auto-setup a suitable DMA mode. There aren't exactly few IDE CDROMs that screw up in DMA modes. You need to use the "idedma=" kernel parameter on bootup for those.

regards, Peter
Peter M is offline   Reply With Quote
Old 07-05-2002, 08:08 PM   #8 (permalink)
Registered User
 
Join Date: Oct 2001
Location: Clovis, CA
Posts: 2,481
caddmannq is on a distinguished road
Hey there, PeterM...regarding "idedma=" parameter....

..equals what? Am I pointing to a certain DMA channel?
...or a certain CDROM drive number?
...or ???

Cadd.
caddmannq is offline   Reply With Quote
Old 07-06-2002, 03:24 AM   #9 (permalink)
Registered User
 
Join Date: Oct 2001
Location: Augsburg, Germany
Posts: 3,814
Peter M is on a distinguished road
I don't use IDE here Please refer to the Linux kernel documentation for the exact syntax. It should be in the usual FAQs too since this is quite common a problem.

regards, Peter
Peter M is offline   Reply With Quote
Old 07-06-2002, 09:08 AM   #10 (permalink)
Registered User
 
Join Date: Oct 2001
Location: Clovis, CA
Posts: 2,481
caddmannq is on a distinguished road
AHA! To enable for all IDE drives, which is what I wanna do:

"idedma=yes" (from the SUSE FAQ)

Thanks once again...
Cadd.
caddmannq is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Most Active Discussions
Cyberpowerpc.com Any Good? (10)

Recent Discussions
Cyberpowerpc.com Any Good? (10)
Like New Wacom 12x19 Intuos 3 +.. (1)
For Sale BFG GTX285 OC2 with 10.. (2)
www.szprice.com - any experienc.. (1)
Games, Cables, PCI cards, and m.. (5)
Buymoreshopping.com? Wigix.com (3)
I want your old/new unused pc p.. (6)
:mad: Spam At-hon (3)
Fall-Winter Cleaning Sale (1)
DON'T BUY.COM Advisory (232)
Is certifiedwatchstore.com legi.. (1)
Beware of used XBOX 360's (12)
Cheap Used Computers (0)
Reputation: Establishing Trust .. (0)
Are the sites like this for rea.. (3)

All times are GMT -6. The time now is 09:29 PM.