LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Help of GRUB, How to Linux, Windows XP and Windows 200 (https://www.linuxquestions.org/questions/linux-general-1/help-of-grub-how-to-linux-windows-xp-and-windows-200-a-437740/)

ERBRMN 04-22-2006 10:31 AM

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?
.

Lenard 04-22-2006 12:12 PM

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

ERBRMN 04-25-2006 05:23 AM

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.

Lenard 04-25-2006 08:07 AM

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.

ERBRMN 04-25-2006 08:26 PM

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.


All times are GMT -5. The time now is 08:30 AM.