LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 11-08-2007, 08:26 PM   #1
cygnus-x1
Member
 
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
Code:
default=1
timeout=30
splashimage=(hd0,3)/boot/grub/splash.xpm.gz
hiddenmenu
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
Code:
title Slackware (2.6.22)
	root (hd0,2)
	kernel /boot/vmlinuz-huge-smp-2.6.21.5 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

Code:
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!

Doug
 
Old 11-08-2007, 09:57 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,783

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
Quote:
title Slackware (2.6.22)
root (hd0,2)
kernel /boot/vmlinuz-huge-smp-2.6.21.5 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:
Quote:
title Slackware (2.6.22)
root (hd0,2)
chainloader +1

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


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 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 05:32 PM
Grub over lilo (Changing distro) PPisHere Linux - Software 3 07-10-2005 12:44 PM
GRUB or LILO won't boot linux!!! for ANY distro stelmate Linux - Hardware 12 05-27-2005 06:42 PM
2 distro installed. need lilo to fix boot freeindy Linux - General 3 06-26-2004 06:11 AM
no LILO, no GRUB, NO BOOT !!! mioche Linux - Newbie 4 08-25-2003 05:55 AM


All times are GMT -5. The time now is 12:19 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration