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

I've deleted my Ubuntu 9.10 Linux partition, but when I'm starting Windows, I get a "grub error".

What should I do to run Windows XP and Windows 7 normally?

share|improve this question
Please provide more information: What is the exact error you get? What is your partition layout? What other OS do you have installed? If you have both Win7 and WinXP on the box, which bootloader do you want to use? – sleske Jul 25 '10 at 19:40

When you deleted the linux partition, rest of grub( stage 2 & boot menu) laying in the deleted partition is destroyed resulting in this grub error. What you got to do is remove the grub totally & make a new MBR.

Boot from win 7 installation disc, go to system repair & enter

bootsect /nt60 ALL

More on win7 procedure here

or You could boot from the winxp cd & enter this command in recovery console :


Or use linux testdisk utility & choose Write MBR option.

share|improve this answer
Booting from the winxp cd will allow the OP to boot XP, but it will NOT boot win7 because the XP bootloader does not recognize win7. – Velociraptors Jul 25 '10 at 21:08
Am not sure, but I think the MBR code is just to load boot sector of the active boot partition. Thats why generic testdisk MBR could also fix it. Correct me if I am wrong. – nahar Jul 26 '10 at 8:24

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.