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.

I had Windows 8 installed on my laptop. I then installed Ubuntu 12.04 along on separate partition. After a few days I mistakenly deleted the Ubuntu partition. Now I every time I start my laptop it don't show boot options (F2 & F12). It just gets stuck at a screen showing

unknown file name 
grub rescue>

It's not booting either into Windows nor into Ubuntu.

share|improve this question
It is ordinary if you delete your Ubuntu partition from Windows (not Wubi). The solution is install the Ubuntu again or use Windows Recovery CD. –  lambda23 Oct 11 '12 at 14:51

2 Answers 2

mistakenly deleted the Ubuntu partition

Then re-install Ubuntu on that empty partition and problem will be solved (Ubuntu will re-write grub).

If you do not want Ubuntu anymore try search for answers on internet how to fix mbr using Windows CD (cause I'm not expert in that).

share|improve this answer
i tried installing Ubuntu with bootable USB stick but it's not working as my bios is not showing the boot options anymore. –  Rohit Sep 13 '12 at 12:50
@Rohit Grub have nothing to do with your motherboard Bios. Enter to your Bios setup and re-configure device booting priority by your needs (in this case making USB higher priority than HDD). –  xeranas Sep 13 '12 at 13:01
I now it's the problem with my bios which I m unable to configure. Butthisis all because of this gruB thing. –  Rohit Sep 13 '12 at 13:08
Just do me a favor buddy get me hell outta this thing. –  Rohit Sep 13 '12 at 13:11

Since you deleted Ubuntu partition, GRUB (which is what shows up with all the OS options) also got deleted.

You can do either of the following:

  • Install Ubuntu again - This will solve your problem.

  • Repairing Windows MBR (Master Boot Record) - After this, you will be able to boot into Windows.

I guess you know how to install Ubuntu. But if you have any problems, ask here or look over at web or at this link: http://www.ubuntu.com/download/help/install-ubuntu-with-windows.

And the link below, provides a tutorial on how to repair windows: Link: http://windows8themes.org/repair-fix-mbr-in-windows-8-using-the-command-prompt.html.

Changing Boot Preferences

  • Keep pressing F2 (the key might be different for different machines) while booting. That should bring up the BIOS.

  • Now you need to find out something like booting preferences (might be located in Boot tab or something like that).

  • Change the first preference to CD/DVD, this will enable you to boot from your repair/install CD/DVD.

  • Alternatively, you can select the first preference to be USB, in which case you can boot via LiveUSB and install Ubuntu again.

share|improve this answer
But grub is somewhat related to Linux. Window is not the problem Ubuntu partition deleted. So won,t boot into ubuntuanymore or any os. –  Rohit Sep 13 '12 at 12:41
I knew how to fix MBA but for that I have to first boot anything. I tried window repair disc and also with bootable Ubuntu disk –  Rohit Sep 13 '12 at 12:44
It seems that the boot preferences are not in order. While booting, go to BIOS and reorder the boot preferences such that the USB or CD/DVD comes before Hard Disk. –  green7 Sep 13 '12 at 12:57
Problem is with the boot menu itself. Rest I did. –  Rohit Sep 13 '12 at 13:03
Just do me a Favor buddy get me hell outta this grub thing. –  Rohit Sep 13 '12 at 13:14

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.