LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 05-23-2004, 04:19 PM   #1
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
configure lilo to use two different /boot partitions


i have 2 linux installs, both on separate disks (hda and hdb)

i have a /boot partition on each disk as the first partition which contains the compressed kernel images for its respective linux install

how do i configure lilo to use a kernel from hda1 when booting root=/dev/hda5 and hdb1 when booting root=/dev/hdb5?
 
Old 05-23-2004, 06:00 PM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
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.
 
Old 05-23-2004, 07:37 PM   #3
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Original Poster
Rep: Reputation: 30
hmm, i honestly thought it was very much possible, since not all installs use isolated /boot partitions

it doesn't really make any difference, it was just more of a convenience if i had got it going using the two /boot's, but one will suit

i'll search some other time and post back here if i find anything else out
 
Old 05-23-2004, 07:47 PM   #4
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
actually, try something like this.

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.
 
Old 05-23-2004, 08:31 PM   #5
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
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
Code:
image=/mnt/boot2/<kernel>
root=/dev/hdb1
title="linux2"
read-only
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.

Good luck
 
  


Reply



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
Can't configure Lilo to boot multiple Linux partitions SlackwareInAZ Slackware 11 09-10-2005 01:04 PM
[SOLVED] lilo boot of two partitions frankzen Slackware 3 10-16-2004 11:30 PM
How do I configure LILO for 2 linux partitions? MasterOfTheWind Linux - Newbie 4 08-12-2004 01:58 PM
Configure LILO for multi-boot tips ToothlessRebel Linux - Newbie 7 06-11-2004 10:40 PM
Will LILO handle 15 partitions? dufferin Slackware 15 12-01-2003 12:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:21 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration