1

While following instructions from this page I accidentally deleted the MBR. I do however still have a backup of the MBR. I tried to resore it using the following command

$dd if=MBR-backup of=/dev/hdx bs=512 count=1

Unfortunately the output from this command is opening ‘MBR-backup’: No such file or directory

Does anyone know how to restore my MBR-backup?

user218800
  • 13
  • 1
  • 5
  • Possible Duplicate? http://askubuntu.com/questions/326532/how-to-fix-the-mbr-for-windows-7/326564#326564 – Mitch Nov 24 '13 at 09:10

1 Answers1

0

I have the same issue, because of a little failure on installing ubuntu. The error was: when I would access Windows 7, then I go return to the grub window.

To solve this, i have write the Grub in the right MBR, and write the bootloader from windows new:

Write Grub to right MBR

Please mention that If you boot into ubuntu os then run this and this commands on terminal. If you not able to boot into ubuntu os, then boot a ubuntu live disk then run this and this commands on terminal:

  1. Installing Grub in the right MBR

    sudo grub-install /dev/sda
    

    Info: Only If the system is installed on /dev/sda, otherwise use the right harddrive like /dev/sdb

  2. Update Grup

    sudo update-grub
    

Restoring Windows Bootloader

  1. Restarting Computer with Windows 7 installation dvd

  2. Go to the windows console (under point computer repair)

  3. Reinstall Windows bootloader in terminal

    bootrec /fixboot
    
  4. Reboot computer

pointhi
  • 148