LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-23-2009, 09:26 AM   #1
ufmale
Member
 
Registered: Feb 2007
Posts: 385

Rep: Reputation: 30
kernel panic after recomplie kernel 2.6.28


I install Redhat enterprise 5 and recompiled kernel 2.6.28.

After update the install the kernel and reboot, i got following mesg,

Redhat nash version 5.1.19.6 starting
mount: could not find filesystem /dev/root
setuproot: moving /dev failed: no such file or directory
setuproot: moving /proc failed: no such file or directory
setuproot: moving /sys failed: no such file or directory
switchroot: mount failed: No such file or directory
Kernel panic - not syncing : Attempted to kill init!



Booting with the kernel come with the Redhat el5 work fine (2.6.18-8.el5).

Need some suggestion please.
 
Old 03-23-2009, 09:39 AM   #2
vkmgeek
Member
 
Registered: Feb 2006
Location: Ahmedabad
Distribution: rhel5
Posts: 185
Blog Entries: 2

Rep: Reputation: 31
- either your initrd file is not proper
- Or you have given wrong entried in grub.conf file.
 
Old 03-23-2009, 09:54 AM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 7,531

Rep: Reputation: 2394Reputation: 2394Reputation: 2394Reputation: 2394Reputation: 2394Reputation: 2394Reputation: 2394Reputation: 2394Reputation: 2394Reputation: 2394Reputation: 2394
The message, attempted to kill 'init', actually just means ... 'init' just died. (The 'init' process is not allowed to die.)

So... why did it die? Well, the earlier messages that you have listed show quite clearly that the system could not find and mount the root file-system. (The rest of the messages are just it rolling off the end of the runway and crashing into the trees beyond.)

Diagnosing the problem will be a bit of detective work, but here are a few suggestions:
  • Did you, in fact, recompile and install everything correctly? Try again.
  • Is there really supposed to be a device called /dev/root? I doubt that this specification is actually correct...
  • Did you correctly specify where the physical device is supposed to be? (I doubt it.)
  • If you did specify the correct device, does the kernel contain the necessary filesystem-support to know how to read it?
I can't substitute for some detective-work here... no one can fix this problem but you. However, "it's just a machine," and the root cause of the problem is that "the machine has either been given a faulty set of directions (most likely), or it can't carry out the directions it has been given." Systematically look over all of the information you have given to the machine with regards to where the disk-devices (most especially, Linux itself) are supposed to be located, and in what files and directories things are to be found.
 
Old 03-23-2009, 12:17 PM   #4
ufmale
Member
 
Registered: Feb 2007
Posts: 385

Original Poster
Rep: Reputation: 30
Your answer start to enlight me. I follow your question one by one.

Quote:
# Is there really supposed to be a device called /dev/root? I doubt that this specification is actually correct...
I didn't find it. I am not sure why it tries to mount that device.

Quote:
# Did you correctly specify where the physical device is supposed to be? (I doubt it.)
where can I do that? I didn't specify any device anywhere other than recompile the kernel and install it.

Quote:
# If you did specify the correct device, does the kernel contain the necessary filesystem-support to know how to read it?
It looks like there are a lot of filesystem that I don't know. I check the menuconfig, but didn't find where to select the support for proc, sysfs, etc.

# mount
/dev/sda8 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda7 on /home type ext3 (rw)
/dev/sda3 on /tmp type ext3 (rw)
/dev/sda2 on /usr/local type ext3 (rw)
/dev/sda6 on /var type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
 
  


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
upgrading Fedora Core 3 kernel 2.6.9-1.667 to 2.6.26.3 manually+kernel panic error LinuxLovinNoob Linux - Newbie 7 12-17-2008 09:45 PM
compiling kernel problem --- Kernel panic: unable to mount root fs ........ anthonymts123 Linux - General 5 07-31-2006 03:29 AM
Kernel 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 01:58 PM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 04:28 AM
How to upgade or recomplie the new kernel 2.6.8.1 in Debian linuxxunil Debian 5 08-25-2004 01:04 PM


All times are GMT -5. The time now is 01:50 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration