Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
however this time i'm booting it in a real machine from a usb pen.
what happens is that the kernel can't identify the ext3 partition on the usb drive , in fact it says something like this...
Quote:
Failed to mount the device "blabla" as the root parition
please append a value to the "root=" boot flag here is a list of available partitions:
..
..
..
..
now the good news is that it found all the partitions on my local HDD and i can also see from the boot gibberish above that , that the usb pen has been identified as a mass storage device...etc
the bad news is that , the usb drive is NOT listed among the valid partitions that i'm supposed to append to the root boot flag.
btw i've used the default configuration that comes with the kernel.
The easiest way to solve this problem is probably going to be to create an initrd with a root delay and usb support.
well there is no distribution !
this just grub + kernel + some basic libs from glibc ...
anyways , you mentioned usb support well to my knowledge that is already compiled into the kernel as i said the boot messages indicate that the usb pen is being identified as a mass storage device , nonetheless the usb partition can't be detected by the kernel...
Try adding rootdelay=25 to your kernel line in grub.
alright that works !
so now the usb drive is identified as sdc and the partition as sdc1.
btw is there any way i could force the kernel to wait until all devices have initialed instead of just randomly waiting for 25 secs?
i've also noticed that when running this experiments in bochs i get a message saying "waiting 25 secs before mounting root"
while if boot for real i don't see this message at all it just waits.
i wonder why that is so...hmm
another question , how is the root delay measured ? from the moment of boot?
okay , is there anyway to force the kernel to wait until all devices haven been initialized before attempting to mount root without having to specify a fixed duration ?
btw i think rootdelay count from boot time because the amount of delay is much shorter than actual 25 seconds ....besides the timestamp that shows up on the right side of every boot message indicates 25 when the kernel proceeds after the delay .. but i could be wrong..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.