I'm new to Ubuntu 12.04. I installed Windows XP (sp3) first, then Ubuntu alongside. Ubuntu boots well but when I choose Win XP from the boot menu it goes to a black screen and then returns to the boot menu

I ran boot-repair and got this info summary.

But the problem was not fixed.

I tried to run the fixmbr command to recover the boot record. I inserted Windows XP CD and booted from CD, but it doesn't detect my Windows installation.

Recovery Console won't load to press R for repair boot sector

closed as off-topic by Eric Carvalho, ravery, Zanna, Elder Geek, dessert Dec 2 '17 at 21:40

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This describes a problem that can't be reproduced, that seemingly went away on its own or was only relevant to a very specific period of time. It's off-topic as it's unlikely to help future readers." – Eric Carvalho, ravery, dessert
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Because of the "corrupted" PBR, Windows repairs will not work. Windows has to see a NTFS partition and with grub installed into the PBR it is not a valid NTFS partition. If you use testdisk to restore a default NTFS, only then will Windows repairs work. Better just to restore backup if backup is valid. – oldfred Jan 2 '14 at 17:33
  • 2
    Possible duplicate of Unable to boot into Windows after installing Ubuntu, how to fix? – Zanna Dec 2 '17 at 8:23

You installed grub2's boot loader to the PBR or partition boot sector of Windows. Windows has to have its boot code in its NTFS partition.

Fix for most, a few have other issues, better than windows fix in many cases as it also fixes other parameters:

This has instructions on using testdisk to repair the install of grub to the boot sector for windows from Ubuntu or Linux LiveCD.

[HowTo] Repair the bootsector of a Windows partition - YannBuntu


You want to get to this screen:




Finally & unfortunatly delete all partition and do same do as do first, but it works! first install windows and next install ubuntu 11 and dual boot now work! the only difference was this: windows xp first copy files next restart and install windows. when it copy and reboot to continue installation and sure boot record works, i prevent to continue and install win. I reboot from cd and install ubuntu 11 alongside and after that complete installation of windows xp. now both OS boot well.

Not the answer you're looking for? Browse other questions tagged or ask your own question.