Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-08-2007, 09:26 PM   #1
Registered: Jul 2006
Location: Crisfield
Distribution: Slackware, CentOS, RedHat
Posts: 159

Rep: Reputation: 15
mult distro boot help (lilo and grub)

I usually have a friend assist me in these issues but this time I wanted to tackle the problem myself in hopes of learning something new. I did ... sort of.

I installed Slackware 12 installed with /dev/ha3 as root and LILO written to the MBR. Then I decided to install CentOS 5 on /dev/hda4. It seemed to insist on installing grub in a /boot partition but it installed in /boot of the root partition on /dev/hda4.

I rebooted thinking that the MBR would rule this situation but when I did I went straight into CentOS. I looked and the CentOS install made /dev/hda4 a bootable partition. I toggled that to not be bootable and rebooted but the CentOS still came up.

I want the end result to be that I can boot into either distro from GRUB. My question is how do I set my grub.conf up to accomplish this AND do I need to do anything about the LILO that was installed in the MBR ?

I tried setting grub up to boot Slackware but I admit I do not know GRUB very well at all.

This is what my grub.conf had at first with just the CentOS kernel
title CentOS (2.6.18-8.el5xen)
	root (hd0,3)
	kernel /boot/xen.gz-2.6.18-8.el5 
	module /boot/vmlinuz-2.6.18-8.el5xen ro root=LABEL=/ rhgb quiet
	module /boot/initrd-2.6.18-8.el5xen.img
I tried adding this but I keep getting error 15 file not found
title Slackware (2.6.22)
	root (hd0,2)
	kernel /boot/vmlinuz-huge-smp- root=/dev/hda3
I think what is happening is that grub is installed in /dev/hda4/boot (CentOS area) and I am trying to start the Slackware kernel on /dev/hda3 using the wrong grub root. However when I edited the root command line to say

root (hd0,3)
I still received the same error.

Needless to say I am a bit confused. Can someone please explain what I am doing wrong and need to do? Thanks!

Old 11-08-2007, 10:57 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,896

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
title Slackware (2.6.22)
root (hd0,2)
kernel /boot/vmlinuz-huge-smp- root=/dev/hda3
This won't work because it's a grub config with files placed where grub will look for them. That doesn't apply to Lilo, which is what you installed in Slackware (I mean that configuration).

Try this in your grub config:
title Slackware (2.6.22)
root (hd0,2)
chainloader +1

Last edited by bigrigdriver; 11-08-2007 at 10:58 PM.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to boot grub from lilo? Linux.tar.gz Linux - Software 7 02-05-2006 06:32 PM
Grub over lilo (Changing distro) PPisHere Linux - Software 3 07-10-2005 01:44 PM
GRUB or LILO won't boot linux!!! for ANY distro stelmate Linux - Hardware 12 05-27-2005 07:42 PM
2 distro installed. need lilo to fix boot freeindy Linux - General 3 06-26-2004 07:11 AM
no LILO, no GRUB, NO BOOT !!! mioche Linux - Newbie 4 08-25-2003 06:55 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:28 AM.

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