Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

I had installed Ubuntu (current version: 11.xx) alongside Windows Vista. Now I formatted the Ubuntu partition & merged it with another partition (without thinking, obviously).

Now, when I restart the computer, GRUB probably tries to find the old partition (which does no longer exist) and says:

error: no such partition.
grub rescue>

Now I dont know what to do (I'm a total beginner). I tried to re-install Ubuntu on the newly formatted partition but this won't work, because after removing the install-usb (which I am said to do during installation) I find the above error-message again.

I guess I need some way to reconfigure grub OR to reinstall grub/ubuntu (on the newly formatted partition) OR to reinstall the windows boot manager (without reinstall. Windows), but I have no idea how to do either of these things.

share|improve this question

GRUB, as installed by Ubuntu, won't work without access to the Ubuntu partition. The easiest solution is to reinstall windows bootloader. You should start your computer with the windows installation disk, select the repair option, select the command prompt repair. Type:


You can install Ubuntu afterwards.

share|improve this answer
Are you sure that GRUB won't work without Ubuntu? I've never tried it, but since it operates at the MBR level, it should theoretically be OS-independent. – Scott Severance Mar 20 '12 at 7:04
You're right, it's OS independent. But, when installed from Ubuntu, it's files are stored in the Ubuntu partition. If you delete it, GRUB will break. – Javier Rivera Mar 20 '12 at 8:21

If you deleted Ubuntu and your system was using the partition where Ubuntu was to keep the boot loader you need to fix your MBR and use the Windows Vista boot loader if you don't want to install Ubuntu again.

Use the Windows Vista CD to fix your MBR and boot loader.

More information on the Microsoft Support site under this page

share|improve this answer

You should reinstall your Grub2.

Please refer to this guide Reinstalling Grub2, which explains very well how to do it.

share|improve this answer

Your Answer


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.