configure lilo to use two different /boot partitions
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I don't think you can do that. Instead, have the two installations share the /boot partition. You can have different kernels for the two installations. Of course, the root= entry in /etc/lilo.conf have to point to /dev/hda5 and /dev/hdb5 respectively.
If the one boot partiton is /dev/hda1 and the other /dev/hda2, mount the two partitons under /boot1 and /boot2, and then use entries like:
image=/boot1/vmlinuz-1
label=linux1
root=/dev/hda6
etc.
and then run lilo.
Notice that the entries point to the files in /boot1 and /boot2. I think this works - I know it works if I don't have separate boot partitions but have different /root partitions with /boot as subdirectories.
I've done this a few times. The easiest way to do it is to create a mount point in one OS: perhaps /mnt/boot2. Have your second OS's boot partition aded to your /etc/fstab. Something like
Code:
/dev/hdb1 /mnt/boot2 <filesystem> defaults 0 0
Reboot so to be sure it gets mounted at boot time. Now edit your /etc/lilo.conf to reflect the second OS. Something like
Of course you will want to put in your own values, but this is the method I have used to mount 4 linuxes and windows over 2 drives, all selectable from 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.