Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

5 Answers 5

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
share|improve this answer
    
i didn't knew what that does, but anyway it killed all my partition. At start up now I get "invalid partition table".... –  starcorn Jan 19 '11 at 16:57
    
fixed it by fixing GRUB –  starcorn Jan 19 '11 at 17:17

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.

share|improve this answer

Installing the mbr package and running it to replace the grub code in the master boot record with as standard record will do it. This will disable access to grub and leave you with only Windows.

Ubuntu now has a package to install onto a USB key. This can be used to help recover a broken system, or for occational Linux usage. You may want to build and test a key before replacing the mbr record.

share|improve this answer

You could set grub to wait 0 seconds and automatically pick Windows, to correct this you'd need to edit the file from Windows. I'm not sure what you mean by bootpage, Windows does exactly the same thing after any boot loader.

share|improve this answer
    
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 Jan 17 '11 at 23:45

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

Your Answer

 
discard

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.