GRUB Dual boot issue Red Hat 6.1 Server and Ubuntu 12.0.4
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
GRUB Dual boot issue Red Hat 6.1 Server and Ubuntu 12.0.4
Hi All,
I have a Dell Precision 6600 that I original setup to dual boot RH5.5 and RH6.1( to support two different products for my company). I am trying to replace the RH5.5 with Ubuntu. I downloaded Ubuntu for the Ubuntu.com and burned as ISO disk on my windows machine. During the Ubuntu install process, I selected to install it on /dev/sda3 and made it a mount pt to /(The same way the RH5.5 was originally setup). For the boot loader, I selected /dev/sda1 where /boot for both the RH installs were mapped.
I can still boot the RH6.1 and all my applications on that side still run. I can see the /ubuntu but I can't get the system to boot Ubuntu or even run Ubuntu. I can run Ubuntu from the RH side by using the UBUNTU DVD.
Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 12773 102398310 83 Linux
/dev/sda3 12774 25521 102398310 83 Linux
/dev/sda4 25522 60801 283386600 5 Extended
/dev/sda5 25522 27561 16386268+ 82 Linux swap / Solaris
/dev/sda6 27562 60801 267000268+ 83 Linux
Mount table from the RH6.1 side
[root@lx-ae01 ~]# mount
/dev/sda2 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda1 on /boot type ext3 (rw)
/dev/sda6 on /home type ext3 (rw)
/dev/sda3 on /ubuntu type ext3 (rw)
/var/www/html/pub/mercury/rhel/install/rhel-server-6.1-x86_64-dvd.iso on /var/www/html/pub/mercury/rhel/install/RHEL_6.1_x86_64 type iso9660 (ro,loop=/dev/loop0)
/var/www/html/pub/mercury/rhel/install/rhel-6-mrg-2.0-x86_64.iso on /var/www/html/pub/mercury/rhel/install/MRG_2.0_x86_64 type iso9660 (ro,loop=/dev/loop1)
none on /mcmemfs type mcmemfs (rw)
none on /mc/cluster type tmpfs (rw,size=2m,mode=777)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)
Here is the grub.conf I am trying to use:
You can see where I commented out the two boot options for RH5.5.
From the comments, you can see I tried setting the kernel and the initrd like in RH but that scenario just hangs at boot-up when that option is selected. I then tried the menu.lst which gives the error "File not Found". One thing among many that I do not understand is when I check the properties on the vmlinuz-3.5.0-23-generic it declares the type as a DOS/Windows executable(application/ x-ms-dos-executable) which is different from the other vmlinuz(s) on the machine.
# 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/sda2
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
#hiddenmenu
title Red Hat Enterprise Linux 6.1/MRG 2.0 (2.6.33.9-rt31.66.el6rt.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.33.9-rt31.66.el6rt.x86_64 ro root=UUID=98d8446b-6aa5-417f-85c0-a7b384780001 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=256M rhgb memmap=4096M$4096M slot=1 nomodeset rdblacklist=nouveau reboot=pci
initrd /initramfs-2.6.33.9-rt31.66.el6rt.x86_64.img
title Red Hat Enterprise Linux 6.1 (2.6.32-131.0.15.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-131.0.15.el6.x86_64 ro root=UUID=98d8446b-6aa5-417f-85c0-a7b384780001 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=256M rhgb memmap=4096M$4096M slot=1 nomodeset rdblacklist=nouveau reboot=pci
initrd /initramfs-2.6.32-131.0.15.el6.x86_64.img
title Ubuntu Linux 12.04
root (hd0,0)
configfile /boot/grub/menu.lst
# kernel /vmlinuz-3.5.0-23-generic ro root=LABEL=/ rhgb crashkernel=256M memmap=4096M$4096M slot=1 reboot=pci
# initrd / initrd.img-3.5.0-23-generic
#title Red Hat Enterprise Linux 5.5/MRG 1.3 (realtime) (2.6.33.7-rt29.45.el5rt)
# root (hd0,0)
# kernel /vmlinuz-2.6.33.7-rt29.45.el5rt ro root=LABEL=/ rhgb crashkernel=256M@16M memmap=4096M$4096M slot=1
# initrd /initrd-2.6.33.7-rt29.45.el5rt.img
#title Red Hat Enterprise Linux Server 5.5 (2.6.18-194.el5)
# root (hd0,0)
# kernel /vmlinuz-2.6.18-194.el5 ro root=LABEL=/ rhgb quiet crashkernel=256M@16M
# initrd /initrd-2.6.18-194.el5.img
Here is the fstab for the RH6.1 system:
#
# /etc/fstab
# Created by anaconda on Mon Mar 12 22:53:18 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=98d8446b-6aa5-417f-85c0-a7b384780001 / ext4 defaults 1 1
UUID=48204b98-f593-4b7c-ae35-6413b4b6a89e /boot ext3 defaults 1 2
UUID=39924bd3-81fa-4eaa-96c6-f57ca5d901cb /home ext3 defaults 1 2
UUID=4bba46da-bbef-4bfd-b5f3-a61314b2b401 /ubuntu ext3 defaults 1 2
/dev/sda5 swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/var/www/html/pub/mercury/rhel/install/rhel-server-6.1-x86_64-dvd.iso /var/www/html/pub/mercury/rhel/install/RHEL_6.1_x86_64 iso9660 loop,ro 0 0
/var/www/html/pub/mercury/rhel/install/rhel-6-mrg-2.0-x86_64.iso /var/www/html/pub/mercury/rhel/install/MRG_2.0_x86_64 iso9660 loop,ro 0 0
none /mcmemfs mcmemfs defaults 0 0
none /mc/cluster tmpfs size=2m,mode=777 0 0
and the fstab for the Ubuntu system:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
#proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda3 during installation
#UUID=4bba46da-bbef-4bfd-b5f3-a61314b2b401 / ext3 errors=remount-ro 0 1
#/dev/sda5 none swap sw 0 0
title Ubuntu Linux 12.04
root (hd0,0)
configfile /boot/grub/menu.lst
That won't work for the simple reason that there is no menu.lst file in Ubuntu 12.04. What you need to do is boot Red Hat and mount sda3 and take a look at Ubuntu. There should be a /boot/grub directory with a grub.cfg file which is the Grub2 equivalent o grub.conf/menu.lst in Grub Legacy. If the Ubuntu boot files are on sda3, you can put an entry like this in to boot Ubuntu:
Quote:
title Ubuntu-12.04
root (hd0,2)
kernel /boot/grub/core.img
Or you could replace the kernel line above with: chainloader +1. Or you could replace the kernel line with: configfile /boot/grub/grub.cfg. If that doesn't work, go to the site below and download and run the bootinfoscript and post the output, a results.txt file:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.