Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-05-2006, 06:38 AM   #16
Senior Member
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54

Originally Posted by MasterC
AFAIK, Lilo doesn't use device options in the image loading section. So, unless there is something really fancy going on, I'd like to know how you do that. I'm reading your response to mean that you have kernels in different /boot directories on different partitions and lilo somehow sees them. If this is what you mean, could you post up your lilo.conf(s), disk structure (hda1, hda2, hdb1...), filesystem layout on those structures (where's windows, /dev/hda1 has Debian, hdb2 has Gentoo...) and lilo version, I'd be happy to learn more about this.


Hey man, it's really, really simple, but it eluded me and I thought I was braindead when it finally hit me. There I was, with two working Slack machines triple booting with WinXP, no problemo. Then I tried to add an Arch machine, not happening. I kept looking and looking and everything appeared fine.

The (obvious) secret is to mount all the paths to the kernels before executing lilo! Doh! Lilo just needs to be able to find this stuff when you're updating the config.

For example, let's say you have something like this:

/dev/hda1 NTFS WinXp
/dev/hda2 SWAP Linux swap
/dev/hda3 Reiserfs /usr/local
/dev/hda4 extended
/dev/hda5 Reiserfs / Linux machine A
/dev/hda6 Ext3fs / Linux machine B
/dev/hda7 Reiserfs / Linux machine C
/dev/hdax ... / Linux machine X

And each of these root directories has kernels somewhere underneath. It could be /boot but it really doesn't matter. The issue is, like you said, that we multiple /boot partitions each with its own set of kernels and we want to be able to boot from this setup with lilo. I'm leaving out some of the global section because it's not important for this discussion, but note: it's worth trying the compact option; on my system it helps a lot. Ok, here goes:

boot = /dev/hda
other = /dev/hda1
 label = WinXP
 table = /dev/hda
image = /boot/vmlinuz
 root = /dev/hda5
 label = Linux-A
image = /mnt/hda6/boot/vmlinuz
 root = /dev/hda6
 label = Linux-B
image = /mnt/hda7/boot/vmlinuz
 root = /dev/hda7
 label = Linux-C
image = /mnt/hdax/boot/vmlinuz
 root = /dev/hdax
 label = Linux-X
And each of these vmlinuz kernels has the same name in this example, but they can be the name of any kernel lilo can find in the path you specify.

That's all there is to it; the key is having all the partitions mounted so that lilo can find the kernels!


Last edited by Randux; 03-05-2006 at 06:39 AM.


lilo, liloconf, multiboot

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
DISCUSSION: How To Triboot A Computer XavierP LinuxAnswers Discussion 14 10-02-2009 02:36 PM
LXer: Release Announcement: Gentoo Linux 2006.0 LXer Syndicated Linux News 0 02-26-2006 07:01 PM
Triboot Questions cheetahman Linux - Newbie 1 11-17-2005 08:03 PM
Triboot Setup Help cheetahman Linux - Newbie 11 09-13-2005 03:01 PM
Triboot system problems Torizo Linux - Newbie 1 03-15-2004 05:13 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:58 PM.

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