Firstly I installed Windows XP, secondly Linux Ubuntu. Grub erased Windows boot record. How to restore Windows XP boot record? Which command to use?

link|improve this question

Do you want a dual boot system? or you want only windows xp? – Casual Coder Sep 22 '10 at 11:51
YES, i want to install windows boot record ant then by manual install GRUB, which supports windows boot record. – alex Sep 22 '10 at 11:55
feedback

3 Answers

up vote 2 down vote accepted

Boot with your windows CD into the recovery console. Issue fixmbr. Reboot. There you go.

link|improve this answer
feedback

Under Ubuntu there are two tools (that I know about) to install windows master boot record. First is mbr. You can install it with sudo apt-get install mbr . The second and in my opinion superior is ms-sys. But you need to compile it. Simply download, unpack, and install with sudo make install (reading README wouldn't hurt also). Then type ms-sys --help to choose your mbr type.

For Windows XP it is

sudo ms-sys --mbr /dev/your_device

and for Windows 7:

 sudo ms-sys --mbr7 /dev/your_device
link|improve this answer
feedback

You can simply use a chainload without installing the windows first stage boot loader into the mbr. Take a look at this for further information.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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