LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-28-2010, 04:44 AM   #1
vedaprasad
LQ Newbie
 
Registered: Jan 2010
Posts: 20

Rep: Reputation: 0
kernel panic


Hi all
I created a new initrd image with mkintrd command.i commented the existing initrd image entry in /boot/grub/grub.conf file and added the new initrd image.and now the system does not boot it says "File not found" .when i login to grub command prompt and boot with the Kernel and initrd image ( the one commented in grub.congf file ) as i cannot find the new one .
I followed the following steps in grub command prompt



1) Find /grub/stage1

o/p - (hd0,6)

2) root(hd0,6)

o/p - filesystem type ext3......


3) kernel /vmlinuz-2.618.164.el15 ro root=LABEL=/

4) initrd /init <TAB key >

I get all the files including the old initrd image ( cannot find the new one just created ) so i use the old one and say boot


5) boot

The system throws an error

Kernel panic - not syncing : attempted to kill init !

Please help

Thanks in advance

Last edited by vedaprasad; 05-28-2010 at 05:00 AM.
 
Old 05-28-2010, 05:17 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Quote:
Originally Posted by vedaprasad View Post
4) initrd /init <TAB key >

I get all the files including the old initrd image ( cannot find the new one just created ) so i use the old one and say boot
Well, there's your problem. Did you try booting without any initrd? Or perhaps boot with your old kernel and old initrd and try to find out where the new initrd is hiding.

Evo2.
 
Old 05-28-2010, 08:23 AM   #3
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
A bit late for this, but you're generally better off leaving the old stuff in grub and adding a new entry for testing.

That being said, you may want to bootdisk it, and restore your old grub.

You're also better off (drumroll...) using the search function

http://www.linuxquestions.org/questi...l-init-353920/
 
  


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 12:58 PM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM
Kernel panic puts me in a panic theeeg Linux - Software 2 07-31-2004 04:46 PM
kernel panic (narius panic) narius Linux - Newbie 3 06-20-2002 03:56 PM
Kernel panic making me panic! Linux_N0oby Linux - Software 19 05-29-2002 12:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration