PDA

View Full Version : Kernel panic: no init found



fingers99
10-20-2003, 01:12 AM
I'm stuck using my old SuSE 8.1 for Internet access for now (I'll pester folk
about that -- I'm sure I've made a configuration error in Knoppix -- later). But
for the meantime it'd help if I had an /etc/lilo.conf which worked properly.

From SuSE, the above gives me a Lilo which works for SuSE but throws up Kernel Panic: no init found if I select Knoppix. From Knoppix, it gives me the reverse. Ideas, etc, welcome as ever.

***********************************
/etc/lilo.conf

boot = /dev/hda
change-rules
reset
read-only
menu-scheme = Wg:kw:Wg:Wg
lba32
prompt
timeout = 80
message = /boot/message

image = /boot/vmlinuz-2.4.20-xfs
label=Debian
root = /dev/hda3
vga = 791
initrd = /boot/initrd.gz
append = "hdb=ide-scsi"

image = /boot/vmlinuz
label = SuSE
root = /dev/hdc3
vga = 791
initrd = /boot/initrd
append = "hdb=ide-scsi"

image = /boot/vmlinuz.suse
label = failsafe
root = /dev/hdc3
vga = 791
initrd = /boot/initrd.suse
append = "ide=nodma apm=off acpi=off hdb=ide-scsi"
optional

image = /boot/memtest.bin
label = memtest86

oscar
10-20-2003, 06:30 AM
change this

mage = /boot/vmlinuz
label = SuSE
root = /dev/hdc3
vga = 791
initrd = /boot/initrd
append = "hdb=ide-scsi"

to this

mage =/mnt/hdc3 /boot/vmlinuz
label = SuSE
root = /dev/hdc3
vga = 791
initrd = /mnt/hdc3/boot/initrd
append = "hdb=ide-scsi"

if you run lilo from Debian, your Suse vmlinuz etc are in
partition /mnt/hdc3/boot no in Debian /boot
If you run from Suse Debian partition is in /mnt/hda3/boot etc etc
I dont know Suse and /mnt/hda3 may be /mnt/hda3 or /mnt/anything

fingers99
10-21-2003, 08:01 PM
Thanks, but that won't do it.

/sbin/lilo barfs at /mnt/hdc3 (thinking about it, this is what I'd expect, as it isn't mounted when lilo starts and therefore can't exist).

Partition tables are as follows:

(SuSE) hdc

hdc1 /boot Primary ext2 24.69.mb
hdc2 Primary swap 435.94mb
hdc3 / Primary ext3 9771.64mb

Knoppix/Debian hda

hda1 / Primary ext3 17999.89mb
hda2 Primary swap 500.10mb
hda3 /home Primary ext3 22482.18mb


That's to say, the SuSE disk has a seperate /boot partition and the Knoppix disk has a seperate /home (but no seperate mount).

This is really hurting my brain..........

Stephen
10-21-2003, 10:11 PM
Why do you not just chainload LILO by using:


other=/dev/hdc
label=SUSE

In your lilo.conf on the hda knoppix install then assuming that you have your SUSE lilo in the MBR of the hdc you will get another LILO screen from the SUSE lilo.conf and you will be able to boot. If you have installed the SUSE lilo to the / partition then use hdc3.

fingers99
10-22-2003, 12:54 AM
Thanks Stephen -- I'll try that.

fingers99
10-23-2003, 12:01 AM
Yep, that did it!

Many thanks.

I'll post my next problem later tonight!