LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (http://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   "No root device found.Boot has failed.sleeping forever." on rhel6 when compile kernel (http://www.linuxquestions.org/questions/linux-kernel-70/no-root-device-found-boot-has-failed-sleeping-forever-on-rhel6-when-compile-kernel-898605/)

upo 08-21-2011 07:43 AM

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

Thor_2.0 08-22-2011 12:32 AM

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

upo 08-22-2011 02:03 AM

without config file from boot,I don't know how to config the kernel
 
Quote:

Originally Posted by Thor_2.0 (Post 4449787)

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.

repo 08-22-2011 05:00 AM

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

upo 08-22-2011 06:46 AM

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

sundialsvcs 08-22-2011 07:12 AM

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

upo 08-22-2011 07:53 AM

Quote:

Originally Posted by sundialsvcs (Post 4450023)
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?

Thor_2.0 08-22-2011 08:09 AM

@ repo

Quote:

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

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

Thor

upo 08-22-2011 08:45 AM

I still have no idea to solve this problems.I am wondering if it is the hardware made this.

Thor_2.0 08-22-2011 10:00 AM

Okay, so, you've gotten the source, if you're at that point, the reast can be followed in this tutorial...

sundialsvcs 08-22-2011 02:46 PM

Quote:

Originally Posted by upo (Post 4450064)
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 ... :hattip: ... with absolute authority.)

upo 08-22-2011 08:15 PM

Quote:

Originally Posted by sundialsvcs (Post 4450459)
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 ... :hattip: ... 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?

upo 08-23-2011 01:23 AM

No matter "make oldconfig" or "make defconfig",it is always sleeping forever.I still cannot firgure out what the problem is.


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