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

Install ubuntu 12.04 on a recent ASUS with UEFI BIOS. Uninstall ubuntu with UBUNTU uninstaller (OS-Uninstaller from liveCD Ubuntu) The next boot after uninstall gives grub rescue which does not accept many useful commands.

What can I do to restore the MBR to boot from windows knowing that I cannot enter the BIOS UEFI anymore, it stays on the grub rescue. How can I get back to the BIOS UEFI?

share|improve this question

To install a Microsoft style MBR, boot from Ubuntu LiveCD/USB. Open the terminal and run the following cmds:

sudo software-properties-gtk -e universe && sudo apt-get update 
sudo apt-get install mbr
sudo install-mbr /dev/sda 

Please change the device type sda or hda as per your system in the last cmd.

share|improve this answer
If the computer is booting Windows in UEFI mode, this won't work, and could actually cause additional problems on some systems. It's unclear from the original post if Windows wants to boot in BIOS/legacy or UEFI mode, though. – Rod Smith Dec 13 '12 at 15:23

Boot up Windows install DVD, choose

Repair your Computer

open command prompt Run Following command



share|improve this answer

Run Boot-Repair --> Advanced options --> untick "Backup and rename EFI files" --> tick "Restore EFI backups" --> Apply . If any problem, indicate the URL that will appear.

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.