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.

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
add comment

2 Answers

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 –  solomongaby Dec 29 '09 at 12:32
add comment
  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
add comment

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.