View previous topic :: View next topic |
Author |
Message |
mauricev Apprentice

Joined: 22 Mar 2004 Posts: 205
|
Posted: Mon Mar 23, 2009 12:05 am Post subject: [SOLVED] Kernel lies about not finding a valid root device |
|
|
I'm trying to boot from a USB flash drive and it works so long as I manually enter the device designation.
That is, on its own, the kernel complains
Code: |
Activating mdev
Determining root device...
!! Could not find the root block device LABEL=root.
|
Now where it says
Code: |
Please specify another value or: press Enter of the same, type "shell" for a shell, or "q" to skip...
root block device(LABEL=root) ::
|
I just type LABEL=root and it works!
So it's as if the kernel had been lying and it did find it.
Here's the kernel line:
Code: |
title=Gentoo Linux 2.6.29-rc8-tip
root (hd0,0)
kernel /xen.gz
module /kernel-genkernel-x86_64-2.6.29-rc8-tip root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=LABEL=root doscsi rootdelay=30
module /initramfs-genkernel-x86_64-2.6.29-rc8-tip
|
I had been trying this with real device designations (i.e., /dev/sdb2) and switched to the labels to see if that would help, which obviously it didn't. I also thought it could be an issue with the USB device not being ready, but rootdelay=30 didn't make a difference.
The kernel is a dom0-privileged kernel running under Xen.
Last edited by mauricev on Mon Mar 23, 2009 7:00 pm; edited 1 time in total |
|
Back to top |
|
 |
mamac l33t


Joined: 29 Feb 2004 Posts: 890
|
Posted: Mon Mar 23, 2009 2:16 pm Post subject: |
|
|
Ha...isn't it this "delay" argument you should pass to load the kernel? I had such an issue but unfortunately I can't remember the argument sorry. _________________ Powered by Gentoo Linux since 2003 |
|
Back to top |
|
 |
mamac l33t


Joined: 29 Feb 2004 Posts: 890
|
Posted: Mon Mar 23, 2009 2:17 pm Post subject: |
|
|
Ha ! Isn't it rootdelay argument? _________________ Powered by Gentoo Linux since 2003 |
|
Back to top |
|
 |
Kobboi l33t


Joined: 29 Jul 2005 Posts: 673 Location: Belgium
|
Posted: Mon Mar 23, 2009 2:26 pm Post subject: Re: Kernel lies about being not finding a valid root device |
|
|
mauricev wrote: |
That is, on its own, the kernel complains
Code: |
Activating mdev
Determining root device...
!! Could not find the root block device LABEL=root.
|
|
Also note that it's not the kernel talking, but the init script in the initrd. |
|
Back to top |
|
 |
mauricev Apprentice

Joined: 22 Mar 2004 Posts: 205
|
Posted: Mon Mar 23, 2009 6:59 pm Post subject: rootdelay is deprecated; scandelay is the correct parameter |
|
|
Quote: | Also note that it's not the kernel talking, but the init script in the initrd. |
This was helpful. The actual init script is /usr/share/genkernel/defaults/linuxrc. Once I looked inside it, I see the problem.
Quote: | Isn't it rootdelay argument? |
Not anymore! Apparently, at some point, someone changed it to scandelay.
Now, with scandelay it's booting fine. |
|
Back to top |
|
 |
|