LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-23-2011, 10:36 AM   #1
entz
Member
 
Registered: Mar 2007
Location: Milky Way , Planet Earth!
Distribution: Opensuse
Posts: 453
Blog Entries: 3

Rep: Reputation: 40
usb root fs failure


hi ,

well i'm using this setup as described in this previous thread
http://www.linuxquestions.org/questi...-stack-893333/

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.

so what to do ?

cheers
 
Old 07-23-2011, 10:57 AM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
What distribution are you using?

The easiest way to solve this problem is probably going to be to create an initrd with a root delay and usb support.
 
Old 07-23-2011, 05:39 PM   #3
entz
Member
 
Registered: Mar 2007
Location: Milky Way , Planet Earth!
Distribution: Opensuse
Posts: 453

Original Poster
Blog Entries: 3

Rep: Reputation: 40
Quote:
Originally Posted by andrewthomas View Post
What distribution are you using?

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...

cheers
 
Old 07-23-2011, 09:02 PM   #4
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Try adding rootdelay=25 to your kernel line in grub.
 
1 members found this post helpful.
Old 07-24-2011, 11:15 AM   #5
entz
Member
 
Registered: Mar 2007
Location: Milky Way , Planet Earth!
Distribution: Opensuse
Posts: 453

Original Poster
Blog Entries: 3

Rep: Reputation: 40
Quote:
Originally Posted by andrewthomas View Post
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?

cheers

Last edited by entz; 07-24-2011 at 11:18 AM.
 
Old 07-24-2011, 11:54 AM   #6
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by entz View Post

another question , how is the root delay measured ? from the moment of boot?

cheers
I think it starts not at the moment of boot, but at the moment that the root filesystem would be mounted if there were no root delay.
 
Old 07-24-2011, 12:46 PM   #7
entz
Member
 
Registered: Mar 2007
Location: Milky Way , Planet Earth!
Distribution: Opensuse
Posts: 453

Original Poster
Blog Entries: 3

Rep: Reputation: 40
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..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
su root authentication failure exodist Linux - Software 9 08-06-2011 02:31 PM
SSH root nopassword failure snoopy1 Linux - Software 3 03-26-2009 11:09 AM
Slackware 10.1 Root Login Failure squiggerz Slackware 6 02-21-2005 01:41 PM
power failure = no root tobysaville Linux - General 1 06-22-2004 06:39 AM
root disk failure OSI-laya Slackware 0 06-05-2003 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration