http://www.experts-exchange.com/Operating_Systems/Linux/Linux_Setup/Q_20736369.html
Hello,
My guess is that this question has been asked hundreds of times and will thus be an easy 250 points for someone :) Enjoy.
Here is my hard drive configuration (view in monotype font for better readability)
===========================================================================================================
Partition Information for Disk 1: 28,623.6 Megabytes
Volume PartType Status Size MB PartSect # StartSect TotalSects
===========================================================================================================
Linux Ext3 Pri,Boot 101.9 0 1 63 208,782
Linux Ext3 Pri 20,528.4 0 2 208,845 42,042,105
*:SWAPSPACE2 Linux Swap Pri 1,992.4 0 3 42,250,950 4,080,510
ExtendedX Pri 6,000.8 0 0 46,331,460 12,289,725
Info: MBR Partition Table not in sequential order.
EPBR Log 6,000.8 None -- 46,331,460 12,289,725
E:LINUX CDS FAT32 Log 6,000.8 46,331,460 0 46,331,523 12,289,662
===========================================================================================================
Partition Information for Disk 2: 43,974.8 Megabytes
Volume PartType Status Size MB PartSect # StartSect TotalSects
===========================================================================================================
Unallocated Pri 7.8 None -- 63 16,002
ExtendedX Pri,Boot 43,967.0 0 0 16,065 90,044,325
EPBR Log 8,001.1 None -- 16,065 16,386,300
F: NTFS Log 8,001.1 16,065 0 16,128 16,386,237
Unallocated Log 35,965.8 None -- 16,402,365 73,658,025
===========================================================================================================
Partition Information for Disk 3: 190,779.7 Megabytes
Volume PartType Status Size MB PartSect # StartSect TotalSects
===========================================================================================================
C: NTFS Pri,Boot 49,999.1 0 0 63 102,398,247
ExtendedX Pri 140,780.5 0 1 102,398,310 288,318,555
EPBR Log 140,780.5 None -- 102,398,310 288,318,555
D: NTFS Log 140,780.5 102,398,310 0 102,398,373 288,318,492
Additional information:
Disk 1 (30gb) is connected to the Primary IDE controller and set to Master
Disk 2 (45gb) is connected to the Primary IDE controller and set to Slave
Disk 3 (200gb) is connected to a separate PCI controller (Promise Ultra100 TX2). Disk3 is the only device on this controller and is configured as "Single"
Windows XP is installed on Disk3.
Disk 1 has a FAT32 partition for holding Linux setup CD images, and Disk1 holds the Linux installation itself.
When I setup Linux, I had it install GRUB to the MBR of disk1. I reconfigured the system BIOS to boot from disk1 instead of disk3. Thus, when the computer boots, I'm presented with the GRUB menu from which I can choose which OS to boot. Unfortunately, if I choose "Windows" it does not boot. It spits out:
"Booting Windows
rootnoverify (hd0, 4)
chainloader +1"
and then sits there.
Linux boots fine from this menu.
I am still able to get into Windows by changing the BIOS setting to boot from disk3 instead of disk1. This is cumbersome, and is what this question is about:
How do I reconfigure GRUB so that it boots windows properly on this system?
Here is the /boot/grub/grub.conf file:
==============
# 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,1)
# kernel /vmlinuz-version ro root=/dev/hda3
# initrd /initrd-version.img
#boot=/dev/hda
default=2
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Linux (2.4.20-8smp)
root (hd0,1)
kernel /vmlinuz-2.4.20-8smp ro root=LABEL=/ hdd=ide-scsi
initrd /initrd-2.4.20-8smp.img
title Linux-up (2.4.20-8)
root (hd0,1)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdd=ide-scsi
initrd /initrd-2.4.20-8.img
title Windows
rootnoverify (hd0,4)
chainloader +1
==============
Hello,
My guess is that this question has been asked hundreds of times and will thus be an easy 250 points for someone :) Enjoy.
Here is my hard drive configuration (view in monotype font for better readability)
===========================================================================================================
Partition Information for Disk 1: 28,623.6 Megabytes
Volume PartType Status Size MB PartSect # StartSect TotalSects
===========================================================================================================
Linux Ext3 Pri,Boot 101.9 0 1 63 208,782
Linux Ext3 Pri 20,528.4 0 2 208,845 42,042,105
*:SWAPSPACE2 Linux Swap Pri 1,992.4 0 3 42,250,950 4,080,510
ExtendedX Pri 6,000.8 0 0 46,331,460 12,289,725
Info: MBR Partition Table not in sequential order.
EPBR Log 6,000.8 None -- 46,331,460 12,289,725
E:LINUX CDS FAT32 Log 6,000.8 46,331,460 0 46,331,523 12,289,662
===========================================================================================================
Partition Information for Disk 2: 43,974.8 Megabytes
Volume PartType Status Size MB PartSect # StartSect TotalSects
===========================================================================================================
Unallocated Pri 7.8 None -- 63 16,002
ExtendedX Pri,Boot 43,967.0 0 0 16,065 90,044,325
EPBR Log 8,001.1 None -- 16,065 16,386,300
F: NTFS Log 8,001.1 16,065 0 16,128 16,386,237
Unallocated Log 35,965.8 None -- 16,402,365 73,658,025
===========================================================================================================
Partition Information for Disk 3: 190,779.7 Megabytes
Volume PartType Status Size MB PartSect # StartSect TotalSects
===========================================================================================================
C: NTFS Pri,Boot 49,999.1 0 0 63 102,398,247
ExtendedX Pri 140,780.5 0 1 102,398,310 288,318,555
EPBR Log 140,780.5 None -- 102,398,310 288,318,555
D: NTFS Log 140,780.5 102,398,310 0 102,398,373 288,318,492
Additional information:
Disk 1 (30gb) is connected to the Primary IDE controller and set to Master
Disk 2 (45gb) is connected to the Primary IDE controller and set to Slave
Disk 3 (200gb) is connected to a separate PCI controller (Promise Ultra100 TX2). Disk3 is the only device on this controller and is configured as "Single"
Windows XP is installed on Disk3.
Disk 1 has a FAT32 partition for holding Linux setup CD images, and Disk1 holds the Linux installation itself.
When I setup Linux, I had it install GRUB to the MBR of disk1. I reconfigured the system BIOS to boot from disk1 instead of disk3. Thus, when the computer boots, I'm presented with the GRUB menu from which I can choose which OS to boot. Unfortunately, if I choose "Windows" it does not boot. It spits out:
"Booting Windows
rootnoverify (hd0, 4)
chainloader +1"
and then sits there.
Linux boots fine from this menu.
I am still able to get into Windows by changing the BIOS setting to boot from disk3 instead of disk1. This is cumbersome, and is what this question is about:
How do I reconfigure GRUB so that it boots windows properly on this system?
Here is the /boot/grub/grub.conf file:
==============
# 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,1)
# kernel /vmlinuz-version ro root=/dev/hda3
# initrd /initrd-version.img
#boot=/dev/hda
default=2
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Linux (2.4.20-8smp)
root (hd0,1)
kernel /vmlinuz-2.4.20-8smp ro root=LABEL=/ hdd=ide-scsi
initrd /initrd-2.4.20-8smp.img
title Linux-up (2.4.20-8)
root (hd0,1)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdd=ide-scsi
initrd /initrd-2.4.20-8.img
title Windows
rootnoverify (hd0,4)
chainloader +1
==============