Remove grub and restore WinXP bootpage

8,760

Solution 1

I've always used a little free utility called MbrFix for this.

For Windows XP (assuming standard primary hdd install) the command you'll want is:

mbrfix /drive 0 fixmbr /yes

Solution 2

I found the answer tonight. I did restore windows MBR but what it does is to load the boot loader in the first sector of the only active partition on the Primary Master hard drive. What happened is that during the Ubuntu installation, the installer somehow changed the Windows partition (sda1) to be not active, only the Ubuntu partition (sda2) was active. Therefore, Windows MBR loads grub2 installed in the first sector of the Ubuntu partition instead of Windows. By making sda1 active again, the problem was solved.

Solution 3

You should boot off the windows XP install disk and log into the recovery console by pressing R:

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/recovery_run_console.mspx?mfr=true

Then you should use the fixmbr command.

www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/bootcons_fixmbr.mspx?mfr=true

I hope that helps. If you get stuck, try googling grub xp fixmbr or grub xp fixboot. I don't think you should need to use the fixboot command.

Share:
8,760

Related videos on Youtube

starcorn
Author by

starcorn

Updated on September 17, 2022

Comments

  • starcorn
    starcorn over 1 year

    Is there any way to remove grub and restore WinXP's bootpage?

    It is on netbook so I have no possibility to boot any CD, which didn't come with this netbook anyway.

    BTW, does deleting the Ubuntu partition also delete grub2? Because I was thinking maybe I just could set the default OS to be XP, and then set the timeout to 0, and or hide grub on load.

  • starcorn
    starcorn over 13 years
    I'm not sure what to call it either. But what I mean I don't want the grub, I intend to remove ubuntu from the laptop and only run winxp. So I don't want the grub page to load up
  • starcorn
    starcorn over 13 years
    i didn't knew what that does, but anyway it killed all my partition. At start up now I get "invalid partition table"....
  • starcorn
    starcorn over 13 years
    fixed it by fixing GRUB
  • Colin R. Turner
    Colin R. Turner over 3 years
    Where do I run the command: 'mbrfix /drive 0 fixmbr /yes' ? On XP? On Ubuntu? I downloaded the program but don't know where to run this command. Thanks