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 08-30-2004, 12:33 AM   #1
LinuxRam
Member
 
Registered: Jul 2004
Distribution: Red Hat 9, Mandrake 9.2
Posts: 211

Rep: Reputation: 30
kernel panic


I upgraded kernel,

and then booted the system with new kernel and got following message

kernel panic-no init fount try passing init to kernel

=====================
for ref, grub.conf file

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,6)
# kernel /boot/vmlinuz-version ro root=/dev/hda7
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,6)/boot/grub/splash.xpm.gz
title Red Hat Linux 9 (2.4.20-8)
root (hd0,6)
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /boot/initrd-2.4.20-8.img

title RH Linux 9 2.6.7
root(hd0,6)
kernel /boot/bzImage ro root=/dev/hda6
initrd /boot/initrd-2.6.7.img

title Windows
rootnoverify (hd0,0)
chainloader +1
 
Old 08-30-2004, 01:05 AM   #2
sausagejohnson
Member
 
Registered: Mar 2004
Location: Canberra, Australia
Distribution: Fedora Core 9
Posts: 242

Rep: Reputation: 30
Hi akshatyadav,

Have a look in your /boot directory. You'll notice a file ending with extension .img. This is an initrd file which is a ram disk loader thingy. Your first kernel would have loaded this but when you made your own, a new initrd file is not made for you automatically.

You can make one by going to your /boot directory using the mkinitrd command:

cd /boot
mkinitrd initrd-2.6.7.img 2.6.7

This means to create an initrd file called initrd-2.6.7.img in the boot directory using kernel verion 2.6.7.

I notice in your grub.config file you have the line "initrd /boot/initrd-2.6.7.img". Therefore you do not need to change your grub file again because this was the file the system was looking for and hence gave you the error.

Your alternative is to simply not create a initrd file, and then just comment out the line in the grub.conf file. The side effect of this is that all ext3 partitions will be mounted as ext2.
 
Old 08-30-2004, 09:44 PM   #3
LinuxRam
Member
 
Registered: Jul 2004
Distribution: Red Hat 9, Mandrake 9.2
Posts: 211

Original Poster
Rep: Reputation: 30
I have already created initrd image.
 
Old 08-30-2004, 10:27 PM   #4
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
Quote:
title RH Linux 9 2.6.7
root(hd0,6)
kernel /boot/bzImage ro root=/dev/hda6
initrd /boot/initrd-2.6.7.img
try using root (hd0,5) instead of root (hd0,6). Grub numbers the partition from zero. In your case, it doesnt match so it might be the reason.
so /dev/hda6 is actually root (hd0,5).

Tux,

Edit:
you will have to update /etc/fstab to reflect the correct root fs entries. Your earlier entry says
Quote:
root=LABEL=/
while the latest entry says
Quote:
root=/dev/hda6
. I think both these entries should be identical. But I may be wrong

Last edited by tuxrules; 08-30-2004 at 10:32 PM.
 
  


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 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
Kernel panic puts me in a panic theeeg Linux - Software 2 07-31-2004 05:46 PM
kernel panic (narius panic) narius Linux - Newbie 3 06-20-2002 04:56 PM
Kernel panic making me panic! Linux_N0oby Linux - Software 19 05-29-2002 01:31 AM


All times are GMT -5. The time now is 10:35 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