Restore MBR from Ubuntu live CD / USB

On dual boot Ubuntu and Windows, If you like to uninstall / remove Ubuntu from your machine and like to have windows alone. Then you need to restore your original MBR and it can be done easily with Boot Repair using Ubuntu Live CD / USB.

To install the Boot Repair

You need to have Ubuntu Live CD or Live USB. Boot using your Ubuntu Live CD or Live USB, while booting choose Try Ubuntu.

Once booted then open a terminal, and run the following command one by one to install the boot repair.

To add boot-repair to the repository

sudo add-apt-repository ppa:yannubuntu/boot-repair

To Update your repository

sudo apt-get update

To install boot-repair

sudo apt-get install -y boot-repair

Once installation complete follow the steps below.

To Restore MBR

Run boot-repair on terminal by typing the following command or select it by System->Aministration->Boot Repair.


It will scan the System for few seconds and will pop-up a small window. Select Advanced options and in Main options tab select Restore MBR. Check the screen shot below.

Then select the MBR options tab, check the drive for MBR and Windows OS. By default all the options are selected correctly if not select the drive where your MBR is to be and the correct OS. Click apply now, check the screen shots below.

Once done click ok and restart your system and it should work. Then after logging in into your windows, go to Disk Management in Computer Management then select the Storage. Now you will see the list of all available partitions, there you select the linux partitions and delete it. Make a new partition from the deleted one and format it with ntfs. Thats it your done.

Hope this will be helpful for you!!!

  • Pingback: [HowTo]Restore / Reinstall Grub on Ubuntu from live CD / USB | How Opensource()

  • Christopher Hamlen

    Thank you for the instructions. I was able to run the program, restore my Master Boot Record and now am able to update Windows 7 SP1. Hopefully there will be no SP1 Problems. Thank you for the information Manivannan.

  • Adam

    Very helpful and worked like a charm – thank you!

  • Pingback: Restaurar MBR, recuperar el arranque de Windows y desinstalar Ubuntu | Web y PC()

  • Stu

    Thanks heaps for this, I spent hours pissing around with Windows Recovery Software which unable to even load due to grub which was the point of using it, this solution fixed it in minutes :)

  • Yann (Boot-Repair’s dev)

    I am the developper of Boot-Repair.
    I developped another little tool (based on Boot-Repair) that allows to remove Ubuntu (or Windows or else) in 1 click:

    Enjoy :)

    • Hi Yann,

      Thanks for the wonderful work you have done.

    • utsav

      Amazing Work…saved me a lot time….and that’s priceless.

  • Tremulnike

    Thanks for the easy to follow instructions, your method works like a charm always. I was often confused wit the terminal method which involves a lot of jargon s.

  • Pingback: Do List After Installing Ubuntu 12.10 Quantal Quetzal()

  • probleminho

    This all works nice, BUT what if I have Windows 7 installed on different partition then Ubuntu, and I want to keep using both of them? Restoring Ubuntu grub2 worked, except it removed completely my Windows partition’s boot, and now Ubuntu doesn’t even detect it, except with *sudo fdisk -l* where it says it’s sda3 but I cannot change it in boot-repair, since it shows excplicitely sda2 (ubuntu partition) in the drop-down menu. How to restore MBR now? >_>

  • Mark Giblin

    Great BUT… it assumes that ones machine that needs fixing has access to the internet… which is my problem, need my boot drive fixing, the data is there but XP installer says its an empty drive when it isn’t.

    Last time this happened was about 12 years ago…

    I see in that time, no one has produced a skinny linux distro that just full of these types of tools to repair broken devices and also be live and also include dongles, usb broadband sticks, wifi, wifi hotspots, etc… so if additional software needed, it can be downloaded.

    Oh well…

  • Leonardo da Luz

    do not work in ubuntu 15

  • Shazam

    I select restore mbr and then I restart it Shows No bootable disks please help me to fix this I tried to go to bios enable disable usb legacy and then i try to install Windows 10 from flash drive but windows can’t install. And Still Showing no bootable disks press any key to continue Please