LinuxQuestions.org
Help answer threads with 0 replies.
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 04-26-2005, 11:12 AM   #1
jackreed2k
LQ Newbie
 
Registered: Apr 2005
Location: Hawaii
Posts: 5

Rep: Reputation: 0
dual boot suse 9.3 and redhat enterprise ws 3


I have Red Hat Enterprise Linux WS 3.0 installed on Master drive hda (hd0). I got the great idea to install Suse 9.3 Pro on my 2nd hard drive= slave drive hdb (hd1). And guess what...I now can't boot into Red Hat. Being a newbie I could use some help.

so here's what I have in my Suse 9 boot loader config file:
* /boot/grub/device.map
(hd1) /dev/hdb
(fd0) /dev/fd0
(hd0) /dev/hda

* /boot/grub/menu.lst

# Modified by YaST2. Last modification on Tue Apr 26 05:05:15 HST 2005

color white/blue black/light-gray
default 0
timeout 8
gfxmenu (hd1,1)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title Red Hat Enterprise WS 3.0
kernal (hd0,1)/boot/vmlinux-2.4.21-27.0.4.EL
initrd (hd0,1)/boot/initrd-2.4.21-27.0.4.EL

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 9.3
kernel (hd1,1)/boot/vmlinuz root=/dev/hdb2 vga=0x31a selinux=0 splash=silent resume=/dev/hdb1 showopts
initrd (hd1,1)/boot/initrd

###Don't change this comment - YaST2 identifier: Original name: xen###
title XEN
kernel (hd1,1)/boot/xen.gz dom0_mem=589824
module (hd1,1)/boot/vmlinuz-xen root=/dev/hdb2 vga=0x31a selinux=0 splash=silent resume=/dev/hdb1 showopts
module (hd1,1)/boot/initrd-xen

###Don't change this comment - YaST2 identifier: Original name: floppy###
title Floppy
root (fd0)
chainloader +1

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE LINUX 9.3
kernel (hd1,1)/boot/vmlinuz root=/dev/hdb2 showopts ide=nodma apm=off acpi=off vga=normal noresume selinux=0 barrier=off nosmp noapic maxcpus=0 3
initrd (hd1,1)/boot/initrd

###Don't change this comment - YaST2 identifier: Original name: memtest86###
title Memory Test
kernel (hd1,1)/boot/memtest.bin

* /etc/grub/conf

setup --stage2=/boot/grub/stage2 (hd0) (hd1,1)
quit


I could really use some help in trying to get the format right on my Red Hat partition. Thanks in advance.
 
Old 04-26-2005, 04:18 PM   #2
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,147

Rep: Reputation: Disabled
Did you copy and paste the menu.lst? There is a typo in RH configuration. Kernal instead of kernel.
 
Old 04-26-2005, 05:31 PM   #3
jackreed2k
LQ Newbie
 
Registered: Apr 2005
Location: Hawaii
Posts: 5

Original Poster
Rep: Reputation: 0
Crap!!! I spell like a trailer park crack baby. Good catch. yES, I did a copy and paste, I'll change the spelling. By the way I noticed that Suse has it's kernel in this format: kernel (hd1,1)/boot/vmlinuz root=/dev/hdb2 vga=0x31a selinux=0 splash=silent . Do I need to have my Red Hat kernel in the same format: root, vga, etc., listed? Am I missing anything there? Does anyone use Red Hat Enterprise Linux WS 3.0? I guess I should have copied my redhat boot record stuff before loading Suse. Lesson learned, serving 999,999.

Last edited by jackreed2k; 04-26-2005 at 05:34 PM.
 
Old 04-26-2005, 06:05 PM   #4
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,147

Rep: Reputation: Disabled
I've never tried to boot up without root=. Rest is clearly optional.
 
Old 04-26-2005, 08:34 PM   #5
jackreed2k
LQ Newbie
 
Registered: Apr 2005
Location: Hawaii
Posts: 5

Original Poster
Rep: Reputation: 0
What I need to find out is how to point GRUB to find my kernel, initrd file, and root. At least that's what I think. I installed Redhat Enterprise Linux WS 3.0 in a normal configuration. So I would guess that it should be in a normal layout. Here's what I tried last and it didn't work:
title Red Hat Enterprise WS 3.0 (2.4.21-27.0.4.EL)
kernel (hd0,0) /boot/vmlinuz-2.4.21-27.0.4.EL ro root=/dev/hda2
initrd (hd0,0)/boot/initrd-2.4.21-27.0.4.EL

Now I'm not sure if I'm supposed to type the whole thing out, i.e., 2.4.21-27.0.4.EL or just type vmlinuz. I'm also not sure if root is at /dev/hda2. I'm just guessing. If anybody has loaded Red Hat Enterprise WS 3.0 could you please look at your menu list and see how it's worded. I'm really trying to not go through a full re-load of red hat if possible.

thanks
 
Old 04-26-2005, 08:56 PM   #6
jackreed2k
LQ Newbie
 
Registered: Apr 2005
Location: Hawaii
Posts: 5

Original Poster
Rep: Reputation: 0
Okay I'm trying this one.
# Modified by YaST2. Last modification on Tue Apr 26 14:53:45 HST 2005

color white/blue black/light-gray
default 0
timeout 8
gfxmenu (hd1,1)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title Red Hat Enterprise WS 3.0 (2.4.21-27.0.4.EL)
root (hd0,1)
kernel (hd0,0) /boot/vmlinuz-2.4.21-27.0.4.EL
initrd (hd0,0) /boot/initrd-2.4.21-27.0.4.EL

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 9.3
kernel (hd1,1)/boot/vmlinuz root=/dev/hdb2 vga=0x31a selinux=0 splash=silent resume=/dev/hdb1 showopts
initrd (hd1,1)/boot/initrd
 
Old 04-27-2005, 01:20 AM   #7
jackreed2k
LQ Newbie
 
Registered: Apr 2005
Location: Hawaii
Posts: 5

Original Poster
Rep: Reputation: 0
Okay I give up. I'm doing a format C:\ I'm going to load Suse first on the master drive and then load Red Hat on the slave. When I load Red Hat should I or shouldn't I use a boot loader? How should I do this?
 
Old 04-27-2005, 07:53 AM   #8
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,147

Rep: Reputation: Disabled
Reinstalling OS because of a bootloader problem...? Hm.
1. You must use a bootloader in case you have more than one OS to boot. Computer boots from mbr of first disk, and there is only one mbr on the first disk.
2. This is why you have to tell your bootloader where to find the partition with OS. For instance, 'root (hd0,2)' in grub menu points to the third partition on the first disk.
3. Hopefully there is a kernel to boot. For instance, /boot/mykernel boots the kernel named mykernel from /boot directory of that third partition.
4. You must tell the kernel where is the root filesystem, this is why you need root=/dev/hda3 in kernel command line. hda3 is the very same third partition on first disk.
In this example I assumed there is no separate /boot partition.

Less trying and more reading leads to success.
 
Old 04-27-2005, 08:08 PM   #9
mugstar
Member
 
Registered: Jun 2004
Location: Scotland
Distribution: Anything that'll install...
Posts: 305

Rep: Reputation: 30
Chainloading is the answer, IMHO. When you install your first distro (assuming it's on an otherwise empty disk) install GRUB to the MBR. For subsequent distros, install either GRUB or LILO, whichever is the default, but make certain to install it to the second distro's root partition, not the MBR. Then go back to distro #1, edit /boot/grub/menu.lst and add something like
Code:
title second-distro
root (hd0,5)
chainloader +1
where (hd0,5) is the root partition of the second distro.

In this case, it would look like
Code:
title red-hat
root (hd0,0)
chainloader +1
Try adding that to /boot/grub/menu.lst
 
Old 04-27-2005, 08:21 PM   #10
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,147

Rep: Reputation: Disabled
Chainloader is needed only if there is another bootloader, as it is the case with Windows.
 
Old 04-27-2005, 08:34 PM   #11
mugstar
Member
 
Registered: Jun 2004
Location: Scotland
Distribution: Anything that'll install...
Posts: 305

Rep: Reputation: 30
Kinda. If you want to dual boot with windows, then yes, you have to chainload. I was suggesting a clean, easy way of managing a dual- or multi-boot. This is my preferred method as it involves a minimum of messing around, and keeps the menu.lst for the GRUB installed on the MBR nice and simple. There are other ways, of course.
 
  


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 suse 8.1 and redhat es 3.0 dhiruvanita Linux - Software 1 04-14-2005 05:02 PM
How to Uninstall RedHat Enterprise on dual-boot system w/XP kenk50 Linux - Newbie 1 02-25-2005 06:49 PM
dual boot Redhat and Suse degraffenried13 Linux - General 31 12-11-2004 08:16 PM
Dual Boot Problems Redhat 9, Fedora.........Suse 9 next patrickian Fedora 2 06-14-2004 09:08 AM
suse and redhat dual boot? zerogrep Linux - Newbie 1 04-06-2004 02:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:30 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