LinuxQuestions.org
Help answer threads with 0 replies.
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 06-15-2007, 08:00 AM   #1
brazilian_user
Member
 
Registered: Nov 2005
Location: Brazil, Po - So Paulo
Distribution: Debian Etch
Posts: 110

Rep: Reputation: 15
Adding a new Linux Installation to Grub


Hello All!!

I have two HDs of 80GB that are set in RAID. When I attempted to install Red Hat EL 5 on my box it identified all my 160GB and the installation was just fine. I had to install another version of Red Hat in the same box so I skipped the step to install Grub.

Below is my partitioning schema:

Disk /dev/mapper/nvidia_ifbacfhg: 160.0 GB, 160052674560 bytes
255 heads, 63 sectors/track, 19458 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/mapper/nvidia_ifbacfhg1 * 1 13 104391 83 Linux
/dev/mapper/nvidia_ifbacfhg2 14 6387 51199155 83 Linux
/dev/mapper/nvidia_ifbacfhg3 6388 7024 5116702+ 82 Linux swap / Solaris
/dev/mapper/nvidia_ifbacfhg4 7025 19458 99876105 5 Extended
/dev/mapper/nvidia_ifbacfhg5 7025 7037 104391 83 Linux
/dev/mapper/nvidia_ifbacfhg6 7038 13411 51199123+ 83 Linux

FIRST INSTALLATION
/dev/mapper/nvidia_ifbacfhg1 -> /boot
/dev/mapper/nvidia_ifbacfhg2 -> /
/dev/mapper/nvidia_ifbacfhg3 -> swap

SECOND INSTALLATION
/dev/mapper/nvidia_ifbacfhg5 -> /boot
/dev/mapper/nvidia_ifbacfhg6 -> /

The following is the default menu.lst from the First Installation:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/mapper/nvidia_ifbacfhgp2
# initrd /initrd-version.img
#boot=/dev/mapper/nvidia_ifbacfhg
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-8.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-8.el5 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-8.el5.img

What should I put in my menu.lst to add the second installation of Red Hat?

Thank You!!
 
Old 06-15-2007, 08:16 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
title Red Hat 2nd install
root (hd0,5)
kernel /vmlinuz-kver-rh2 ro root=LABEL=/ rhgb quiet
initrd /initrd-kver-rh2.img
 
Old 06-15-2007, 08:43 AM   #3
brazilian_user
Member
 
Registered: Nov 2005
Location: Brazil, Po - So Paulo
Distribution: Debian Etch
Posts: 110

Original Poster
Rep: Reputation: 15
Hello Simon!

That's exactly the way I did, but when I try to boot it after include these line I get the following error message:

root (hd0,5)
Filesystem type is ext2fs, partition type 0x84
kernel /vmlinuz-2.6.18-8el5 ro root=LABEL=/ rhgb quiet
Error 15: File not found

If I boot from the first installation and manually mount the /dev/mapper/nvidia_ifbacfhg5 partition that's where the kernel is located I can see that it's really there.

Best Regards!!

Rodrigo
 
  


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
adding debian to a previous grub installation starguymike04 Debian 18 08-25-2004 02:34 AM
Grub installation problem on Gentoo Linux Belerefontis Linux - Distributions 1 06-21-2004 01:55 AM
how to load linux or win from GRUB after installation gone bad mario08 Linux - Newbie 24 01-17-2004 04:18 AM
1st HDD = RH9.0 (grub) ... How do I modify grub when adding 2nd hard disk ? Onyx^ Linux - Software 1 09-05-2003 09:16 AM
How do I add a new installation of linux to GRUB? KuRe Linux - Software 2 03-25-2003 11:51 AM


All times are GMT -5. The time now is 06:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration