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 have Windows XP installed in dualboot with Ubuntu, how can i remove the ubuntu installation and go back to only XP

share|improve this question
up vote 2 down vote accepted

If you've installed Ubuntu Linux from within Windows using Wubi, you can just remove "Ubuntu" from Add/Remove Programs.

However, if your linux installation is on a different hard disk partition, you need to 1. use a partitioning software to remove the linux partition(s), and 2. restore the Windows boot loader.

  1. Windows has Disk Manager somewhere in the Control Panel to remove partitions.

  2. At least with Windows XP, you can restore the Windows boot loader by running the command fdisk /mbr, or from a Rescue CD with the commands fixboot and fixmbr.

Note that the linux boot loader depends on the linux parition, so if you remove the linux partition without touching the boot loader, you won't be able to boot your computer without a rescue CD.

share|improve this answer
thanks for the help – Gabriel Solomon Dec 29 '09 at 12:32
  1. Boot up in Windows xp.

  2. Start>>control panel>>administrative tools>>computer management

  3. Go to disk management under “storage”

  4. Select your hard disk and then the linux partition.

  5. Delete the linux partition this will delete linux and grub.

  6. Now reboot your laptop with windows 98 start up disc or floppy and type the command “fixmbr” .

  7. Above command will repair ur bootloader and rewrite ntldr which will replace corrupted grub.

8.Thats it done now boot your laptop or desktop normally it will be booted by default in windows xp.

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.