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 deleted the partition containing Ubuntu from my computer -- manage -- disk management and now my laptop is showing:

error: no such partition.
grub rescue> 3

Please tell me how can I open my regular Windows 7 now.

share|improve this question

marked as duplicate by psusi, Radu Rădeanu, Jorge Castro, gertvdijk, Basharat Sialvi Jun 30 '13 at 20:17

This question was marked as an exact duplicate of an existing question.

I'm not 100% sure of this, but you could try those steps:

  1. Install Ubuntu again in the same partition you installed the deleted one.
  2. Install Boot-Repair in the installed Ubuntu

    1. Open the Terminal
    2. Run this command to add the ppa that contains Boot-Repair:

      sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update

    3. Run this command to install Boot-Repair:

      sudo apt-get install -y boot-repair && (boot-repair &)

After that: perform the "Recommended repair" (a topic at the link above)

Recommended repair

  1. launch Boot-Repair from either :

    1. the Dash (the Ubuntu logo at the top-left of the screen)
    2. or System->Administration->Boot-Repair menu (Ubuntu 10.04 only)
    3. or by typing 'boot-repair' in a terminal
  2. Then click the "Recommended repair" button. When repair is finished, note the URL ( that appeared on a paper, then reboot and check if you recovered access to your OSs.

  3. If the repair did not succeed, indicate the URL to people who help you by email or forum.

share|improve this answer

It's possible in that installing Ubuntu after Windows you replaced the windows boot manager with GRUB and therefore when you removed Ubuntu you damaged/removed GRUB files which only allowed you to access the GRUB menu you're presented with.

Try running the Windows 7 repair disc and accessing the CMD. From there try:

 bootrec /fixboot


bootrec /fixmbr

Your best bet is with the /fixmbr as it simply repairs the master boot record.

share|improve this answer

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