Uninstall dual-boot Ubuntu

I just removed Ubuntu today from my laptop.  I was dual-booting with Windows 7, and besides the fact that I needed to free up some hard drive space, I figure I can always VM linux later if I want it like I do on one of my other computers.

Uninstalling an OS is always a bit nerve wracking, so here are the steps I took which worked well for me.

  1. Backup everything important!
  2. Download and burn a Live CD of GParted:
  3. Go to your start menu in Windows and type in “Create System Restore Disk”.  Click that and make another CD that has a restore disk for your version of Windows.
  4. Reboot your computer with the GParted CD in your drive.
  5. When GParted loads, delete the linux partition you’ve created.  It should be easy to identify because the filesystem should be “ext3” rather than “ntfs” that Windows uses.
  6. Expand your existing ntfs partition for Windows to use the space that your linux partition previously occupied.
  7. Click Apply and let GParted do its thing.
  8. Restart your computer once this is done.  You’ll probably get an error message when your computer tries to boot because it can’t find the linux partition anymore, and therefore won’t boot.
  9. Put your Windows recovery disk in the drive and restart again, booting from the recovery CD.
  10. When this loads, select the Windows 7 operating system shown and click Next
  11. Select “Command Prompt”
  12. Type: bootrec.exe /FixMbr
  13. Remove the Windows Recovery CD and restart

Everything should load perfectly again.  What you’ve done is rewritten your master boot record to get rid of any non Windows information.  That prevents it from looking for Linux anymore and just boots right into Windows.

Hope this helps!