LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-18-2004, 12:58 AM   #1
EVO VIII Chris
LQ Newbie
 
Registered: Jan 2004
Location: Beaverton, OR
Posts: 29

Rep: Reputation: 15
What should my grub.conf file say for dual booting?


I am SOOOO close to getting this system to dual boot right. Heres a quick rundown. I have a SCSI hard drive which has Windows 2003 Server on it and I have a IDE hard drive which has redhat 8.0 on it. My grub.conf file looks like this...

# 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/hda6
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux 8.0
root (hd0,0)
kernel /vmlinuz-2.4.18-14 ro root=LABEL=/
initrd /initrd-2.4.18-14.img
title Windows Server 2003
rootnoverify (hd1,0)
chainloader +1

You can see that the Windows section of it is clearly wrong and this HAS to be why Windows won't boot. It is saying that the rootnoverify is set at (hd1, 0) I am not exactly sure what those two things together mean aside from the partition of the hard drive but I know for a fact that none of Windows not even the MBR is on the hd0. It is on my SCSI drive which is what Linux would call sda if I am right. I am just wondering if anyone can help me edit that small Windows section of my grub file and then this thing should work. Is the rootnoverify asking where the MBR is or what? Currently right now it will boot up to the redhat screen which asks me which OS to boot but then when you select Windows it can't seem to find windows because obviously it is looking in the hd1 which is NOT where windows is.

Anyone able to help!?
Thanks
Chris
 
Old 01-18-2004, 05:28 AM   #2
ac1980
Member
 
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394

Rep: Reputation: 30
Grub naming conventions are different from linux, I'm not sure how it will call yours, still there is an easy way to find out:
1. at grub prompt, press 'c' to go to command mode (YES: grub has a small self-contained console)
2. type "find /windows/cmd.exe" or whatever file you know the exact path of on your win drive
3. this should give you the name of the disk

What error do you get when booting? It may be related to a win bug that prevents it to boot from non-first disk. In case ask.
 
Old 02-04-2004, 08:56 PM   #3
LordZelica
LQ Newbie
 
Registered: Jan 2004
Posts: 3

Rep: Reputation: 0
I also have the same problem with my Win2K3 server. I have tried the idea that you raised, but it keeps on checking only the floppy disk. I have even tried to do some find on the Linux disk that I have for sure.

It basically just froze after the chainloader +1

I have tried almost every variant including the use of makeactive and such but to no avail. I hope anyone that have run Windows 2K3 and Any linux (mounted on different physical drive) can post their grub.conf setting file.
 
Old 02-05-2004, 08:07 PM   #4
androo
LQ Newbie
 
Registered: Feb 2004
Location: Canberra, Australia
Distribution: Red Hat 9
Posts: 1

Rep: Reputation: 0
Lightbulb

Not sure if you still need this but:
I have two 80gb drives. Master (hda) is Red Hat 9 and Slave (hdc) is Windows 2k Adv Server.

My GRUB.CONF file reads thusly:
# 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/hda2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /initrd-2.4.20-8.img
title Windows 2000 Advanced Server
rootnoverify (hd1,0)
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1

Someone told me always to leave a blank line at the end of the file - not sure why though. Note the two 'map' lines. If you add them, it might solve your dilemma.

Cheers...


Androo
 
Old 02-06-2004, 12:53 AM   #5
LordZelica
LQ Newbie
 
Registered: Jan 2004
Posts: 3

Rep: Reputation: 0
Thank you so much.. that works until the NTLDR gone missing =)
I am going to research more on those...
Once again, I really appreciate your help.
 
Old 02-06-2004, 01:16 AM   #6
LordZelica
LQ Newbie
 
Registered: Jan 2004
Posts: 3

Rep: Reputation: 0
For those who has problem here's the fix:

Start Recovery Console by using the operating system CD.

Navigate to the system partition root and type the following commands from the Recovery Console prompt:

copy drive:\i386\ntldr

copy drive:\i386\ntdetect.com

In the preceding two commands, drive represents the letter of the CD-ROM that holds the Windows XP Professional installation files.

Answer the Overwrite system? (Yes/No/All): prompts by pressing Y.
Restart the computer.

Which can easily be found also: http://www.microsoft.com/technet/tre...b_tol_zldj.asp
 
  


Reply



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-booting using grub damasta55r Linux - Newbie 13 11-20-2005 07:02 AM
how to configur grub.conf file for dual boot? den-den Linux - General 2 08-23-2005 02:49 PM
grub.conf - Trying to dual boot XP and FC2 LogicNZ Linux - Newbie 4 07-01-2004 03:01 AM
Dual booting and GRUB jfrye Linux - Newbie 1 10-09-2003 09:48 AM
GRUB, and dual booting sammyballz Linux - General 9 10-14-2002 10:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:51 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
Open Source Consulting | Domain Registration