Unix Technical Forum

Using Lilo to boot more than one Linux distro.

This is a discussion on Using Lilo to boot more than one Linux distro. within the Linux Operating System forums, part of the Unix Operating Systems category; --> I have two linux distros on my machine, but cannot figure out how to configure lilo to boot them. ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 07:06 AM
Jon Haugsand
 
Posts: n/a
Default Using Lilo to boot more than one Linux distro.

I have two linux distros on my machine, but cannot figure out how to
configure lilo to boot them. Searching on the web, I don't find many
answers just a few hints.

Here is my lilo.conf on the (for the time being) only bootable os:

prompt
timeout=50
default=rawhide
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear

image=/boot/vmlinuz-2.4.20-2.21
label=rawhide
initrd=/boot/initrd-2.4.20-2.21.img
read-only
append="hdc=ide-scsi root=LABEL=/ resume=force"


image=/debian/vmlinuz
label=debian
root=/dev/hda1
read-only
append="hdc=ide-scsi root=LABEL=/ resume=force"
initrd=/debian/initrd.img

/debian is a symbolic link to /mnt/debinstall which is mounted at my
debian root partition, i.e. /dev/hda1.

Some suggestions have been to install a single lilo boot loader on
each root partition's boot sector such that each individual
installation does not need to know about any other installation. Then
one should (somehow) install "master boot" something on the boot
sector of /dev/hda.

Not daring to destroy anything more on my machine, I haven't even
tried to figure this out. But is the following on track?

For each installation:

mount root partition : mount /dev/hdax /mnt
chroot to this partition : chroot /mnt
configure lilo with no prompt or anything: editor /etc/lilo.conf
run lilo: lilo
exit this root and umount: exit, umount /mnt

Then make a single master boot sector like the following:

boot=/dev/hda
other=/dev/hda1
label=linux1
other=/dev/hda2
label=linux2
...

Or is this approach far off? Maybe the single master boot sector
configuration needs more stuff in it?

Thanks for any input.

--
Jon Haugsand
Dept. of Informatics, Univ. of Oslo, Norway, mailto:jonhaug@ifi.uio.no
http://www.ifi.uio.no/~jonhaug/, Phone: +47 22 95 21 52

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 07:06 AM
Bit Twister
 
Posts: n/a
Default Re: Using Lilo to boot more than one Linux distro.

On 29 Jun 2003 17:13:57 +0200, Jon Haugsand wrote:
> I have two linux distros on my machine, but cannot figure out how to
> configure lilo to boot them. Searching on the web, I don't find many
> answers just a few hints.


Ok,
http://groups.google.com/advanced_group_search
initrd=/md91n/boot/initrd.img in the first box
*linux* in the Newsgroup, pick English


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 07:06 AM
mjt
 
Posts: n/a
Default Re: Using Lilo to boot more than one Linux distro.

Jon Haugsand wrote:

> I have two linux distros on my machine, but cannot figure out how to
> configure lilo to boot them. Searching on the web, I don't find many
> answers just a few hints.


> Here is my lilo.conf on the (for the time being) only bootable os:


.... and here is a link to the subject matter you require:
"Running Multiple OS's" ...
http://www.linuxselfhelp.com/cats/running_multiple.html


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
Michael J. Tobler: motorcyclist, surfer, # Black holes result
skydiver, and author: "Inside Linux", # when God divides the
"C++ HowTo", "C++ Unleashed" # universe by zero

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 07:07 AM
ne...
 
Posts: n/a
Default Re: Using Lilo to boot more than one Linux distro.

On Sun, 29 Jun 2003 at 15:13 GMT, Jon Haugsand eloquently wrote:
> I have two linux distros on my machine, but cannot figure out how to
> configure lilo to boot them. Searching on the web, I don't find many
> answers just a few hints.

========= One of my /etc/lilo.conf ==============
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
vga=5
prompt
timeout=30
message=/boot/message
linear
default=RH9
# append="video=matrox:vesa:447"

image=/mnt/rh9boot/vmlinuz-2.4.20-9SGI_XFS_1.2.0
label=RH9
initrd=/mnt/rh9boot/initrd-2.4.20-9SGI_XFS_1.2.0.img
append="video=matrox:vesa:443 hdc=ide-scsi"
read-only
root=/dev/hdb3

image=/boot/vmlinuz-2.4.16-xfs
label=RH72
append="video=matrox:vesa:443 hdc=ide-scsi"
read-only
root=/dev/hda12

========= end One of my /etc/lilo.conf ==========

========= The /etc/fstab for the above system =======
/dev/hda12 / xfs defaults 1 1
/dev/hda1 /boot xfs defaults 1 2
/dev/hda13 /tmp xfs defaults 1 2
/dev/hda6 /usr xfs defaults 1 2
/dev/hdb1 /mnt/rh9boot xfs defaults 1 2
/dev/hdb3 /mnt/rh9root xfs defaults 1 2
/dev/hdb6 /mnt/rh9home xfs defaults 1 2
========= end /etc/fstab for the above system =======
HTH

--
Registered Linux User # 125653 (http://counter.li.org) | Please remove
Certified: 55% bastard, 31% of which is tard. | '.invalid'
http://www.thespark.com/bastardtest | to reply.
Switch to: http://www.speakeasy.net/refer/190653
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:38 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com