LinuxQuestions.org
Review your favorite Linux distribution.
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 07-31-2011, 07:09 AM   #1
Snailatrice
LQ Newbie
 
Registered: May 2011
Posts: 7

Rep: Reputation: Disabled
[SOLVED]trouble configuring lilo for a triple boot.


Hi, I've been using lilo to dual boot linux/windows and I'm trying to add another linux distribution/partition. So far my lilo config looks like this :
other = /dev/sda
label = Windows
table = /dev/sda1
image = /boot/vmlinuz
root = /dev/sda4
label = Linux
read-only

I have installed another linux partition in /dev/sda2 which suggested to install grub with the following configuration :
root (hd0,1)
kernel /boot/vmlinuz26 root=/dev/sda2 ro
initrd /boot/kernel26.img

Since I wanted to be sure that at I would be able to boot in at least one of my linux I didn't intall grub.
I'd like to know how I should change my lilo config to be able to boot in my second linux partition.

I've tried to add an entry
image = /boot/vmlinuz26
root = /dev/sda2
label = Linux2
read-only
but it told me that it couldn't find vmlinuz26. So I copied it from /dev/sda2 to my first partition /dev/sda4/boot/ and tried again.
When I run /sbin/lilo (which is is my /dev/sda4) I get a
Fatal : Setup length exceeds 31 maximum; kernel setup will overwrite boot loader.
Could anyone explain to me what I am doing wrong ? Please keep in mind that I have very little understanding of partitions/boot loaders etc.

Last edited by Snailatrice; 07-31-2011 at 09:39 AM.
 
Old 07-31-2011, 07:32 AM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hi,

I'm using lilo for multiboot, several Linux-distributions and Win 7.

My solution is the following: on the new installation (linux2) install lilo to the mbr of the partition
Code:
...
boot=/dev/sda2 this will install lilo into the mbr of sda2!
...
image=/boot/yourkernelhere
root=/dev/sda2
label=linux2
and add an entry for this in the lilo.conf of your first linux
Code:
other = /dev/sda
label = Windows
table = /dev/sda1
other=/dev/sda2
label=linux2
image = /boot/vmlinuz
root = /dev/sda4
label = Linux
read-only
and don't forget to run lilo on both distributions. I'm using this setup because it allows for 32bit and 64 bit systems on the same machine.

Markus
 
Old 07-31-2011, 08:59 AM   #3
Snailatrice
LQ Newbie
 
Registered: May 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thank you for your reply,
I am not sure how to install lilo to the mbr of the second partition. I can only access this partition through the first one.
 
Old 07-31-2011, 09:05 AM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
well, you can chroot into the other Linux-system, google for chroot, here in short what you have to do.
Mount the / partition (/dev/sda2) of your new linux anywhere
Code:
mount /dev/sda2 /mnt
then
Code:
mount -t proc none /mnt/proc
mount -o bind /dev /mnt/dev
chroot /mnt /bin/bash
then you are inside your new Linux. here you edit lilo.conf and execute lilo. Ignore the warnings of lilo.

Markus
 
Old 07-31-2011, 09:31 AM   #5
Snailatrice
LQ Newbie
 
Registered: May 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
I did everything, now when I boot it seems to work, I go through the 2 different lilo screens and select linux2 but after a few seconds of writing, the kernel goes
List of all partitions :
No filesystem could mount root, tried :
Kernel panic - not syncing VFS : Unable to mount root fs on unknown-black (8,2).
It might be that my installation of Linux2 fails though, any ideas ?

EDIT : nevermind, I added some initrd line in the second configuration file and it works, thank you very much !

Last edited by Snailatrice; 07-31-2011 at 09:38 AM.
 
Old 07-31-2011, 03:21 PM   #6
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello,

I'm happy to read that you've got it working. You can configure lilo in your second Linux (linux2) not to prompt before booting, just uncommend the line "prompt" in lilo.conf and run lilo again. Afterwards you can select your boot-OS at the first lilo-prompt and the second one (if you selected linux2) will start without any delay.

Markus
 
  


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
Lilo triple boot mngmd Linux - General 5 11-20-2005 07:55 PM
Can LILO allow me to triple boot? captaincaveman Linux - Distributions 1 05-03-2004 07:22 PM
Triple Boot with Lilo MaleWithBrains Linux - Software 6 02-10-2004 08:39 AM
need help with lilo and triple boot! rmanocha Linux - Software 1 11-02-2003 02:51 AM
Triple Boot w/Lilo zuele Linux - Software 1 10-09-2003 07:02 PM

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

All times are GMT -5. The time now is 05:52 AM.

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