LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-18-2007, 02:16 AM   #1
sharad
Member
 
Registered: Dec 2005
Posts: 48

Rep: Reputation: 15
kernel panic - not syncing: Attempted to kill init!


I compiled the kernel 2.6.9 on enterprise linux 4. I wished to eneble SMP support on it. So I enebled it and compiled the kernel.

I did following things:

1. copied bzImage from /usr/src/linux-2.6.9/arch/i386/boot to /boot

and modified the /etc/grub.conf file as

title Red Hat Enterprise Linux AS
root (hd0,0)
kernel /bzImage ro root=/dev/VolGroup00/LogVol00
rhgb quiet
initrd /initrd-2.6.9-5.ELsmp.img

When i reboot the kernel it is giving following error:

Kernel panic - not syncing: Attempted to kill init !

I would appreciate if anybody could help me to come out of this problem.

Thanks & Regards,
Sharad.
 
Old 02-18-2007, 04:09 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
I compiled the kernel 2.6.9 on enterprise linux 4
Two things immediately strike me about this:

1. That is an old kernel.
Why don't you try compiling a much more recent kernel?

2. "enterprise linux 4" is not a distribution.
Could it be that you mean "Red Hat Enterprise Linux 4". There is an smp kernel for this distribution - why don't you use that?

Basically, the kernel panic means you left something out. Go back and do it again, slowly. Did you remember to create the initrd?
 
Old 02-18-2007, 04:18 AM   #3
anupamsr
Member
 
Registered: Sep 2004
Location: India
Distribution: Kubuntu, Archlinux, Suse, Gentoo, Mandrake
Posts: 371

Rep: Reputation: 30
Kernel panic occurs when you left something that was not supposed to be left, or chose options that don't work. All you have to do is... ahem... compile correctly

PS: This may take time but once you do it successfully, you will remember it
 
Old 02-18-2007, 08:10 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,164
Blog Entries: 4

Rep: Reputation: 3701Reputation: 3701Reputation: 3701Reputation: 3701Reputation: 3701Reputation: 3701Reputation: 3701Reputation: 3701Reputation: 3701Reputation: 3701Reputation: 3701
The immediate message that you quoted simply means:
Quote:
Originally Posted by Your computer:
OMG! init died! It's not allowed to die! I can't run without it..."
What you are looking for, actually, is the reason why it died, which will be found in messages before this one.

(Incidentally, init, or "process #1," is the program that starts and restarts everything in the system, cleans up after the corpses, and so-on. It is started when the system first boots up and it never dies. (As you saw, if it does die, the system immediately halts.)

Fall-back to the previous kernel and try the installation again.
 
Old 02-18-2007, 11:02 AM   #5
deardron
Member
 
Registered: Dec 2003
Location: Russia/Iceland
Distribution: Ubuntu 6, NetBSD 3.1, Cygwin
Posts: 39

Rep: Reputation: 15
Quote:
Originally Posted by sharad
I compiled the kernel 2.6.9 on enterprise linux 4. I wished to eneble SMP support on it. So I enebled it and compiled the kernel.

I did following things:

1. copied bzImage from /usr/src/linux-2.6.9/arch/i386/boot to /boot

and modified the /etc/grub.conf file as

title Red Hat Enterprise Linux AS
root (hd0,0)
kernel /bzImage ro root=/dev/VolGroup00/LogVol00
rhgb quiet
initrd /initrd-2.6.9-5.ELsmp.img
I guess it can be that you didnīt make initrd file with the mkinitrd command.
 
Old 02-18-2007, 11:44 AM   #6
hal_2001
LQ Newbie
 
Registered: Oct 2003
Location: UK
Distribution: Mandriva, Red Hat, Fedora Core, MontaVista
Posts: 23

Rep: Reputation: 16
The kernel startup init kernel thread ( process PID 1 ) cannot locate the init program on your root filesystem. The init kernel thread execs the init program to continue the startup procedure. The init program runs as PID 1 and replaces the init kernel thread.

You need to check that your rootfs contains the init program. eg. /sbin/init

It may be that the mounting of your root filesystem failed and therefore the kernel was unable to access the init program.
 
Old 02-18-2007, 10:14 PM   #7
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
How did you make the initial ramdisk? I needs to match the kernel. But you say "copied bzImage from /usr/src/linux-2.6.9/arch/i386/boot to /boot"
so the kernel would be would be /boot/bzImage in your case, but you specify /bzImage in the grub.conf.

If Enterprise means Redhat Enterprise, you might be better off installing their ready-made SMP kernel from RPMs because RH makes it somewhat hard to get compiling the kernel right unless you know exactly what you are doing.

Hope it helps,
mlp
 
Old 02-19-2007, 01:44 AM   #8
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by mlp68
How did you make the initial ramdisk? I needs to match the kernel. But you say "copied bzImage from /usr/src/linux-2.6.9/arch/i386/boot to /boot"
so the kernel would be would be /boot/bzImage in your case, but you specify /bzImage in the grub.conf.
RHEL installer creates a boot partition by default. All the entries in grub.conf are relative to the /boot. So the reference should be OK. (Mind you, it's been a while since I used anything redhat.)
Quote:
If Enterprise means Redhat Enterprise, you might be better off installing their ready-made SMP kernel from RPMs because RH makes it somewhat hard to get compiling the kernel right unless you know exactly what you are doing.
You can say that again!

If this was a recompile of the installed distro-kernel, then it is possible to keep all the original settings and only enable [m] for smb. Somehow I suspect this is not what happened.

Now, I suspect, no headway will be gained until OP replies... er... hello sharad?

Last edited by Simon Bridge; 02-19-2007 at 01:46 AM.
 
  


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 panic - not syncing: Attempted to kill init! potsilui Linux - Kernel 28 05-09-2012 11:46 AM
kernel panic - not syncing: Attempted to kill init! k5knt Linux - General 39 07-18-2007 12:47 AM
Kernel panic - not syncing: Attempted to kill init! Wocky Linux - Kernel 6 01-26-2007 09:25 PM
Kernel panic-not syncing:Attempted to kill init skie_knite007 Linux - General 3 10-02-2006 10:46 PM
kernel panic - no syncing: Attempted to kill init majara Linux - General 3 02-06-2006 01:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:14 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
Open Source Consulting | Domain Registration