| View previous topic :: View next topic |
| Author |
Message |
B1ack_Fire n00b


Joined: 04 Sep 2003 Posts: 2
|
Posted: Thu Sep 04, 2003 11:58 am Post subject: Kernel Panic - Tried to kill init |
|
|
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 |
|
 |
Major Grubert n00b


Joined: 29 Aug 2003 Posts: 2 Location: BR
|
Posted: Thu Sep 04, 2003 6:02 pm Post subject: Re: Kernel Panic - Tried to kill init |
|
|
| 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 |
|
 |
NeuralRelay n00b

Joined: 04 Sep 2003 Posts: 6
|
Posted: Thu Sep 04, 2003 8:26 pm Post subject: Or..... |
|
|
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 |
|
 |
B1ack_Fire n00b


Joined: 04 Sep 2003 Posts: 2
|
Posted: Thu Sep 04, 2003 10:38 pm Post subject: |
|
|
Thanx for all the help everyone!
Finally got Gentoo running
now just to install gnome, X, amongst others
Once again thanx
Steven. |
|
| Back to top |
|
 |
SaFrOuT Apprentice


Joined: 08 Jul 2003 Posts: 256 Location: Egypt
|
Posted: Mon Oct 06, 2003 12:23 am Post subject: |
|
|
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 |
|
 |
jstead1 Guru


Joined: 01 Aug 2003 Posts: 427 Location: Oswego, NY where the snow is deep
|
Posted: Mon Oct 06, 2003 1:58 am Post subject: |
|
|
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 |
|
 |
|