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.

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
add comment

3 Answers

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
add comment

Boot up Windows install DVD, choose

Repair your Computer

open command prompt Run Following command

bootrec.exe/fixboot

next

bootrec.exe/fixmbr
share|improve this answer
add comment

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
add comment

Your Answer

 
discard

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.