Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel Panic - Tried to kill init
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
B1ack_Fire
n00b
n00b


Joined: 04 Sep 2003
Posts: 2

PostPosted: Thu Sep 04, 2003 11:58 am    Post subject: Kernel Panic - Tried to kill init Reply with quote

I tried to install v1.4 starting from stage1 following exactly the x86 install guide on the gentoo web site (missing out on the GRP stuff) no compile errors in build process, compiled a kernel using genkernel with no changes to the standard gentoo-2.4.20-r6 kernel.

On booting the new install the system boots, loads the kernel then the error message: "Kernel panic: Attempted to kill init". This appears right after the USB system is started ie:

uhci.c: USB UHCI at I/O 0xd800, IRQ 11
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
uhci.c: USB UHCI at I/O 0xd800, IRQ 9
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
---- Detected UHCI hardware
---- Scanning for hid...usb.c: registered new driver hid
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.com>
hid-core.c: USB HID support drivers
---- Detected hid hardware
---- Scanning for usb-storage...Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
---- Detected usb-storage hardware
Kernel panic: Attempted to kill init!

Please help me

Steven
Back to top
View user's profile Send private message
Major Grubert
n00b
n00b


Joined: 29 Aug 2003
Posts: 2
Location: BR

PostPosted: Thu Sep 04, 2003 6:02 pm    Post subject: Re: Kernel Panic - Tried to kill init Reply with quote

B1ack_Fire wrote:
On booting the new install the system boots, loads the kernel then the error message: "Kernel panic: Attempted to kill init". This appears right after the USB system is started ie:

Steven, I had the same problem on two different machines and it looks like there is an error in the install guide. I assume you are using lilo as your boot loader, because I believe this problem is specific to the instructions about it.

If you use a kernel compiled by genkernel, it will create an initrd, an image of a ram disk with some modules that should be loaded before the kernel mounts your real root partition. The instructions tell you to have the following lines in your /etc/lilo.conf file:

root=/dev/hda3
initrd=/boot/initrd-KV
append="root=/dev/ram0 init=/linuxrc"


In the append= line there should not be a root=/dev/ram0 parameter. When you use an initrd, the kernel should mount the ramdisk automatically, then run /linurc and after that mount your real root partition (/dev/hdaX). I believe the above line is causing the trouble because the kernel is trying to mount the ramdisk (again) as the real root.

Edit /etc/lilo.conf, removing the root=/dev/ram0 part of the append= line and keeping the root= line pointing to your root partition. The rerun /sbin/lilo to update the boot loader and try booting again. By the way, if you are not familiar with Linux remember you can boot from CD1, mount your partitions, chroot to your root partition and edit lilo.conf as you did during install.

Regards,
_________________
Major Grubert
Back to top
View user's profile Send private message
NeuralRelay
n00b
n00b


Joined: 04 Sep 2003
Posts: 6

PostPosted: Thu Sep 04, 2003 8:26 pm    Post subject: Or..... Reply with quote

I had this same error today after installing Gentoo last night.

You can also do a "linux root=/dev/hdX" with X being your root partition from the LILO prompt.

Eg:

Code:

LILO: linux root=/dev/hdb3


That will allow it to boot so you can log in and change LILO without having to mess with booting off the CD.
Back to top
View user's profile Send private message
B1ack_Fire
n00b
n00b


Joined: 04 Sep 2003
Posts: 2

PostPosted: Thu Sep 04, 2003 10:38 pm    Post subject: Reply with quote

Thanx for all the help everyone!

Finally got Gentoo running :D
now just to install gnome, X, amongst others 8O

Once again thanx

Steven.
Back to top
View user's profile Send private message
SaFrOuT
Apprentice
Apprentice


Joined: 08 Jul 2003
Posts: 256
Location: Egypt

PostPosted: Mon Oct 06, 2003 12:23 am    Post subject: Reply with quote

why don't this problme be in the faq or in the install.html page on the live cd as a warning since i have noticed that lots of people is facing it like me :(

i have stayed for 2 weeks installing and reinstalling gentoo 1.4 using dif kernels and in dif ways trying to solve this problem


P.S. thanx for this wonderful forum
Back to top
View user's profile Send private message
jstead1
Guru
Guru


Joined: 01 Aug 2003
Posts: 427
Location: Oswego, NY where the snow is deep

PostPosted: Mon Oct 06, 2003 1:58 am    Post subject: Reply with quote

Looks like the docs have been updated.

The lines now reads:

# If you used genkernel, use something like this:
image=/boot/kernel-KV
label=gk_linux
root=/dev/hda3
initrd=/boot/initrd-KV
append="root=/dev/hda3 init=/linuxrc"

Why would you need 'root=/dev/hda3' in append if it is already specified?
I guess it doesn't hurt, but it seems redundant.
_________________
jim
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum