Thread: Dual boot problem: RHEL 5.4 and Ubuntu 10.04
hi,
installed redhat enterprise linux 5.4 on pc.
partitions:
/dev/sda1 - /boot
/dev/sda3 - /
/dev/sda7 - swap
rhel config file located in /boot/grub/grub.conf & grub.conf file contains:
# grub.conf generated anaconda
#
# note not have rerun grub after making changes file
# notice: have /boot partition. means that
# kernel , initrd paths relative /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda3
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title red hat enterprise linux server (2.6.18-164.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-164.el5 ro root=label=/ rhgb quiet
initrd /initrd-2.6.18-164.el5.img
title other
rootnoverify (hd0,4)
chainloader +1
then, installed ubuntu 10.04 choosing option install alongside of rhel
partitions:
/dev/sda8 - ext4
/dev/sda9 - swap
ubuntu 10.04 config file located in /boot/grub/grub.cfg & contains:
#
# not edit file
#
# automatically generated /usr/sbin/grub-mkconfig using templates
# /etc/grub.d , settings /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} ]; if [ -z ${boot_once} ]; save_env recordfail; fi; fi
}
insmod ext2
set root='(hd0,8 )'
search --no-floppy --fs-uuid --set fa4c854b-4507-471c-a496-6a3e0957702f
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; true ; else
# backward compatibility versions of terminal.mod don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,8 )'
search --no-floppy --fs-uuid --set fa4c854b-4507-471c-a496-6a3e0957702f
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, linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,8 )'
search --no-floppy --fs-uuid --set fa4c854b-4507-471c-a496-6a3e0957702f
linux /boot/vmlinuz-2.6.32-21-generic root=uuid=fa4c854b-4507-471c-a496-6a3e0957702f ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'ubuntu, linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,8 )'
search --no-floppy --fs-uuid --set fa4c854b-4507-471c-a496-6a3e0957702f
echo 'loading linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=uuid=fa4c854b-4507-471c-a496-6a3e0957702f 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,8 )'
search --no-floppy --fs-uuid --set fa4c854b-4507-471c-a496-6a3e0957702f
linux16 /boot/memtest86+.bin
}
menuentry "memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,8 )'
search --no-floppy --fs-uuid --set fa4c854b-4507-471c-a496-6a3e0957702f
linux16 /boot/memtest86+.bin console=ttys0,115200n8
}
### end /etc/grub.d/20_memtest86+ ###
### begin /etc/grub.d/30_os-prober ###
### end /etc/grub.d/30_os-prober ###
### begin /etc/grub.d/40_custom ###
# file provides easy way add custom menu entries. type the
# menu entries want add after comment. careful not change
# 'exec tail' line above.
### end /etc/grub.d/40_custom ###
now, ubuntu startup menu not listing rhel menu entry , not able boot rhel.
pls me fix issue....
have tried , may want download lvm2 package first:
if not download , run this:code:sudo update-grub
boot info script courtesy of forum members meierfra & gert hulselmans
page instructions , download:
http://bootinfoscript.sourceforge.net/
paste contents of results.txt in new reply, highlight entire file , click on # in edit panel(code tags) make easier read.
or can generate tags first pressing # icon in new reply edit toolbar , paste contents between generated [ code] paste here [ /code] tags.
v60 has improved formating , requires code tags make legible. new version zip file have extract .sh run.
install these before running script:
able search lvm partitions if lvm2 package install
# ("apt-get install lvm2" in debian based distros)
# able search linux software raid partitions (md raids) if
# "mdadm" package installed.
sudo apt-get install mawk
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Installation & Upgrades [SOLVED] Dual boot problem: RHEL 5.4 and Ubuntu 10.04
Ubuntu
Comments
Post a Comment