zsfhaergta
Programmer
Hi,
I am trying to set up a dual boot system with Red Hat EL 5.2 and Windows XP Pro. I have a separate disk for each OS. Grub is on the same disk as redhat(the primary disk). I know that Windows is installed correctly because if I force a load on the secondary disk Windows loads correctly. However when I go through grub it doesn't seem to recognize the 2nd disk. I get:
rootnoverify (hd1,0)
chainloader +1
Which are simply instructions from the grub.conf file telling the system to boot from hd1, which points to /dev/hdb. How do I get grub to recognize /dev/hdb as the drive to load for Windows?
Here is my /boot/grub/device.map:
# this device map was generated by anaconda
(hd0) /dev/hda
(hd1) /dev/hdb
Here is my /boot/grub/grub.conf:
# 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/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-92.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-92.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.18-92.el5.img
title Microsoft Windows XP
rootnoverify (hd1,0)
chainloader +1
Here is my fdisk -l:
Disk /dev/hda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 25509 204796620 83 Linux
/dev/hda3 25510 38913 107667630 8e Linux LVM
Disk /dev/hdb: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 4997 40138371 7 HPFS/NTFS
Any help would be great. Thanks!
I am trying to set up a dual boot system with Red Hat EL 5.2 and Windows XP Pro. I have a separate disk for each OS. Grub is on the same disk as redhat(the primary disk). I know that Windows is installed correctly because if I force a load on the secondary disk Windows loads correctly. However when I go through grub it doesn't seem to recognize the 2nd disk. I get:
rootnoverify (hd1,0)
chainloader +1
Which are simply instructions from the grub.conf file telling the system to boot from hd1, which points to /dev/hdb. How do I get grub to recognize /dev/hdb as the drive to load for Windows?
Here is my /boot/grub/device.map:
# this device map was generated by anaconda
(hd0) /dev/hda
(hd1) /dev/hdb
Here is my /boot/grub/grub.conf:
# 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/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-92.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-92.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.18-92.el5.img
title Microsoft Windows XP
rootnoverify (hd1,0)
chainloader +1
Here is my fdisk -l:
Disk /dev/hda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 25509 204796620 83 Linux
/dev/hda3 25510 38913 107667630 8e Linux LVM
Disk /dev/hdb: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 4997 40138371 7 HPFS/NTFS
Any help would be great. Thanks!