LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-22-2003, 09:42 PM   #1
rioguia
Member
 
Registered: Jun 2002
Posts: 411

Rep: Reputation: 30
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

Last edited by rioguia; 01-23-2003 at 09:15 AM.
 
Old 01-22-2003, 09:50 PM   #2
watashiwaotaku7
Member
 
Registered: Oct 2002
Location: wisconsin -- The Badger state
Distribution: gentoo
Posts: 654

Rep: Reputation: 30
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

Last edited by watashiwaotaku7; 01-22-2003 at 09:51 PM.
 
Old 01-23-2003, 12:35 AM   #3
rioguia
Member
 
Registered: Jun 2002
Posts: 411

Original Poster
Rep: Reputation: 30
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.

Last edited by rioguia; 01-23-2003 at 01:04 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
removed hda, boot from hdb dlublink Linux - Hardware 6 03-03-2005 12:19 AM
dual boot two linux distros on one hd with lilo darkleaf Linux - Software 11 02-24-2005 10:52 AM
dual boot - hda & hdb - both Linux tw001_tw Slackware 8 09-07-2004 07:36 PM
hda or hdb - lilo config Assassin Linux - Newbie 4 12-01-2003 08:31 PM
Dual Booting w/ 2 hd's (win2k[ntfs] on hda, rh on hdb) albean Linux - Newbie 5 09-26-2002 03:43 PM


All times are GMT -5. The time now is 06:15 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration