grub doesnt load my windows partition

Asked by achapp

Dear ,
         This is with regarding dual boot windows and ubuntu . I was using ubuntu 8.04 and recently I loaded windows XP 64 on my second hard disk .Below is my fdisk -l output for your reference

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc607ac59

   Device Boot Start End Blocks Id System
/dev/sda1 * 2 3652 29326657+ f W95 Ext'd (LBA)
/dev/sda2 3653 11497 63011840 7 HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3 11497 19458 63941632 7 HPFS/NTFS
Partition 3 does not end on cylinder boundary.
/dev/sda5 2 3652 29326626 7 HPFS/NTFS

Disk /dev/sdb: 80.0 GB, 80060424192 bytes
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf9d2f9d2

   Device Boot Start End Blocks Id System
/dev/sdb1 1 1743 14000616 83 Linux
/dev/sdb2 1744 1867 996030 82 Linux swap / Solaris
/dev/sdb3 1868 5602 30001387+ f W95 Ext'd (LBA)
/dev/sdb4 * 5603 9733 33182257+ 7 HPFS/NTFS
/dev/sdb5 1868 5602 30001356 83 Linux

Disk /dev/sdc: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe90ded1a

   Device Boot Start End Blocks Id System
/dev/sdc1 2 4865 39070080 f W95 Ext'd (LBA)
/dev/sdc5 2 4865 39069744 7 HPFS/NTFS

My windows partition is on sda2 and ubuntu on sdb1. The MBR is on sda1. The boot .ini file for windows is on sdb4 , where there was a previous windows installation . Its the C drive in windows .Hope I didnt confuse you . I will attach my menu.lst entry below

default 0
timeout 10
color light-cyan/light-gray white/black

title Chainload into GRUB 2
root (hd1,0)
kernel /boot/grub/core.img
savedefault

title Debian GNU/Linux, kernel 2.6.24-19-generic
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=ffb47c62-5d01-44ca-b2ec-23df0773d8f8 ro quiet splash
initrd /boot/initrd.img-2.6.24-19-generic
savedefault

title Debian GNU/Linux, kernel 2.6.24-19-generic (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=ffb47c62-5d01-44ca-b2ec-23df0773d8f8 ro single
initrd /boot/initrd.img-2.6.24-19-generic
savedefault

title Debian GNU/Linux, kernel 2.6.24-18-generic
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-18-generic root=UUID=ffb47c62-5d01-44ca-b2ec-23df0773d8f8 ro quiet splash
initrd /boot/initrd.img-2.6.24-18-generic
savedefault

title Debian GNU/Linux, kernel 2.6.24-18-generic (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-18-generic root=UUID=ffb47c62-5d01-44ca-b2ec-23df0773d8f8 ro single
initrd /boot/initrd.img-2.6.24-18-generic
savedefault

title Debian GNU/Linux, kernel 2.6.24-16-generic
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=ffb47c62-5d01-44ca-b2ec-23df0773d8f8 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
savedefault

title Debian GNU/Linux, kernel 2.6.24-16-generic (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=ffb47c62-5d01-44ca-b2ec-23df0773d8f8 ro single
initrd /boot/initrd.img-2.6.24-16-generic
savedefault

title Debian GNU/Linux, kernel memtest86+
root
kernel /boot/memtest86+.bin

title Microsoft Windows XP
root (hd1,3)
chainloader +1
savedefault
makeactive

           What changes should I make to the last few lines so that I could boot into my windows . Also I am using grub2 . what are the advantages compared to grub .

Thanking you
Achapp

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub Edit question
Assignee:
No assignee Edit question
Solved by:
Wyatt Smith
Solved:
Last query:
Last reply:
Revision history for this message
Best Wyatt Smith (wyatt-smith) said :
#1

Windows XP requires that it be install on your first hard drive, not your second hard drive. Grub has a workaround for this to fool windows into thinking that it is the first hard drive.

Try editing you menu.lst

title Microsoft Windows XP
rootnoverify (hd1)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1

Revision history for this message
achapp (achapp) said :
#2

Thanks WWSmith36, that solved my question.