LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   lilo dual boot two linux distros / hda and hdb (https://www.linuxquestions.org/questions/linux-newbie-8/lilo-dual-boot-two-linux-distros-hda-and-hdb-42433/)

rioguia 01-22-2003 09:42 PM

lilo dual boot two linux distros / hda and hdb
 
i've looked and i can't find an example of a lilo.conf file for booting two different linux distros on two separate drives. under my current lilo.conf, I hit tab during reboot and get only smoothwall on the list of options. Typing redhat only gets and error message and a reminder to hit tab for the list of options.
My relevant hardware is as follows:
hda = smoothwall router with Lilo on MBR
bdb = redhat 7.2 with *GRUB on root partition

the original SmoothWall lilo.conf follows with my edits in bold:
Quote:

boot=/dev/harddisk1
map=/boot/map
prompt
timeout=100
linear
default=SmoothWall
read-only
root=/dev/harddisk4
bitmap=/boot/image.bmp
bmp-colors=13,,12;14,,12
bmp-table=100p,348p,1,3
bmp-timer=74,29,;,,
image=/boot/vmlinux-2.4.19
label=SmoothWall
other=/dev/hdb1
label=redhat

i appologize if this question has been asked and answered. i looked but the only relevant threads suggested the above edits and they haven't worked. see e.g.
http://www.linuxquestions.org/questi...t=lilo+hda+hdb

*corrected

watashiwaotaku7 01-22-2003 09:50 PM

you need to tell lilo what kernel to boot i dont knwo what redhat would normally use but you might make the entire entry to look something like this



image=/boot/bzImage-2.4.20
label=redhat
root=/dev/hdb1
initrd=/boot/initrd.img
append="quiet devfs=mount hdc=ide-scsi"
vga=788
read-only


i dont know if redhat uses initrd or not you can look in its /boot for both the kernel image and the initrd if its not there then omit the line

rioguia 01-23-2003 12:35 AM

Thanks. I did not get a chance to try your solution. running /sbin/lilo on SmoothWall allowed Grub on the bdb root partition to launch redhat.

After your posting, I found two errors in my posting and don't know if it would change your advice.
1. The first error is that Grub / not Lilo is on the hdb root partition.
2. The second error (suggested by another user) is that I forgot to run /sbin/lilo after changing the SmoothWall's lilo.conf file.

Thanks again for you help.


All times are GMT -5. The time now is 12:39 PM.