I have a problem booting windows xp using grub

Asked by Devan

I have two hard drives installed on my pc...A 40 gig(slave) and 20 gig(master) respectfully.My 40 gig has windows XP and the 20 gig ubuntu 9.04.When I boot my pc up, the grub loader shows windows xp but when i select it the menu disappears then reappears and doesnt load xp but i can boot ubuntu just fine.if i disconnect my 20 gig hard drive i can boot xp fine.Not sure if i installed ubuntu correctly as i am a 1st time user.Please help

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub Edit question
Assignee:
No assignee Edit question
Solved by:
Brandt B
Solved:
Last query:
Last reply:
Revision history for this message
Brandt B (benedikt-benbra) said :
#1

Hello

Sounds like a miss configuration to me (Probably not your fault, but of the installer itself^^). In order to analyze the problem, it would be very useful, if you could post your menu.lst. You can find it at /boot/grub/menu.lst.

Revision history for this message
Brandt B (benedikt-benbra) said :
#2

Upps wrong button, sorry ;-)

Revision history for this message
Devan (devan-xplode) said :
#3

Ah thanks man.to be honest didnt expect such a speedy reply. Was'nt sure if you wanted the whole
file but this starts from "## ## End Default Options ##" part:

title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid 274dc90d-0383-4579-95d7-d2446a1464a6
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=274dc90d-0383-4579-95d7-d2446a1464a6 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet

title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid 274dc90d-0383-4579-95d7-d2446a1464a6
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=274dc90d-0383-4579-95d7-d2446a1464a6 ro single
initrd /boot/initrd.img-2.6.28-11-generic

title Ubuntu 9.04, memtest86+
uuid 274dc90d-0383-4579-95d7-d2446a1464a6
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
rootnoverify (hd1,0)
savedefault
makeactive
chainloader +1

------------------------------------------------------------------------------------------------------
Again thanks for having a look.I know most guys would be too busy to answer
Hope you got a solution for me

Revision history for this message
Best Brandt B (benedikt-benbra) said :
#4

hmm, unfortunately(;-)) your menu.lst seems to be correct. Could you please also post the output of sudo fdisk -l? This will help judging whether your partition table matches the entries in menu.lst.
However I personally believe that they will match. I don`t know in which order you installed windows and ubuntu on the harddrives, but considering your problem description I think the map-trick should solve the problem. This is necessary if the windows bootloader believes to be on the first harddisk, while being on the second. (for example because it was installed, when the second harddrive wasn`t in your computer, or if you rejumpert them). You can then simulate windows to be on the first using the map-trick. Just change your last part of menu.lst to

---------------------------------------------------
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
rootnoverify (hd1,0)
map (hd1) (hd0)
map (hd0) (hd1)
savedefault
chainloader +1
------------------------------------------

This should do the trick. If it doesn`t then please provide the output of sudo fdisk -l and also the contents of the file /boot/grub/device.map

Have fun with a working dualboot (hopefully^^)

Revision history for this message
Devan (devan-xplode) said :
#5

Thanks b1, that solved my question.

Revision history for this message
Devan (devan-xplode) said :
#6

Thanks i tried your map trick and it worked.Thanks alot for the help i really do appreciate it