LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-25-2005, 02:16 PM   #1
mjwhitby
LQ Newbie
 
Registered: Feb 2005
Posts: 2

Rep: Reputation: 0
Grub Issue


Heres the deal... I have one redhat hard drive and one windows xp hard drive on the primary IDE controller. Grub will dual boot those perfectly fine. I have just added another IDE drive to the secondary IDE controller (set as master) The drive is reconized in redhat and windows XP but I am not able to get grub.conf edited in such a way that windows 2000 will boot from grub. Below is my current grub.conf file:

title Red Hat Linux (2.4.20-8)
root (hd1,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdd=ide-scsi
initrd /initrd-2.4.20-8.img
title Windows XP
rootnoverify (hd0,0)
chainloader +1
title Windows 2000 Server
rootnoverify (hd2,0)
chainloader +1

Below are the contents of device.map:

(fd0) /dev/fd0
(hd0) /dev/hda
(hd1) /dev/hdb
(hd2) /dev/hdc

Any idea why when I select Windows 2000 Server in the Grub menu it loads Windows XP instead?
 
Old 02-25-2005, 04:36 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
You will probably need to use map for Windows when it's on a drive other than hd0

title Windows 2000 Server
rootnoverify (hd2,0)
map (hd0) (hd2)
map (hd2) (hd0)
chainloader +1
 
Old 02-25-2005, 05:25 PM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally posted by homey
You will probably need to use map for Windows when it's on a drive other than hd0

title Windows 2000 Server
rootnoverify (hd2,0)
map (hd0) (hd2)
map (hd2) (hd0)
chainloader +1
That should work.

The actual problem is, I think, that the NTLoader is looking at the boot.ini file on the "first" HD, and -- unless you have is set for multi-boot -- it just boot the first active partition it sees.

My boot.int looks like this, for a set-up very similar to yours.

Code:
[boot loader]
timeout=5
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(2)partition(1)\WINNT="Win2K" /fastdetect
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="WinXP" /fastdetect /NoExecute=OptOut
C:\CMDCONS\BOOTSECT.DAT="Recovery Console" /cmdcon
Oh, my grub.conf looks like this:

Code:
default=0
timeout=7
title Fedora Core (2.6.10-1.766_FC3smp)
        root (hd1,1)
        kernel /vmlinuz-2.6.10-1.766_FC3smp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.10-1.766_FC3smp.img
title Fedora Core (2.6.10-1.766_FC3smp) No RedHatGraphicBoot
        root (hd1,1)
        kernel /vmlinuz-2.6.10-1.766_FC3smp ro root=/dev/VolGroup00/LogVol00
        initrd /initrd-2.6.10-1.766_FC3smp.img
title Fedora Core (2.6.10-1.760_FC3smp)
        root (hd1,1)
        kernel /vmlinuz-2.6.10-1.760_FC3smp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.10-1.760_FC3smp.img
title Windows
        rootnoverify (hd0,0)
        chainloader +1
So that, when I select "Windows," I get the menu to select from the three boot options there.
 
Old 02-25-2005, 08:52 PM   #4
mjwhitby
LQ Newbie
 
Registered: Feb 2005
Posts: 2

Original Poster
Rep: Reputation: 0
The map did the trick! I could see how the other method would work also, great idea. Thanks everyone for the help!

-Matt
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GRUB issue... mufy Fedora 1 02-09-2005 03:40 AM
Grub issue gmanigault Linux - Software 5 12-07-2004 02:23 PM
Grub Issue david_harvard Linux - Newbie 2 06-09-2004 01:59 AM
yet another grub issue stikboy Linux - Newbie 2 09-22-2003 12:29 PM
GRUB issue Galileo430 Linux - Newbie 3 04-07-2003 03:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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