Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This is my situation:

I Installed Ubuntu without a CD (using A USB)
Dual boot installation (Windows 7+Ubuntu)
I did not like the installation and decided to boot into Windows and delete the Linux partitions, but I forgot to fix the mbr from within Windows.

Now, when I boot, I am stuck in the GRUB rescue limbo.

How can I boot into Windows from GRUB rescue?

I cannot boot from CD because I don't have a CD drive, therefore the usual solutions (recovery CD etc) do not work.

Any hints? Is there a way I can maybe do this through a USB?

share|improve this question
    
Use a windows bootable usb and choose fix the boot sector with that. That should help you get back into windows. You won't be able to boot from grub rescue because you deleted the grub installation and all the modules etc that would be needed. –  nikhil Nov 2 '12 at 17:05
    
Okay great, So i can download a copy of windows recovery and put it on the USB, and then procede with the normal process right? –  user103968 Nov 2 '12 at 20:33
    
You don't need to download anything, you need to have the windows bootable disk. Flash that on the usb, boot from it and you're done. –  nikhil Nov 4 '12 at 5:59

2 Answers 2

Solution 1: Go to the edit mode and

root (hd2,0) 
chainloader (hd2,0)+1

Change to the appropriate HDD

Solution 2: Boot into linux and

sudo grub-install

This should scan and set an entry for each detected OS. Neither will work if you have deleted ntldr

share|improve this answer
    
Not sure how to get into "edit mode" when the grub rescue prompt is already shown. The e key, as advised in various places, doesn't have any effect/registers as an unknown command. –  O. R. Mapper Mar 4 '13 at 15:14
    
If you see a grub> prompt, you are in edit mode. e registers as a command to enter edit mode when you see a menu. –  Lord Loh. Mar 4 '13 at 17:49
    
@LordLoh.: He's talking about grub rescue. Grub rescue drops you on a console without prompting and that console doesn't have a chainloader command. (not even a help command for that matter) –  mid_kid Jun 3 '13 at 20:24

You can use a software named boot repair for this :

Prepare a USB stick with Ubuntu live in it.

Boot with that stick.

Install Boot Repair program from internet on to the pen-drive and run the program.

Run the Program and fix MBR record

Detailed Steps to use, here : Using Boot Repair

share|improve this answer
    
Is there any way to do it without re-installing ubuntu? –  user103968 Nov 2 '12 at 20:26
1  
@user103968 There is no need to reinstall Ubuntu. You are doing this from the Ubuntu USB stick. –  hexafraction Nov 2 '12 at 20:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.