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.
- Backup everything important!
- Download and burn a Live CD of GParted: http://sourceforge.net/projects/gparted/files/gparted/
- 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.
- Reboot your computer with the GParted CD in your drive.
- 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.
- Expand your existing ntfs partition for Windows to use the space that your linux partition previously occupied.
- Click Apply and let GParted do its thing.
- 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.
- Put your Windows recovery disk in the drive and restart again, booting from the recovery CD.
- When this loads, select the Windows 7 operating system shown and click Next
- Select “Command Prompt”
- 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!