Re: [SuSE Linux] multiple linux distributions and lilo config
On Wed, 13 Jan 1999, Michael Johnson wrote:
All you have to do is go into yast and edit kernel and boot configuration to your new config. Select kernel and boot configuration. Then select lilo configuration. Then select F4 for new config. Select configuration name ( e.g RedHat ). Put the boot partition in. And select the path on that device to the linux kernel for the dist. SuSE will run lilo for you. You can do it by hand as well. I've booted different dists on many occasions as well as Solaris, BSD, Doze etc. using lilo. You, of course, do all this _after_ installing the dist.
Note: you don't need to use two lilos, so when you install RH, when it asks you at the end if you want to install Lilo say 'no', and after installation boot S.u.S.E. and then put it manually in /etc/lilo.conf or use YaST. All you have to know to do it is the dev ( /dev/hda1 etc.) , the name you want to give it ( e.g. Redhat ) and the path location of the kernel for the dist on that dist partition ( e.g. /boot/vmlinuz on /dev/hda1 etc.)
On your question about kernel compiles: Anytime you recompile your kernel on the other dist, you'll need to run lilo on whatever dist you are using to manage your partitions just like you do on the main dist or it won't boot properly. So if you use S.u.S.E. lilo and install say, a new kernel, on your RH paritition, then you need to reboot S.u.S.E. and then run lilo the same way you would if you built a new S.u.S.E. kernel. Lilo needs to be run after kernel compiles. This doesn't change cause you adding a dist.
This is not entirely correct. It is true that you have to run lilo after a kernel compile, but if you just make sure that the lilo.conf of both distributions are identical, it should not matter which of the distros does the updating of lilo. If you have your SuSE partition mounted in RH you could make RH's lilo.conf a symlink to SuSE's. This way the two would always be identical. (I haven't tested this, but it should work) Good luck with the dual distro, and please report back whether my suggestions work. Regards Ole
On Wed, 13 Jan 1999, Michael Perry wrote:
I have a need to install a second linux distribution (redhat 5.2) tomorrow for some stuff. I have suse installed to /dev/hda2 with lilo in the bootsector as /dev/hda. Redhat will go to /dev/hdb1 which is already formatted as a linux native partition. How should I go about installing this partition's kernel and get lilo to see this second linux distribution? I read the kernel and lilo howto's but do not see a mention of multiple linux distributions on one system. I did a test install of slackware tonite and moved the slackware /vmlinuz to /dev/hda2 as /vmlinuz.slak. This booted slackware fine with an entry in lilo.conf. What happens on the second distribution when I compile a new kernel? Do I make dep, make clean, make zImage as usual? How can I run lilo on the second distribution and get the zImage to vmlinuz and then get it seen by the lilo that is at /dev/hda? Do others mount the second hard disk with another distro in their /etc/fstab or what?
Thanks for any enlightenment.
-- Michael E. Perry mperry@basin.com ------------------
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Ole Kofoed Hansen wrote:
Good luck with the dual distro, and please report back whether my suggestions work.
Just for your information, I have Redhat on my /dev/hdb with Suse on /dev/hda. On my system, I did have to physically move the Redhat kernel to /dev/hda in order for lilo to find it. So if you do have trouble booting Redhat, remember to try this. What happened with me, with the Redhat kernel on /dev/hdb, my Suse kernel would boot with the Redhat root partition, with an error saying the Redhat image could not be found. - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
On Thu, 14 Jan 1999, zentara wrote:
So if you do have trouble booting Redhat, remember to try this. What happened with me, with the Redhat kernel on /dev/hdb, my Suse kernel would boot with the Redhat root partition, with an error saying the Redhat image could not be found.
I dual booted RH and S.u.S.E. for a while. ( Just got rid of RH (again)). RedHat doesn't keep it's kernel in the / dir I don't think, it keeps in in a subdirectory so when I used lilo I added the path to the config and it found it. I never had to move the kernel over. - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Michael Johnson wrote:
On Thu, 14 Jan 1999, zentara wrote:
So if you do have trouble booting Redhat, remember to try this. What happened with me, with the Redhat kernel on /dev/hdb, my Suse kernel would boot with the Redhat root partition, with an error saying the Redhat image could not be found.
I dual booted RH and S.u.S.E. for a while. ( Just got rid of RH (again)).
RedHat doesn't keep it's kernel in the / dir I don't think, it keeps in in a subdirectory so when I used lilo I added the path to the config and it found it. I never had to move the kernel over.
Redhat keeps it in /boot. And I think they like to do it that way so on large harddrives, you can mount /boot as /dev/hda1, as an option, and be certain that lilo will work. Redhat mentions in it's manual that there are so many variables, in lilo, disk geometry, etc; that they can't give any lilo tech advise unless your /boot partition is under the 1024 cylinder limit. That is what I've seen myself. What works for one setup, may not work on another machine. So, just experiment until you get a working setup on your system. My setup is strange. I have a greater than 5 gig /dev/hda and a 3 gig /dev/hdb. I can install suse on /dev/hdb and run lilo in the mbr, and it works. If I try to put suse on /dev/hda, I need to use the "/boot in /dev/hda1" trick, to get it to boot, and Redhat's image must be on /dev/hda. There are only a few variables involved, so guessing a good setup for lilo, is easier than trying to learn the exact details of why some geometries work, while others don't. It's a zen approach. :-) - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
On Thu, 14 Jan 1999, Ole Kofoed Hansen wrote:
On Wed, 13 Jan 1999, Michael Johnson wrote: This is not entirely correct. It is true that you have to run lilo after a kernel compile, but if you just make sure that the lilo.conf of both distributions are identical, it should not matter which of the distros does the updating of lilo. Good point. I hadn't thought of it that way. If they are identical you're right it would make no difference. I still don't see the _point_ though in _having_ two, as I said in my mail.
If you have your SuSE partition mounted in RH you could make RH's lilo.conf a symlink to SuSE's. This way the two would always be identical. (I haven't tested this, but it should work) Another feasable idea. Thanks for the tips.
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
participants (3)
-
hekate@intergate.bc.ca
-
k01164@ko.hhs.dk
-
zentara@netfrog.net