I am using Ubuntu 10.04 and Windows 7 on the same computer. I want to uninstall Ubuntu and just use Windows 7. I'm afraid if I uninstall Ubuntu, it will remove Windows 7 as well.
How can I uninstall Ubuntu without affecting Windows 7?
A quick solution is to insert at boot your USB stick (or CD) with Windows on it and make a
"repair startup", this way, grub will be substituted by the windows boot, then use a tool like
Partition wizard to delete all linux partitions.
That should do it. Hope it helps.
Remember Always to have a decent Backup!!
Also you could even delete your linux partitions using the windows partitions management
I'm guessing your using GRUB to boot into Windows as well, in which case you will need to make sure you have a Windows CD/DVD on hand. As long as Windows is the first installation(this is the most common) you should have no issues.
First off any activity such as this is risky, make sure you have a good backup even if you do everything properly a chance of an issue could arise!
When in Windows right click on Computer and click on manage. You should then go to Disk Management. You will see an Unknown partition type, you can delete and format this. THIS WILL REMOVE ALL LINUX DATA!!!!
Now you have also killed your boot loader so you will need to repair it.
Instructions can be found at this howtogeek.com page.