LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 08-03-2004, 09:35 PM   #1
statmobile
Member
 
Registered: Aug 2003
Location: Chapel Hill, NC
Distribution: Gentoo, Windows 95 2000 & XP
Posts: 160

Rep: Reputation: 30
grub configuration after gentoo install


Okay, let's see if anybody can help me here. I'll try to be detailed about the issue I'm having. I have redhat 9 installed on my machine, but I just recently bought a nice large hard drive, and I want to give gentoo a spin on it. I added this hard drive to the machine, and went through the installation (we won't discuss the time it took).

Anyway, my new harddrive is ATA 100, so I had to reconfigure the boot order in my BIOS. I'm using grub .94 on my new gentoo hard drive, and I was hoping to add redhat as an option in my new drive's grub.conf. Here is what the original grub file had.

default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hda=ide-scsi
initrd /initrd-2.4.20-8.img

But as I said, I changed the boot order in my BIOS, so this would now be hard drive would be hd1, correct? Beause it's not booting right to the redhat hard drive. I added this into my Gentoo drive grub.conf

#See if RedHat can also be booted
title Red Hat Linux (2.4.20-8)
root (hd1,0)
# kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hda=ide-scsi
# initrd /initrd-2.4.20-8.img
kernel /vmlinuz-2.4.20-8 ro root=/dev/hdc1
initrd /initrd-2.4.20-8.img
chainloader +1

I commented out the old information for reference. Well, needless to say, when I try to boot into redhat, grub crashes complaining about some unrecognized command. I've been editing this file in all kinds of different ways through grub, but I just can't seem to get it to work. One of the main questions I have, is this LABEL=/hda=ide-scsi. I'm not sure what to do here, because my gentoo installation mounts the redhat drive as /dev/hdc2 which is the redhat root directory. /dev/hdc1 is the old redhat 9 boot partition. Please help, because I'd love to keep redhat running on this machine as well.

Last edited by statmobile; 08-03-2004 at 09:36 PM.
 
Old 08-04-2004, 08:55 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Re: grub configuration after gentoo install

Quote:
Originally posted by statmobile
I'm not sure what to do here, because my gentoo installation mounts the redhat drive as /dev/hdc2 which is the redhat root directory. /dev/hdc1 is the old redhat 9 boot partition.
So have you tried

title Red Hat 9
root (hd1,1)
kernel /boot/vmlinuz-2.4.20-8 root=/dev/hdc2
 
Old 08-04-2004, 09:03 AM   #3
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
I would say the problem started when you changed the BIOS...........
change the BIOS back to what it was before you install gentoo.......and
see if the system boot and too which OS it boots to.........
 
Old 08-04-2004, 08:02 PM   #4
statmobile
Member
 
Registered: Aug 2003
Location: Chapel Hill, NC
Distribution: Gentoo, Windows 95 2000 & XP
Posts: 160

Original Poster
Rep: Reputation: 30
No dice, I've tried changing the bios back, and that won't work either. I'm not quite sure where that problem comes from.

I also tried those commands in grub.conf, but it's still complaining about an unrecognized command. It looks like it finds the files, but can't seem to execute the code.
 
Old 08-05-2004, 07:52 AM   #5
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
What file system is Red Hat on? Ext3? Do you have an e2fs_stage1_5 file in /boot/grub on Gentoo, alongside your menu.lst?
 
Old 08-05-2004, 04:02 PM   #6
statmobile
Member
 
Registered: Aug 2003
Location: Chapel Hill, NC
Distribution: Gentoo, Windows 95 2000 & XP
Posts: 160

Original Poster
Rep: Reputation: 30
it's ext3, and yes I have that file in there... Hmmm
 
  


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
Grub not booting with Sata on fresh Gentoo install jxbryan Linux - Software 2 03-08-2005 06:02 PM
Problems with Gentoo install/grub/boot n5k Linux - Newbie 5 03-12-2004 09:29 AM
Gentoo Grub Error (Fresh Install) dkaplowitz Linux - Distributions 6 11-21-2003 02:55 PM
Gentoo 1.4 x86 grub install problems Joe_Bogarde Linux - Newbie 11 08-20-2003 05:59 PM
Gentoo linux install snag with Grub tybaldchina Linux - Distributions 0 12-03-2002 07:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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