Uninstalling Ubuntu from Dual Boot (with Windows 7)

(from http://blog.sudobits.com/2011/07/30/how-to-uninstall-ubuntu-1104-1010-1004/)

You might be using Ubuntu as a dual boot along with Windows 7. Now, the the next step depends on how you had installed Ubuntu along with Windows 7. The most simple technique is to install Ubuntu using Wubi Installer, which installs Ubuntu on Windows as a program. If that’s the case, then you can uninstall Ubuntu just like any other program from Windows 7 or Vista. It’s quite simple.

On the other hand you might have installed Ubuntu on the other partition in dual boot mode. So now, if you delete or format the ubuntu partition then the windows boot-loader will no longer be available because when you installed Ubuntu it has replaced it with GRUB. So you won’t be able to boot into your Windows OS after deleting or formatting the Ubuntu partition.

step 1 : Insert the Windows 7/vista/xp DVD and restart your computer.

step 2 : Go to recovery windows/console and execute the following command(s) :

bootrec.exe /fixmbr
bootrec.exe /fixboot

to overwrite the MBR (Master Boot Record).

step 3 : Now, remove the installation disc, restart the computer and format ubuntu partition (ext3/4 file system) to a windows file system such as NTFS or FAT.

step 4 : That’s All. You are Done!