Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

Possible Duplicate:
How do I remove ubuntu from a windows 7 machine without the recovery disk?

I have a problem. I want my Windows 7 back. I installed ubuntu from a USB flash-drive. And it's dualbooting with Windows 7.

I don't know how to delete Ubuntu 12.04 LTS from my computer for free?

Please help me......

share|improve this question

marked as duplicate by belacqua, Jorge Castro, Mik, Tom Brossman, devav2 Oct 31 '12 at 18:29

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

You need: A Windows Installation or Recovery Medium

This restores the MasterBootRecord. Grub will be gone (or at least not useable anymore) only Windows boots up.

  • boot from that Windows Disk
  • select "Repair my Computer"
  • select your Windows Installation
  • select "Command Prompt"
  • now execute following command each at a time:

    bootrec.exe /FixBoot

    bootrec.exe /FixMbr

  • reboot

To remove ubuntu (this steps may be a bit fuzzy, since I do not have win7 machine right in front of me right now):

  • Boot to Windows
  • click "start" and search for "Disk Management"
  • start Disk Management
  • now you should see an overview of your Harddrives and partitions.
  • determine the ubuntu partitions (usually, the ones with "unknown" file system)
  • delete those partitions
  • finally append the freed disk space to a windows partition (if wished)

you should be good now.

Good Luck.

share|improve this answer

To allow your computer to boot normally rather than returning to the GRUB menu, follow this:

In short: insert Windows installation disk, select language and use the repair feature using a system image that you created earlier. The link provides more details + images. Any time that I have done this it has automatically fixed the Windows bootloader. However, it does have the manual fix for it, if necessary.

Get something to edit partitions, I just use GParted. Delete all of the Linux partitions. The ext3/ext4, swap, etc. and leave NTFS partitions for Windows. It may show "unknown" partitions instead of ext/swap partitions if you are doing this from Windows.

If you installed Ubuntu from a flash drive and set it to dual boot, you must have selected it from the menu while installing. Fortunately, deleting it is pretty easy. It's mostly just right click -> delete work from GParted.

Note: You will need to put GParted on your USB or burn it to a CD to edit it since you can't delete a partition that you're working on.

Optionally, you can try "Parted Magic" which is for both Windows and Linux, this way you will not need to use your USB or CD. Just install it to Windows. I've never used this program but I have heard good things about it and it should be relatively simple to using GParted.

share|improve this answer
Downvote: This will make his computer unbootable. Grub can't boot if it can't access to the Ubuntu partition. At least you should give him instructions to reinstall the Windows boot loader. – Javier Rivera Oct 30 '12 at 16:10
Ah, right. Sometimes I assume things go without say when I miss so many hours of sleep. :/ Anyways, I updated details and included link so someone didn't miss that step and think they messed up their Windows partition or something. Thanks for reminding me. – Enigmatic Oct 30 '12 at 16:49

I assume you install Ubuntu using Wubi, which installs Ubuntu on your Windows 7. To uninstall it, go to Remove/Uninstall Programs in Control Panel, select Ubuntu and click Uninstall.

share|improve this answer

You can use a little tool called OS-Uninstaller:

enter image description here

share|improve this answer

Grab the bootable usb.
Boot from it.
Run gparted.
Destroy the Ubuntu partitions and merge them with your Windows partition.
After this is done, your computer may be unbootable.
Grab a Windows 7 cd.
Boot it, run the windows repair option.
This will restore the Windows boot and you can use Windows again.

Have a nice day.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.