Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78636 - Possible fix for booting LiveCD from USB CD-ROM without "doscsi"
Summary: Possible fix for booting LiveCD from USB CD-ROM without "doscsi"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-19 02:11 UTC by Christian Strauf
Modified: 2005-01-22 12:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch (genkernel-78636.patch,828 bytes, patch)
2005-01-19 11:59 UTC, Tim Yamin (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Strauf 2005-01-19 02:11:03 UTC
I had trouble booting from an USB CD-ROM in an Intel BladeCenter. Please note that I'm fully aware of the bugs 74359 and 72055 but I think that my observation might help to solve the USB issue in bug 74359 without having to use "doscsi". I used Gentoo LiveCD 2004.3 x86 (minimal and universal -- same effect) and had the following effects:

- initial booting worked
- mounting cdrom didn't work

When entering shell mode I realized that the USB cdrom's device /dev/sr0 was present. Mounting the cdrom handishly worked as well. However, in /linuxrc there's no delay between probing the modules (usb_storage among others) and trying to mount the cdrom. My guess is that the timespan between probing the usb_storage module and mounting the cdrom is too short when using udev (the device isn't there yet). I suspect this because when using the options

     gentoo devfs scandelay

at the boot prompt, mounting the cdrom actually works without any problems.

Possible solution: work the scandelay option into /linuxrc's sections for udev (same way as in the devfs sections).

Christian

Reproducible: Always
Steps to Reproduce:
1. Boot from USB CD-ROM drive
2.
3.
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2005-01-19 06:06:25 UTC
Tim, what do you think?
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2005-01-19 10:48:51 UTC
<plasmaroo> I think what would be even better would be this:
<plasmaroo> * If in CD-mode, and mounting fails; automatically scandelay
<plasmaroo> * Try again in 10 seconds.
<plasmaroo> * Be happy if it works. Otherwise, complain.


I like this idea.  Does this sound like it would accomplish the task, Christian?
Comment 3 Christian Strauf 2005-01-19 11:09:34 UTC
Chris,

that sounds like an excellent idea. This might even prevent potential problems with SCSI CD-ROMs that have similiar "timing problems" after a successful modprobe (device "pops up" a millisecond too late). Thumbs up for this fix from my side. :-) Would you like me to suggest a code snippet? I could try to come up with something tomorrow (I don't have the current linuxrc script + included scripts handy right now).

Cheers, Christian
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2005-01-19 11:59:24 UTC
Created attachment 48990 [details, diff]
Patch
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2005-01-22 12:22:22 UTC
Fixed in 3.1.0e; please reopen this bug if the problem still persists. Thanks!