LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 08-16-2010, 07:26 AM   #1
thewhiteeye
LQ Newbie
 
Registered: Jul 2009
Posts: 10

Rep: Reputation: 0
Question Dual boot RHEL 5 and Ubuntu 10.04 LTS


I installed RHEL 5 on my system. Then after that i installed Ubuntu 10.04 LTS also. Now in the boot menu i am not able to see the RHEL option at all.
My machine has also Windows Xp installed on it. All the three OS are on the same hard disk.
I am giving the contents of RHEL 5 grub.conf and Ubuntu grub.cfg below.
Please help me .

RHEL 5 grub.conf:

# 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,5)
# kernel /vmlinuz-version ro root=/dev/sda8
# initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd0,5)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-8.el5xen)
root (hd0,5)
kernel /xen.gz-2.6.18-8.el5
module /vmlinuz-2.6.18-8.el5xen ro root=LABEL=/ rhgb quiet
module /initrd-2.6.18-8.el5xen.img
title Red Hat Enterprise Linux Server (2.6.18-53.el5)
root (hd0,5)
kernel /vmlinuz-2.6.18-53.el5 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-53.el5.img
title Other
rootnoverify (hd0,0)
chainloader +1





Ubuntu grub.cfg:

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd0,11)'
search --no-floppy --fs-uuid --set 89cac23d-a9e0-4377-a551-7e6ae213abac
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,11)'
search --no-floppy --fs-uuid --set 89cac23d-a9e0-4377-a551-7e6ae213abac
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,11)'
search --no-floppy --fs-uuid --set 89cac23d-a9e0-4377-a551-7e6ae213abac
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=89cac23d-a9e0-4377-a551-7e6ae213abac ro quiet splash
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,11)'
search --no-floppy --fs-uuid --set 89cac23d-a9e0-4377-a551-7e6ae213abac
echo 'Loading Linux 2.6.32-24-generic ...'
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=89cac23d-a9e0-4377-a551-7e6ae213abac ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,11)'
search --no-floppy --fs-uuid --set 89cac23d-a9e0-4377-a551-7e6ae213abac
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=89cac23d-a9e0-4377-a551-7e6ae213abac ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,11)'
search --no-floppy --fs-uuid --set 89cac23d-a9e0-4377-a551-7e6ae213abac
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=89cac23d-a9e0-4377-a551-7e6ae213abac ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,11)'
search --no-floppy --fs-uuid --set 89cac23d-a9e0-4377-a551-7e6ae213abac
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,11)'
search --no-floppy --fs-uuid --set 89cac23d-a9e0-4377-a551-7e6ae213abac
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set fa2467c024677e8f
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###



### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
 
Old 08-16-2010, 07:55 AM   #2
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 55
You may have to install Ubuntu BEFORE RHEL? I don't know exactly, but I believe RHEL uses GRUB Legacy instead of GRUB 2, which means that it needs to be installed after a GRUB 2-based distro such as Ubuntu (which included GRUB 2 since Karmic).
 
Old 08-28-2010, 01:36 AM   #3
thewhiteeye
LQ Newbie
 
Registered: Jul 2009
Posts: 10

Original Poster
Rep: Reputation: 0
New installation

Ok. Now I installed ubuntu 10.04 first and then RHEL5. But now option for booting into UBUNTU is not visible at the boot time. The boot menu only shows the RHEL5 and XP options.

Please help me as i want both the RHEL 5 and Ubuntu options.
 
Old 08-28-2010, 01:53 AM   #4
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 111Reputation: 111
edit your grun.conf file and add ubuntu entry.

Code:
title ubuntu
root (hdx,y)
chainloader +1
set correct value of x,y.

HTH
 
Old 08-28-2010, 03:48 PM   #5
antriksh
Member
 
Registered: Aug 2010
Location: In my world
Distribution: RHEL 6.4
Posts: 57

Rep: Reputation: 0
i have this problem also before but now i have successfully resolved it...right now i have triple boot system RHEL 5.3,ubuntu 10.04, windows 7...my procedure is---

1.first install xp...

2. nxt install RHEL 5 but while installing select don't install bootloader....

3.now install ubuntu with bootloader on /dev/sda....it must now have entry to RHEL in grub....if don't then boot ubuntu and run update-grub as root....now the RHEL entry must come on grub menu but still it won't boot it show kernel panic if you select RHEL..to solve this follow this--

1.edit /boot/grub/grub.cfg

menuentry 'Red hat'{
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 89cac23d-a9e0-4377-a551-7e6ae213abac
linux /boot/vmlinuz-2.6.32-24-generic root=LABEL=/ rhgb quiet
initrd /boot/initrd.img-2.6.32-24-generic

the point is you have to make two corrections first "root=LABEL=/ rhgb quiet"[not by UUID] and correct vmlinuz and initrd version--

linux /boot/vmlinuz-2.6.32-24 root=LABEL=/ rhgb quiet
initrd /boot/initrd.img-2.6.32-24

save and reboot now...make sure if you have done any wrong entry in grub.cfg then your system becomes unbootable so take extream precautions...
 
  


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
No boot splash with Ubuntu Lucid 10.04 LTS. linuxlover.chaitanya Ubuntu 12 05-05-2010 01:10 AM
LXer: I update Ubuntu 6.06 LTS and 8.04 LTS ... one has SSH issues, one does not LXer Syndicated Linux News 0 05-20-2008 08:30 AM
Dual Boot RHEL 5 With Ubuntu 8.4 htabesh Linux - Enterprise 1 04-27-2008 02:29 PM
Dual-Boot problem:ubuntu and RHEL aloktherocker Linux - General 1 11-04-2007 11:54 AM
Dual Core on Ubuntu 6.06 LTS lnxmomo Linux - Software 5 06-30-2006 04:54 PM


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