Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Kernel lies about not finding a valid root device
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
mauricev
Apprentice
Apprentice


Joined: 22 Mar 2004
Posts: 205

PostPosted: Mon Mar 23, 2009 12:05 am    Post subject: [SOLVED] Kernel lies about not finding a valid root device Reply with quote

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
View user's profile Send private message
mamac
l33t
l33t


Joined: 29 Feb 2004
Posts: 890

PostPosted: Mon Mar 23, 2009 2:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
mamac
l33t
l33t


Joined: 29 Feb 2004
Posts: 890

PostPosted: Mon Mar 23, 2009 2:17 pm    Post subject: Reply with quote

Ha ! Isn't it rootdelay argument?
_________________
Powered by Gentoo Linux since 2003
Back to top
View user's profile Send private message
Kobboi
l33t
l33t


Joined: 29 Jul 2005
Posts: 673
Location: Belgium

PostPosted: Mon Mar 23, 2009 2:26 pm    Post subject: Re: Kernel lies about being not finding a valid root device Reply with quote

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
View user's profile Send private message
mauricev
Apprentice
Apprentice


Joined: 22 Mar 2004
Posts: 205

PostPosted: Mon Mar 23, 2009 6:59 pm    Post subject: rootdelay is deprecated; scandelay is the correct parameter Reply with quote

Quote:
Also note that it's not the kernel talking, but the init script in the initrd.


This was helpful. :idea: 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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum