LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-22-2006, 11:31 AM   #1
ERBRMN
Member
 
Registered: Mar 2005
Location: Japan
Distribution: TurboLinux, RHEL, SUSE
Posts: 96

Rep: Reputation: 15
Help, How to Grub Linux, Windows XP and Windows 2000



Hi all

On my computer has 2 hard disks (both primary of IDE0 and IDE1),
I installed windows XP and Fedora Linux on disk 0, Windows 2000 (japanese) on disk 1.

Boot loader is GRUB.

Now, I can boot Windows XP and Linux, but I could not boot Windows 2000. When I select on Grub menu to boot Windows 2000, it booting Windows XP.

My grub.conf
------------------------
........

title Fedora Core (2.6.15-1.2054_FC5)
root (hd0,1)
kernel /vmlinuz-2.6.15-1.2054_FC5 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.15-1.2054_FC5.img

title WindowsXP_en
rootnoverify (hd0,0)
chainloader +1

title Windows2000_jp
rootnoverify (hd1,0)
chainloader +1

------------------------

Have you any idea to configure GRUB config file, please help me?
.

Last edited by ERBRMN; 04-22-2006 at 12:01 PM.
 
Old 04-22-2006, 01:12 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Well it sounds like you forgot to tell us something. Like how you installed Windows 2000 (japanese) on the second hard drive. Did you perhaps swap the hard drivers in the BIOS??

If yes, then in grub remap the drivers, try something like;

title Windows2000_jp
map (hd0,0) (hd0,1)
map (hd0,1) (hd0,0)
setup (hd0)
rootnoverify (hd0,0)
chainloader +1
 
Old 04-25-2006, 06:23 AM   #3
ERBRMN
Member
 
Registered: Mar 2005
Location: Japan
Distribution: TurboLinux, RHEL, SUSE
Posts: 96

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Lenard
Well it sounds like you forgot to tell us something. Like how you installed Windows 2000 (japanese) on the second hard drive. Did you perhaps swap the hard drivers in the BIOS??

If yes, then in grub remap the drivers, try something like;

title Windows2000_jp
map (hd0,0) (hd0,1)
map (hd0,1) (hd0,0)
setup (hd0)
rootnoverify (hd0,0)
chainloader +1
Thank u, Lenard

I did not do anythink on BIOS, BIOS detected the second hard disk, auto.

-----------

As for Seconde hard disk, I onle connected the hard disk which is installed windows 2000 before.
It means, I used second hard disk after flug off the primary hard disk.

As for primary hard disk, firsth I installed Windows XP and then Linux. Boot is on MBR.
 
Old 04-25-2006, 09:07 AM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
As I understandthis, you removed the primary hard drive with both Windows XP and Linux installed. Attched a different hard drive and installed Windows 2000 (japanese). Then added the first hard drive back into the system.

Does grub know about the second hard drive with Windows 2000 (japanese)??? Check the /boot/grub/device.map file. You should see something like;

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

If not then boot into Linux and as root from the console or xterm session type something like; grub-install --recheck /dev/hda (adjust to your hardware ie sda).
Then check the device,map file, if both hard drives are now known then try editing the grub.conf file adding the example I already provided.
 
Old 04-25-2006, 09:26 PM   #5
ERBRMN
Member
 
Registered: Mar 2005
Location: Japan
Distribution: TurboLinux, RHEL, SUSE
Posts: 96

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Lenard
As I understandthis, you removed the primary hard drive with both Windows XP and Linux installed. Attched a different hard drive and installed Windows 2000 (japanese). Then added the first hard drive back into the system.

Does grub know about the second hard drive with Windows 2000 (japanese)??? Check the /boot/grub/device.map file. You should see something like;

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

If not then boot into Linux and as root from the console or xterm session type something like; grub-install --recheck /dev/hda (adjust to your hardware ie sda).
Then check the device,map file, if both hard drives are now known then try editing the grub.conf file adding the example I already provided.
Thk u, Lenard

You understood right. Offcourse there is not any information about second hard disk on GRUB. I undertand that I need to change device map file.

Today, I will try it after my 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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure GRUB for Windows and Linux rwalkerphl Linux - Newbie 13 11-08-2004 12:15 AM
SuSE 9.1 and Windows Xp refuse to live in harmony: error loading windows through GRUB sanctumtacete Linux - Newbie 3 10-19-2004 08:47 AM
Help Windows and Linux (GRUB) vaneeri Red Hat 4 10-08-2004 02:56 AM
Grub, Windows 2k and Linux kaner Linux - Software 8 08-31-2003 03:47 PM
Boot windows 98,windows XP and linux by GRUB Swift&Smart Linux - General 6 02-22-2003 10:11 AM


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