Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83276 - Install CD fails when using a USB CD-ROM
Summary: Install CD fails when using a USB CD-ROM
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Everything (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords: InVCS
: 86953 88333 TabletPC_boot_fail 89580 93790 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-25 02:44 UTC by Mark
Modified: 2005-11-21 06:53 UTC (History)
11 users (show)

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


Attachments
Stage 1 spec file used to build test CD. (livecd-stage1_template.spec,1.26 KB, text/plain)
2005-08-16 13:51 UTC, Gordon Innes
Details
Stage 2 spec file used to build test CD. (livecd-stage2_template.spec,733 bytes, text/plain)
2005-08-16 13:53 UTC, Gordon Innes
Details
Patch for the linuxrc file. (initrd.patch,264 bytes, patch)
2005-08-16 13:58 UTC, Gordon Innes
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark 2005-02-25 02:44:49 UTC
Trying to use a live CD to boot the system so I can install gentoo on a dell D410.
The system has a external CD DRive in either the "mediabase" or via USB on a special connector for extra power (both are USB protocol according to XP)

The CD boots then loads the following modules:
 - ehci-hcd 
 - usb-storage
 - uhci-hcd
 - ohci-hcd
 - ieee1394
 - ohci1394
 - sbp2

Next it attemps to mount CD at:
 - /newroot/dev/cdroms/*
 - /newroot/dev/ide/cd/*
 - /newroot/dev/sr0

and fails with the following message:

"Could not find CD to boot, something else needed""
"mount: mounting /newroot/dev on /dev failed: no duch file or directory"

does keymap thing then fails with:

"loadkmap: /dev/cv/0: No such file or directory"
"umount: /dev: Invalid argument

Determining root device...
"The root block device is unspecifed or not detected"
"Please specify a device to boot, or "shell" for a shell..."
boot() ::

Try pointing it to /dev/hda3 where the live cd is coppied onto a fat32 partition or to /dev/sr0 where the CD drive is and it kernel panics.

using shell I can mount /dev/sr0 and find the files on the live CD located there 

Basically Help :)

The Dell D410 is an intel Sonama laptop (centrino 2) with a 1.86Ghz CPU and 1GB RAM, the graphics is the built in intel 915GM.

Have tried with acpi on and off, noapic, doscsi and gentoo-nofb and all die in this way.

Other live CD's die in a similar way, but a ubuntu install CD works, completes and sends me on my way to a working ubuntu install.

Any help would be welcome as I actually like running gentoo.

Reproducible: Always
Steps to Reproduce:
1. Boot Live CD
2. Wait 
3. Failure as described

Actual Results:  
Bootup fails

Expected Results:  
Take me to a console so I can install Gentoo

Dell D410 laptop specs can be found from www.dell.co.uk under the notbooks ->
latitude section.

The live CD is 2004.3 although I have also tried a ubuntu live CD & Knoppix all
of which fail in a similar way.
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2005-02-25 05:30:17 UTC
Did you boot with "doscsi"?
Comment 2 Mark 2005-02-26 10:23:21 UTC
I tried it without doscsi initially, however after an initial failure I tried it with doscsi and that failed in the same way.

Mark
Comment 3 Mark 2005-03-07 03:29:42 UTC
Any ideas would be appreciated please.
Comment 4 Mark 2005-03-18 06:23:23 UTC
An addition to this, I have now tried other machines booting off USB CD drives and they fail to boot using a wide variety of live CD's including the Gentoo Boot CD's

This is not restricted to Dell laptops and affects other brands also.
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2005-03-29 09:00:59 UTC
*** Bug 86953 has been marked as a duplicate of this bug. ***
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2005-04-08 07:23:05 UTC
*** Bug 88333 has been marked as a duplicate of this bug. ***
Comment 7 Giovanni 2005-04-12 05:48:36 UTC
I also have the same problem on a IBM X40 mod. 2386H4G, Intel pentium M processor 1.40 GHz and a USB BenQ Slim Combo DW-224E cd drive.
I'm completely new to Linux but i would like to start with Gentoo, so please help me to solve this problem!
Comment 8 Mark 2005-04-12 07:39:59 UTC
After further testing I can conclude that many other distro's live CD's do exactly the same. I am now fairly certain that this has something to do with the way live CD's boot up when the main drive is a USB CD Device.

It would appear that this is a common problem not linked to just gentoo.

Hope this helps somebody.

As an aside I found a ubuntu or similar full installer CD worked, so I put ubuntu on my laptop with that in to a minimal configuration, then did a full gentoo install from in that.
Have latest gentoo now running, using only UDEV (devfs never touched the system) and all is happy and fine :)
Comment 9 Thomas Bauer 2005-04-13 09:30:47 UTC
there seems to be a workaround:

http://forums.gentoo.org/viewtopic-t-320660.html

so it's a problem with udev not making the right /dev entrys
Comment 10 Giovanni 2005-04-15 14:19:11 UTC
Using "/dev/ram0" instead of "/dev/sr0" the program starts booting perfectly...the only problem is that it doesn't let you choose the keymaps! It directly choose the default keyboard setting ("us/41") without giving you the possibility to enter the verbose mode...

Anybody knows how to enter the verbose mode and choose the proper keyboard after the program has started and i'm logged in to the "Live cd" as "root" ??

Maybe this is a stupid question, but since i'm completely new to the world of Linux any help would be greatly appreciated!

Thank you very much!
Comment 11 Chris Gianelloni (RETIRED) gentoo-dev 2005-04-18 08:33:35 UTC
*** Bug 89402 has been marked as a duplicate of this bug. ***
Comment 12 Chris Gianelloni (RETIRED) gentoo-dev 2005-04-18 14:34:04 UTC
*** Bug 89580 has been marked as a duplicate of this bug. ***
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2005-05-24 03:55:59 UTC
*** Bug 93790 has been marked as a duplicate of this bug. ***
Comment 14 William M. Waite 2005-06-10 14:17:08 UTC
On my Dell Latitude X300 this bug is completely reproducible on CDs 2005-0 and
2004-3.  2004-2 works perfectly MOST of the time (when I tried it this afternoon
it worked twice and failed once -- but on the failure I hit F2 very early in the
sequence).
Comment 15 Phattanon Duangdara 2005-07-09 04:30:16 UTC
This should be at least tested on next 2005.1 Release. USB CD-ROM now shipped
with many small-sized Notebook and tablets PC.

I think some system may need some delay for USB device to initialize. May the
/linuxrc scripts should wait for a few seconds for these USB devices initialized
and probed correctly.
Comment 16 Chris Gianelloni (RETIRED) gentoo-dev 2005-07-09 08:33:37 UTC
Great... do you have a USB CDROM that you can ship us to test with?

Anyway, using both "doscsi" and "scandelay" should work.  There is a test ISO available at your local mirror 
in /experimental/x86 that you can use to test this.  Report back to here.

Since we don't have the hardware, we can't test it.  When we ask for testers, we never get a response, so if 
the hardware doesn't work on a given release, look around at your fellow USB CDROM users, especially 
ones subscribed to gentoo-dev, and blame them for not stepping up to take the few minutes to boot test 
the latest test CD sets.
Comment 17 Gordon Innes 2005-07-13 14:55:23 UTC
Just tried the minimal x86 install 2005.1_pre1 with a DVD-Writer attached to a
USB to IDE adaptor with 'doscsi' and 'scandelay' passed to the kernel. The bug
is still present and presents in excatly the same way.

The device doesn't appear in /dev.

When I run udevstart at the prompt the device appears and is mountable.

I notice that the DVD-Writer device is present as /dev/sr0 rather than /dev/sgX
or  /dev/sdX. Also, /dev/sr0 isn't in the list of devices checked for the
install media.

I'm more than happy to do any other testing that is required.
Comment 18 Chris Gianelloni (RETIRED) gentoo-dev 2005-07-13 15:14:40 UTC
Yo!  Genkernel monkeys!  Earn those bananas!

*grin*
Comment 19 Eric Edgar (RETIRED) gentoo-dev 2005-07-13 16:24:40 UTC
please upgrade to genkernel-3.2.1 or better as that does check for /dev/sr.

Let us know if this fixes the issue for you.
Comment 20 Gordon Innes 2005-07-14 01:57:10 UTC
Just to clarify, the problem occurs when booting pre-release (in the case of
2005.1_pre1) and release (in the case of 2005.0) live CDs downloaded from a
gentoo mirror on a system that isn't running gentoo.

Couple of points:

1.  When you say "upgrade to genkernel-3.2.1" do you mean upgrade and build a
new live CD? Is there a profile availible for the pre-release 2005.1?

2.  There may still be a problem if the device isn't present until udevstart is
run manually.
Comment 21 Mark 2005-07-14 03:59:26 UTC
Appologies for not offering to help earlier, but I have moved house and was
without DSL for a month :(

Anyway if you need testing do say as I am more than willing to try any pre
release versions of a minimal live CD.
Comment 22 Chris Gianelloni (RETIRED) gentoo-dev 2005-07-14 06:26:43 UTC
Eric: please assign to the release group and not to me directly...

The current _pre1 pre-release for x86 was *not* built with this version of
genkernel, so it will not have the proper fix.  We are working on a new
pre-release version as we speak.
Comment 23 Phattanon Duangdara 2005-07-16 23:40:25 UTC
It looks like udev is not running while probing for USB-CDROMs
After enter shell (after failed finding cdroot).

There are no /dev/scd0 or /dev/sr/0.
I try to run 'udevstart' manually but udev still not running.

Other things. There are no sr_mod in /lib/modules. I think it built-in in the
kernel. 

Most or SCSI Devices uncluding HDD and CDROM still need sg ... 
But 'sg' built as modules while sr_mod or sd_mod are built-in in the kernel ?.
Comment 24 Phattanon Duangdara 2005-07-16 23:44:16 UTC
I found that lxnay's Reiser4 livecd can boot from USB-CDROM. I am trying to
looks what it done at startup.
Comment 25 Chris Gianelloni (RETIRED) gentoo-dev 2005-07-17 08:09:57 UTC
You absolutely do not need SCSI generic for disk or CD access, only for "generic" devices such as cameras 
and scanners.

We'll let you know as soon as we have something to test.
Comment 26 Phattanon Duangdara 2005-07-17 21:24:43 UTC
It may not need. I don't know CD-Writes need it at boot time or not ?.
Comment 27 Gordon Innes 2005-07-18 02:40:34 UTC
I didn't need to modprobe anything else to get my DVD-Writer mountable, I only
needed to run udevstart to get the device node created. Unless the other modules
are loaded after the search for the install media and before the emergency shell
is presented I don't think more modules are needed.

G.
Comment 28 lieut_data 2005-08-15 07:41:10 UTC
Testing installation on the most recent release, 2005.1, using an external USB
DVD-ROM drive on a TabletPC.

The instructions located at (http://forums.gentoo.org/viewtopic-t-320660.html)
no longer work, as the live-cd is unable to find anything on /dev/ram0 or /dev/sr0.

A new forum thread has been created to deal with this issue
(http://forums.gentoo.org/viewtopic-t-369937.html).

Recap, after attempting to boot off /dev/ram0:

cat /proc/scsi/scsi
cat /proc/scsi/usb-storage/0 [your number here may vary]
cat /proc/sys/dev/cdrom/info [I found my drive name was "sr0"]
ls -l /dev/sr0 [shows that the device doesn't exist]
cat /proc/devices | grep sr [shows me the major node (?), mine is "11 sr"]
mknod /dev/sr0 b 11 0
exit 
boot() :: /dev/ram0
>> Mounting root...
mount: Mounting /dev/ram0 on /newroot failed: Invalid argument
!! Could not mount specified ROOT, try again
!! The root block device is unspecified or not detected. 

I can mount /dev/sr0 and succesfully list the (correct) contents of the .iso,
but am unable to boot from this mount:

boot() :: /newroot
>> Mounting root...
mkdir: Cannot create directory `/newroot/tmp/`: Read-only file system
mknod: //newroot/dev/console: No such file or directory
mknod: //newroot/dev/tty1: No such file or directory
>> Booting (initramfs)...umount: /sys Invalid argument
*: Failed to unmoun the initrd /sys!
..
chroot: cannot execute /bin/sh: No such file or directory
Kernel panic - not syncing: Attempted to kill init! 
Comment 29 Henry Zhou 2005-08-15 07:54:55 UTC
I meet the same problem with "Comment #28 From  lieut_data". I'm using ibm x31
with nec 3520a dvd writer + ide2usb device.

But with minimal livecd 2005.0, If I execute with "gentoo doscsi" and
"udevstart" I could mount using /de/ram0. Do it doesn't work with 2005.1

Any hints will be appreciate. Thank you.
Comment 30 Gordon Innes 2005-08-15 11:37:01 UTC
Managed to get the 2005.1 minimal cd to boot on a USB CDROM with the following
process:

1. Boot with "doscsi scandelay debug" (note the 'debug')
2. At the debug prompt (NOT the emergency shell prompt):
   # ls /dev/sr0
   ls: /dev/sr0: No such file or directory
   # cat /proc/sys/kernel/hotplug
   /sbin/hotplug
   # echo  /sbin/udev > /proc/sys/kernel/hotplug
   # cat /proc/sys/kernel/hotplug
   /sbin/udev
3. unplug the cdrom then plug it back in.
4. At prompt again:
   # ls /dev/sr0
   /dev/sr0
   # exit
5. Boot continues and finds livecd at /dev/sr0.

I've tried the same procedure with the the emergency shell, however it didn't work.

The important parts are the 'echo /sbin/udev > /proc/sys/kernel/hotplug' and the
replugging of the cdrom. The echo sets udev as the hotplug agent for the kernel
and the replug causes the kernel to send a new hotplug event to udev which in
turn sets up the missing device.

One way I think this can be fixed permenatly is to add the echo line to the
linuxrc right after /proc is mounted. I'm going to try and build my own version
of the livecd to test this.

Hope this helps!

G.
Comment 31 Gordon Innes 2005-08-16 13:51:59 UTC
Created attachment 66098 [details]
Stage 1 spec file used to build test CD.
Comment 32 Gordon Innes 2005-08-16 13:53:46 UTC
Created attachment 66099 [details]
Stage 2 spec file used to build test CD.
Comment 33 Gordon Innes 2005-08-16 13:58:11 UTC
Created attachment 66100 [details, diff]
Patch for the linuxrc file.
Comment 34 Gordon Innes 2005-08-16 14:07:19 UTC
I've managed to create a test CD (not quite the same as the offical 2005.1
release, couldn't find the spec files for it) with the attached patch applied to
the linuxrc file in the initramfs.

The CD boots in a USB drive with _no_ additional kernel options required. The
first scan for the device fails but the second (after a short delay) finds the
device on /dev/sr0 and continues to boot normally.

I've also managed to boot this off a 128mb USB memory stick (appeared as /dev/sdb).

All the patch does is set up /sbin/udev as the hotplug agent in the kernel just
after /proc is mounted. I think it should really use /sbin/udevsend as the
agent, but I wasn't sure that it is present in the initrd environment.

As far as I know this shouldn't impact on any of the other aspects of the live cd.

I hope this resolves the issue. I have tested this extensively and it may not be
the best way to do it, however it does appear to work.

Thanks,

G.
Comment 35 Gordon Innes 2005-08-16 14:10:10 UTC
> I have tested this extensively and it may not be
> the best way to do it, however it does appear to work.

This should read "I _haven't_ tested this extensively and it may not be the best
way to do it, however it does appear to work."

Freudian slip there.....

G.
Comment 36 Chris Gianelloni (RETIRED) gentoo-dev 2005-08-16 14:17:32 UTC
Genkernel: please reassign this back to me once you have this (or some other
similar) patch in place in genkernel, as I want to leave this open until new
media is available with this patch included
Comment 37 Chris Gianelloni (RETIRED) gentoo-dev 2005-08-17 14:09:43 UTC
Who's ready to test a CD?

http://dev.gentoo.org/~wolf31o2/test/install-x86-minimal-testing.iso

Once I hear that this is working properly, I'll roll it up into a new LiveCD
build, along with a new set of Minimal and Universal CD releases for the mirrors.
Comment 38 Meder Bakirov 2005-08-18 05:36:24 UTC
(In reply to comment #37)
> Who's ready to test a CD?
> 
> http://dev.gentoo.org/~wolf31o2/test/install-x86-minimal-testing.iso
> 
> Once I hear that this is working properly, I'll roll it up into a new LiveCD
> build, along with a new set of Minimal and Universal CD releases for the mirrors.

it hangs with the following error message:

/init: 211: Syntax error: "done" unexpected (expecting "fi")
Comment 39 Chris Gianelloni (RETIRED) gentoo-dev 2005-08-18 05:40:24 UTC
Yeah... I noticed that myself this morning... I'm rolling a new CD now with that
fixed...
Comment 40 Gordon Innes 2005-08-18 06:49:53 UTC
> All the patch does is set up /sbin/udev as the hotplug agent in the kernel just
> after /proc is mounted. I think it should really use /sbin/udevsend as the
> agent, but I wasn't sure that it is present in the initrd environment.

I've done a bit more digging and found that 'udevsend' is present in the initrd,
however, the documentation for it suggests that 'udevd' would need to be running
prior to adding it as the agent. I guess it would be possible to do this but I'm
inclined to think this is a bit OTT and that 'udev' be left as the agent.

G.
Comment 41 Mark 2005-08-18 07:23:48 UTC
(In reply to comment #39)
> Yeah... I noticed that myself this morning... I'm rolling a new CD now with that
> fixed...

I just pinched your testing2 .iso image, burned it and booted up.

Short of it being in debug mode and me having to type exit, it worked sweet as
anything on the Dell D410 apart from a few niggles with wireless.

Anyway it booted just fine on the USB CD, so seems good.
Comment 42 Gordon Innes 2005-08-18 09:04:18 UTC
The new CD works fine for me too. Ignore my last comment 'udevsend' is obviously
fine without udevd :-)

Did you have to change anything else other than put the echo line into runUdev?

G.
Comment 43 Chris Gianelloni (RETIRED) gentoo-dev 2005-08-18 09:19:48 UTC
Honestly, I didn't change it.  One of our genkernel developers did.  I just made
a test CD.

As far as I know, there was logic added to determine if udevsend was built or
not, and to copy the binary into the initrd if it was built, or symlink it if it
was not.  Then the echo is done to proc.

The debug issue is due to another patch I was testing at the same time, or at
least I'm pretty sure it is.  I'm investigating that a bit further.
Comment 44 Gordon Innes 2005-08-18 10:34:28 UTC
Cool, cheers for the info. It definately looks like the best way to do it.

G.
Comment 45 Meder Bakirov 2005-08-19 03:09:11 UTC
(In reply to comment #39)
> Yeah... I noticed that myself this morning... I'm rolling a new CD now with that
> fixed...

Am going to test it also this evening...
Comment 46 Gordon Innes 2005-08-19 03:47:23 UTC
One thing to note is that because the test CD is booting into debug mode, there
is enough of a delay for the USB device to be picked up the first time round the
scan loop. I imagine without the debug delay, the device will get picked up on
the second iteration. However, this should be checked when the final release CD
is built....

G.
Comment 47 Meder Bakirov 2005-08-19 09:05:03 UTC
(In reply to comment #45)
> (In reply to comment #39)
> > Yeah... I noticed that myself this morning... I'm rolling a new CD now with that
> > fixed...
> 
> Am going to test it also this evening...

OK, I can confirm that the new CD boots successfully :)

Waiting for a release with debugging-mode disabled.
Comment 48 Tomoyuki Sakurai (RETIRED) gentoo-dev 2005-08-19 18:51:10 UTC
confirmed it booted successfully.

the new LiveCD will have its own version, 2005.1.1 or something?
Comment 49 Chris Gianelloni (RETIRED) gentoo-dev 2005-08-20 08:29:14 UTC
The LiveCD, since it won't be based off 2005.1, will be dated.  I also am *not* changing the normal install 
media at this time.  I've built another -testing CD, but won't be able to upload it until later today.  This CD 
should have debug mode turned off.  Once we're sure it works, I'll actually be building a new Installer 
LiveCD.  Give me a few days, as things are kinda crazy for me at work right now.
Comment 50 Chris Gianelloni (RETIRED) gentoo-dev 2005-08-23 11:51:53 UTC
Try this ISO.  It no longer hits debug mode.

http://dev.gentoo.org/~wolf31o2/test/install-x86-minimal-testing3.iso
Comment 51 Saleem Abdulrasool (RETIRED) gentoo-dev 2005-08-23 13:01:23 UTC
The ISO you provided picks up the CDROM (firewire) for me after the initial try.
Comment 52 Jek Smith 2005-08-23 18:03:28 UTC
install-x86-minimal-testing3.iso works for me on an HP Proliant DL140-G2 with an
external USB CD drive where 2005.0 and 2005.1_pre1 live CDs did not.  Thanks!
Comment 53 Gordon Innes 2005-08-25 02:04:41 UTC
3rd ISO works for me too (both from pendrive and from CD-ROM). As suspected
first search fails, but the usb drive gets picked up on the second.

Thanks for the work you've put in fixing this.

G.
Comment 54 p cooper 2005-08-26 01:59:45 UTC
solved it for me  
Thanks very much  
 
http://forums.gentoo.org/viewtopic.php?p=2676329#2676329 
Comment 55 Chris Gianelloni (RETIRED) gentoo-dev 2005-09-08 09:03:04 UTC
The genkernel part of this is now in CVS and in a released version of genkernel
(3.3.6)...  Reassigning to release team until a new release is made with these
changes.
Comment 56 Chris Gianelloni (RETIRED) gentoo-dev 2005-11-21 06:53:07 UTC
This is fixed with the 2005.1-r1 release media.