2

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

2
  • Do you want a dual boot system? or you want only windows xp? Sep 22, 2010 at 11:51
  • YES, i want to install windows boot record ant then by manual install GRUB, which supports windows boot record.
    – Vytas P.
    Sep 22, 2010 at 11:55

3 Answers 3

2

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

2

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
0

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .