LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-12-2013, 05:44 PM   #1
SoftwareGoddess
LQ Newbie
 
Registered: Nov 2012
Location: Space Coast Florida
Distribution: Red Hat and MRG
Posts: 2

Rep: Reputation: Disabled
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.

Thanks for your help in advance - Tammy

Here's a snapshot of the partitions:

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x4eb4b6d3

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

#UUID=98d8446b-6aa5-417f-85c0-a7b384780001 / ext4 defaults 1 1 Red Hat Partition
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 / 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
 
Old 03-12-2013, 08:11 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,872

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
Quote:
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:

http://sourceforge.net/projects/bootinfoscript/
 
Old 03-14-2013, 02:41 PM   #3
SoftwareGoddess
LQ Newbie
 
Registered: Nov 2012
Location: Space Coast Florida
Distribution: Red Hat and MRG
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks a bunch. Setting the root(hd0,2) worked. FYI, The other two suggestions did not work.
 
  


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
Dual Boot - Win2k Server NTFS and Red Hat 9.0 llace Linux - Newbie 0 06-28-2004 03:25 PM
Dual Boot - Win2k Server NTFS and Red Hat 9.0 llace Linux - Newbie 0 06-27-2004 02:42 PM
Dual Boot - Win2k Server NTFS and Red Hat 9.0 llace Linux - Newbie 0 06-27-2004 02:28 PM
Red Hat 9 / WIn XP dual boot issue gwgross Linux - Software 4 05-28-2003 12:30 AM


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