Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Yes - in your scenario - you'll need Red Hat's Boot partition mounted - (when multibooting I've got so used to just using a series of Root partitions and one Swap partition - thats why I was looking at the Root partition earlier - in hindsight in this scenario were youve got a Boot, Root and Swap partition for Red Hat - Red Hat has put its kernel image etc in the separate Boot partition /dev/hda1 - not in the boot directory of its Root partition - so yes - its the boot partition that needs to be mounted)
Can you post your lilo.conf file again - we're nearly there.
Just one last thing - did the Kernel Panic refer to a Root filesystem not being found/mounted ? - if so - and if youve got this line
root=/dev/hda2
in your Red Hat LILO entry - then take it out -
Skyline,
Okay, now we're getting there. First, the exit error I was receiving was "Kernel panic: No init found. Try passing init= option to kernel." However, I tried removing the root=/dev/hda2 entry as per your recommendations and I had no kernel panic upon reboot. However, it immediately booted to Red Hat albeit without any apparent errors. This should be a small matter to fix, but I'm going to go ahead and post my lilo.conf to see if there aren't any other mistakes.
It is as follows:
# Support LBA for large hard disks
lba32
#General Section
boot=/dev/hda
timeout=200
default=RedHat9
vga=normal
map=/boot/map
install=/boot/boot-menu.b
# Red Hat Linux 9.0
image=/mnt/rhboot/vmlinuz-2.4.20-8
label=RedHat9
read-only
append="hdc=ide-scsi hdd=ide-scsi root=LABEL=/"
initrd=/mnt/rhboot/initrd-2.4.20-8.img
# Debian GNU/Linux 3.0r1
image=/boot/vmlinuz-2.4.18-bf2.4
label=DebianWoody
root=/dev/hdb2
read-only
Cool - just to clarify - when you re-boot - are you getitng an option to boot into Red Hat and Debian?
Your default OS is Red Hat- this is specified in your Lilo.conf file in the line
default=
If you want to change this to Debian, there's a few steps :
First - as root user - temporarily mount Red Hats Boot partition
(this enables the map installer /sbin/lilo to have access to the location of the Red Hat kernel when it creates the map.)
Then - edit the default= line in lilo,conf - change it form RedHat9 to DebianWoody
No, the usual LILO menu does not appear at start up. It goes straight to the Red Hat 9 boot up. I've used LILO many times with many distros. This is my first attempt without Linux and some flavor of Windows, however.
At the moment, are you able to boot into both RH and Debian (with boot disks or off the hard disk)?
====
If you can boot into both of the distros, run this command on each of them:
mount
send back the results, clearly indicating which distro each result is from.
============
Lastly, you mentioned that you get "Kernel Panic". Is that what prints on the screen, or does something else display on your screen, which you are interpreting as "Kernel Panic".
Do you get a LILO prompt or menu screen (mine is red)?
===
Which distro are you booting up currently? I think it's RH, but I want to confirm.
===
I'm not sure if this will help, but it'll give me/us an idea of where your root/boot partitions are AND from which distro/partition you are running LILO.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.