LinuxQuestions.org
Help answer threads with 0 replies.
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 11-30-2006, 04:58 AM   #1
sekelsenmat
Member
 
Registered: Apr 2005
Location: São Paulo - Brazil
Distribution: Mageia Linux 1
Posts: 353

Rep: Reputation: 30
Installing Lilo for 2 distributions


Hello,

I am having trouble installing Lilo for 2 different distributions.

Basically my system is as follows:

/dev/sda is my MBR
/dev/sda1 is for Windows
/dev/sda5 is for Debian root
/dev/sda6 is for Mandriva root
/dev/sda7 is swap for both linuxes
/dev/sda8 is home for both linuxes

When I try to install grub I get this error message:

[root@Lapa felipe]# lilo
Added Mandriva_Linux *
Added Mandriva-nonfb
Added windows
Added failsafe
Fatal: open /boot/vmlinuz-2.6.17-2-686: No such file or directory

Of course it can't find the image ... it's on another partition. How can I make this work?

Here is my lilo.conf file:

# File generated by DrakX/drakboot
# WARNING: do not forget to run lilo after modifying this file

Code:
default="Mandriva_Linux"
boot=/dev/sda
install=menu
prompt
nowarn
timeout=100
message=/boot/message
image=/boot/vmlinuz
	label="Mandriva_Linux"
	root=/dev/sda6
	initrd=/boot/initrd.img
	append="resume=/dev/sda7"
	vga=788
image=/boot/vmlinuz
	label="Mandriva-nonfb"
	root=/dev/sda6
	initrd=/boot/initrd.img
	append="resume=/dev/sda7"
other=/dev/sda1
	label="windows"
image=/boot/vmlinuz
	label="failsafe"
	root=/dev/sda6
	initrd=/boot/initrd.img
	append="failsafe splash=silent resume=/dev/sda7"
image=/boot/vmlinuz-2.6.17-2-686
	label="Debian_Sarge"
	root=/dev/sda5
	initrd=/boot/initrd.img-2.6.17-2-686
 
Old 11-30-2006, 06:35 AM   #2
budword
Member
 
Registered: Apr 2003
Location: Wisconsin
Distribution: Switched to regualr Ubuntu, because I don't like KDE4, at all. Looks like vista on crack.....
Posts: 675

Rep: Reputation: 31
I'm no expert at this, so be careful, but when I was mixing Mandriva (lilo default bootloader) and debian (grub default), grub constantly screwed stuff up, and I had no problems with lilo. Everyone says grub is much better, but I never had anything but problems with it, and any problems I had with lilo I could correct myself without any trouble. So I installed lilo to the MBR, and chain loaded grub, which was installed on /dev/sda5, then just modified lilo.conf to look like this, in your case. There are probably more elegant ways to do it, or a more correct way, but this worked for me, and was trouble free, even when I constantly reinstalled different flavors of linux on different partitions. I just put grub or whatever the default bootloader was on it's own root partition, then updated lilo via my mandriva install, so I could always at least access my main(at the time) distro.

Try this lilo.conf out.....

default="Mandriva_Linux"
boot=/dev/sda
install=menu
prompt
nowarn
timeout=100
message=/boot/message
image=/boot/vmlinuz
label="Mandriva_Linux"
root=/dev/sda6
initrd=/boot/initrd.img
append="resume=/dev/sda7"
vga=788
image=/boot/vmlinuz
label="Mandriva-nonfb"
root=/dev/sda6
initrd=/boot/initrd.img
append="resume=/dev/sda7"
other=/dev/sda1
label="windows"
other=/dev/sda5
label="debian"
image=/boot/vmlinuz
label="failsafe"
root=/dev/sda6
initrd=/boot/initrd.img
append="failsafe splash=silent resume=/dev/sda7"

You have to remember to install grub on debians root partition I think. You only need to put debian itself in grubs menu, as it'll only be used to boot debian.

Best of luck....if you use the lilo.conf I put in let me know how it worked. Best thing about lilo and mandriva, I could use mandriva's install cd under the rescue cheat code and it would fix lilo for me. It's a life saver. Another thing I hated about grub was once I had installed it to the mbr, installing lilo over it didn't alway work the way it should. And on a failed install, grub, in a screwed up state was there, but on a distro that used lilo, even with a failed install, I could still get lilo working, to get at least one of the linux's installed on that box working. Anyway, enough of a rant.... Good luck....

David

Last edited by budword; 11-30-2006 at 06:39 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
Installing Multiple Distributions sureshkellemane Linux - Newbie 11 04-26-2010 04:00 AM
installing more distributions linsson Linux - General 3 03-03-2005 03:50 PM
difficulty installing distributions namayay Linux - Software 4 10-19-2004 12:01 PM
installing two or more linux distributions phoenix7 Linux - Distributions 2 09-02-2004 11:05 AM
installing two distributions charlie_t_lq Linux - Newbie 1 04-28-2004 03:26 PM

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

All times are GMT -5. The time now is 07:15 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