Ubuntu dual-boot uninstall

Asked by S D

I set up a dual boot with ubuntu alongside windows.

I'm now trying to get rid of ubuntu and keep windows. I have successfully deleted the ubuntu partition, but when I start my computer neither loads because the GRUB is no longer there. Is there a way to restore the grub without the windows cd? Am I doing this the right way to begin with?

Also, I may be able to find my windows cd, but I'm really not sure. I bought the computer from a friend with windows already on it, but my friend may still have the CD. It would be nice to figure it out w/out the cd just in case.

THANKS FOR ANY HELP YOU CAN PROVIDE ME WITH!!!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Solved by:
S D
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You need your Windows install CD to reinstate the NTLDR.

For XP:
Boot to the CD. Press ENTER then press R. You can now run:

fixmbr

then

fixboot

Your system will now boot. If you do not have an XP CD and use XP then you can use supergrub which wil give you a grub bootloader to boot windows with.

If you use Vista / Win7 then the idea is basically the same but I have no idea as I have never used them. I'm sure there will be guides online on how to restore the Windows botloader for those versions.

Revision history for this message
S D (sdooleysd) said :
#2

Thanks! I'll try this and see if it works. For the record it's running vista, so I'll see how that goes!

Revision history for this message
Sam_ (and-sam) said :
#3
Revision history for this message
S D (sdooleysd) said :
#4

SOLVED!

I sort of used both actionparsnip and sam's answer, and came up with this.

Because I don't have my windows CD (my friend had no idea where it was) I found the ubuntu partition and deleted it. Now when I booted my PC it gave me a grub error. To fix this I booted my supergrub disk and fixed the windows boot.

Now when I boot it brings me straight to the windows boot manager. And I'm not sure if this will apply to all computers, but when the boot manager showed windows and ubuntu, but selecting ubuntu just gives an error message, and it lets you go back and select windows.

I didn't really care about this, but if you want to get rid of this the easy way is to use EasyBCD and rename ubuntu to just a bunch of spaces, or change the countdown to only a few seconds. I did this just so I didn't have to wait or select windows. If you're not lazy like me though, it doesn't matter. For help with EasyBCD see http://www.sevenforums.com/tutorials/5110-dual-boot-change-os-name-windows-boot-manager.html and scroll down to method 2. 1 works, but it's not great for people who prefer a user interface.

And for those of you who don't want to buy any software, remember that all this stuff is open source and totally free!

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

You got the gold and thats the important bit
=D
Thanks for sharing too. Hopefully your solution will help others

Peace