LinuxQuestions.org
Register a domain and help support LQ
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 08-21-2011, 07:43 AM   #1
upo
LQ Newbie
 
Registered: Aug 2011
Posts: 7

Rep: Reputation: Disabled
"No root device found.Boot has failed.sleeping forever." on rhel6 when compile kernel


It is on a server,with Xeon E5506,SATA,SSD,SAS,etc.
I never compiled the kernel on a server,and I don't know is there any special to pay attention to.
I downloaded kernel source code from kernel.org,then using the old config from boot directory,then compiled it as usual.reboot then it told me
Code:
No root device found.Boot has failed.sleeping forever.
I compiled 2.6.32,2.6.30,2.6.36,3.0.1,etc,and it is no change.
I delete the "quiet"option from menu.lst,and these appeared:
Code:
mount:unknown filesystem type 'ext4'
mount:unknown filesystem type 'ext4'
mount:unknown filesystem type 'ext4'

can't mount root filesystem
Boot has failed.sleeping forever.
qlaxxx 0000:04:00.0:cable is unplugged
I'm sure the config file has ext4=y

so anybody who can help me?Thanks very much.
 
Old 08-22-2011, 12:32 AM   #2
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,203
Blog Entries: 23

Rep: Reputation: 279Reputation: 279Reputation: 279
Smile Noooooooooooooooo!!!!!!!!!!!!!!

Quote:
then using the old config from boot

Noooooooooooooooooooooooooooooooooooooooooo
....the config HAS to be build by the package...

Steps to follow

- download the source
- unpack in a NON ROOT folder
- open (console) the folder
- enter make menuconfig
- enter make
- THEN go to ROOT mode
- enter make install

I guess the old config had sent the server to the "big backup in the sky"...

I'd like to keep this thread in view to see if I could help further...

Luck

Thor
 
Old 08-22-2011, 02:03 AM   #3
upo
LQ Newbie
 
Registered: Aug 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
without config file from boot,I don't know how to config the kernel

Quote:
Originally Posted by Thor_2.0 View Post

Noooooooooooooooooooooooooooooooooooooooooo
....the config HAS to be build by the package...

Steps to follow

- download the source
- unpack in a NON ROOT folder
- open (console) the folder
- enter make menuconfig
- enter make
- THEN go to ROOT mode
- enter make install

I guess the old config had sent the server to the "big backup in the sky"...

I'd like to keep this thread in view to see if I could help further...

Luck

Thor
without config file from boot,I don't know how to config the kernel
could you explain it what's the meaning of "big backup in the sky"?
Using the old kernel I found those messages from dmesg
Code:
EXT4-fs(sda2):mounted filesystem with ordered data mode
dracut:Mounted root filesystem /dev/sda2
but my kernel just told me:
Code:
No root device found.
Boot has failed,sleeping forever.
when I press ctrl+alt+delete,it print
Code:
md:stopping all md devices.
 
Old 08-22-2011, 05:00 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,497

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
You can use the old .config file to compile the new kernel.
Quote:
There are different ways to configure what you want compiled into the kernel; if you have an existing configuration from an older kernel, copy the old .config file to the top level of your source and use make oldconfig instead of menuconfig. This oldconfig process will carry over your previous settings, and prompt you if there are new features not covered by your earlier .config file. This is the best way to 'upgrade' your kernel, especially among relatively close version numbers. Another possibility is make xconfig for a graphical version of menuconfig, if you are running X.
Take a look at this guide
http://www.cyberciti.biz/tips/compil...kernel-26.html
Use'
Code:
make oldconfig
instead of
Code:
make menuconfig
@Thor_2.0
I unpack the source in
Code:
/usr/src
Didn't you forget the
Code:
make modules && make modules_install
Kind regards
 
Old 08-22-2011, 06:46 AM   #5
upo
LQ Newbie
 
Registered: Aug 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
actually no matter what I did
copy old config then make menuconfig
or
copy old config then make oldconfig,and type enter for any questions

then make&&make modules_install&&make install,then reboot.
it was still "No root device found.Boot has failed.sleeping forever."

thank you everyone
 
Old 08-22-2011, 07:12 AM   #6
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,329

Rep: Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099
The clue to your mystery is in the messages which precede the actual panic: none of the identified file systems could be processed.

A very likely culprit is that you have configured the system with the necessary filesystem support in a loadable kernel module, instead of specifying that it must be compiled into the resident kernel. A filesystem driver can't be loaded if a filesystem driver is necessary in order to load it ... "Catch-22."
 
Old 08-22-2011, 07:53 AM   #7
upo
LQ Newbie
 
Registered: Aug 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sundialsvcs View Post
The clue to your mystery is in the messages which precede the actual panic: none of the identified file systems could be processed.

A very likely culprit is that you have configured the system with the necessary filesystem support in a loadable kernel module, instead of specifying that it must be compiled into the resident kernel. A filesystem driver can't be loaded if a filesystem driver is necessary in order to load it ... "Catch-22."
what does "Catch-22"mean?
 
Old 08-22-2011, 08:09 AM   #8
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,203
Blog Entries: 23

Rep: Reputation: 279Reputation: 279Reputation: 279
@ repo

Quote:
make modules && make modules_install
Yes, I seem to have left that out, my bad...

Quote:
I unpack the source in...
Hmm, that's a good spot, but on my system, I'd need Root rights, and I made it a rule-of-thumb to use the Root account a less as possible...but, yes, it's a good spot.

@ OP

Catch-22, as Wikipedia sees it

Quote:
could you explain it what's the meaning of "big backup in the sky"?
my expression of "having died"...

Quote:
without config file from boot,I don't know how to config the kernel
I always did a make menuconfig, no matter what. Just to ensure crispness, but...my way is not carved in marble...

Thor
 
Old 08-22-2011, 08:45 AM   #9
upo
LQ Newbie
 
Registered: Aug 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
I still have no idea to solve this problems.I am wondering if it is the hardware made this.
 
Old 08-22-2011, 10:00 AM   #10
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,203
Blog Entries: 23

Rep: Reputation: 279Reputation: 279Reputation: 279
Okay, so, you've gotten the source, if you're at that point, the reast can be followed in this tutorial...
 
Old 08-22-2011, 02:46 PM   #11
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,329

Rep: Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099
Quote:
Originally Posted by upo View Post
what does "Catch-22"mean?
Pardon me. It's an American expression, explained here.

Quote:
Among other things, 'Catch-22' is a general critique of bureaucratic operation and reasoning. The phrase "Catch-22" means "a no-win situation" or "a double bind" of any type.
The phrase specifically refers to a book about pilots who were flying combat missions. "(Pilot) Orr was crazy and could be grounded. All he had to do was ask; and as soon as he did, he would no longer be crazy and would have to fly more missions. Orr would be crazy to fly more missions and sane if he didn't, but if he were sane, he had to fly them. If he flew them, he was crazy and didn't have to; but if he didn't want to, he was sane, and therefore had to fly the missions." This was 'Catch #22' in the official bureaucratic rule-book.

In my usage: "if the necessary file-system support code is in a kernel module, then the computer has to have access to the filesystem in order to load the module. But it can't do that, because, without the necessary file-system support code, it can't find and load the module."

It is common to include filesystem support in kernel modules. (For example, you don't need to be able to read a CD-ROM filesystem until, and unless, you actually stick a CD-ROM into the drive. The same goes for, say, USB memory sticks.) But, for whatever filesystem you have used for the kernel, support for that filesystem must be resident in the kernel. It's a common mistake. (I can say that ... ... with absolute authority.)

Last edited by sundialsvcs; 08-22-2011 at 02:50 PM.
 
Old 08-22-2011, 08:15 PM   #12
upo
LQ Newbie
 
Registered: Aug 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sundialsvcs View Post
But, for whatever filesystem you have used for the kernel, support for that filesystem must be resident in the kernel. It's a common mistake. (I can say that ... ... with absolute authority.)
Thank you for your kindness and explaination.
Actually,I used ext4 format for the root partition,ext3 for boot.so what is the support for that ext4?
And "be resident" means say yes or module to the config file?
 
Old 08-23-2011, 01:23 AM   #13
upo
LQ Newbie
 
Registered: Aug 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
No matter "make oldconfig" or "make defconfig",it is always sleeping forever.I still cannot firgure out what the problem is.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Kernel Cooking: No Root Device Found! Sleeping forever... Polaris395 Linux - General 2 05-03-2011 04:07 PM
[SOLVED] SuSE fails to boot from qLogic Fibre channel card - "No root device found" nonshatter Suse/Novell 4 11-01-2010 07:38 AM
Running kernel.org "mainline" Linux on Xen: FAILED to find root device bojanap Linux - Kernel 1 09-17-2010 11:42 PM
"Successful install" results in "Boot device not found" slackr007 Fedora 2 06-21-2005 04:05 PM
"Successful install" results in "Boot device not found" slackr007 Linux - Newbie 2 05-31-2005 08:02 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration