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.
ok that question might be stupid bet HEY! I'm a n00b
I wonder how LILO works coz I'd like to install Red Hat and SuSE on 2 different partitions, but when I modify lilo.conf from SuSE and load lilo it says it can't find the image for Red Hat, which is normal since the partition isn't mounted, and even if I do mount it I mound it in /mnt/redhat so even then the image is in /mnt/redhat/boot and not in /boot.
So I'm just wondering, even if I only have SuSE for example, in lilo.conf it says the image is in /boot, so at boot time it has to mount the the root partition before it finds it right? It doesn't copy the image files into the MBR does it...?
LILO needs to have access to the image when you install it. The easiest solution in your case is to mount RedHat partition (/mnt/redhat/boot) and modify the RedHat entry in SuSE lilo.conf to something like this:
image=/mnt/redhat/boot/imagename.img
Then you can install lilo (it will be able to access both images) and you can unmount RH partition. Both distros should boot fine.
i tried that and lilo installs fine, but Red Hat doesn't wanna boot, but I think it'd because of something else... dunno what tho... :'( it does start booting Red Hat but it gives an error (Kernal Panic bla bla bla...)
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
it doesn't copy the images anywhere. lilo installs
itself where you tell it to, and (probably) has pointers
to the disk locations of the kernel images.
the boot entry is where lilo is to be installed,
the root entry is for where that kernel image is
supposed to mount it's root filesystem.
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
just comment out the part of lilo.conf that's messing
things up.
the way things are going this morning, somebody
is probably writing a messed up lilo.conf to a dvd-r, putting
it in a cdrom, and wanting software to read the dvd in
a cdrom drive so they can force install the lilo.conf that
doesn't work.
Originally posted by DaDdY SnEb so that means it does copy the images somewhere?
No, it doesn't. In fact, LILO installs itselt in MBR. There's no much space - only less than 512 bytes, so it just can't copy a kernel. It needs pointers to kernels, that's why it must have access to them when you install it. LILO works before the kernel is loaded, it's really low-level work.
Quote:
i tried that and lilo installs fine, but Red Hat doesn't wanna boot, but I think it'd because of something else... dunno what tho... :'( it does start booting Red Hat but it gives an error (Kernal Panic bla bla bla...)
Make sure the RedHat entry is OK. You may copy the one from RedHat lilo.conf (and change pathes). I guess it needs initrd, make sure it's configured.
So how does it get to the image since nothing is mounted yet???
ok, let's start from the beginning...
Since I've never seen anything else than SuSE I wanted to try Red Hat, so I installed it and also installed LILO but LILO didn't work, don't ask me why. All that appeared on screen at boot time was 99 99 99 99 99 99 99 99 99 99 99 etc... about 7 - 8 lines of them.
So I thought, why not have SuSE and Red Hat at the same time... Reinstalled Red Hat but without LILO, then installed SuSE and modified lilo.conf from there.
I can actually have any of the 2 running, but SuSE boots with LILO from the MBR and Red Hat boots from a floppy disk. You should also know that I've got a RAID 0 with a HighPoint controller, but I've got the drivers for both versions and they do work, the only weird thing is that Red Hat recognises my hard drive as /dev/sda and SuSE as /dev/ataraid/d0p.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.