Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|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
up vote 2 down vote accepted

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

share|improve this answer

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
share|improve this answer

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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