Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I had a Windows 7/Ubuntu dual-boot set up on my laptop. I deleted Ubuntu, and when I load up my computer, I am now met with a screen displaying the following:

error: no such partition. grub rescue>

How can I have my computer boot straight into Windows 7 again?

Solved: I created a win7 system repair disc using another machine, and fixed the problem using the bootrec command within command prompt.

share|improve this question

marked as duplicate by psusi, Radu Rădeanu, Eric Carvalho, Braiam, Warren Hill Sep 29 '13 at 8:08

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 4 down vote accepted

The easiest method is to boot up with your Windows 7 disc, choose System Recovery Options and then click Startup Repair. That should generally remove grub from your master boot record and allow you to boot into Windows normally.

share|improve this answer

Reinstall the windows bootloader

share|improve this answer
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – Peachy Oct 8 '12 at 14:37

In Windows 7 recovery, type bootrec.exe /fixboot and then type bootrec.exe /fixmbr.

share|improve this answer

The Ubuntu partition is an extended partition. If you are in Ubuntu, C:(os) is mounted in Ubuntu with wine.

You have to boot with Windows rescue-cd and go to command prompt cmd. Use diskpart more information diskpart/help

Then list disk select disk list partition select partition => set c:os active


With easeus partition master you can change extended partition into basic of logical

Install GRUB on Windows if you still have to choose between Ubuntu / Windows during startup.

share|improve this answer

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