Fix the MBR

Fix the MBR

bootrec /fixboot bootrec /scanosbootrec /fixmbrbootrec /rebuildbcd

---------------------------------------------------

sfc /scannow /offbootdir=c:\ /offwindir=c:\windows chkdsk C: /f /r /x

-----------------------------------------------------

bcdedit /export C:\BCD_Backup c: cd boot attrib bcd -s -h -r ren c:\boot\bcd bcd.old bootrec /RebuildBcd

---------------------------------------------------

bootsect /nt60 SYS or bootsect /nt60 ALL

---------------------------------------------------

It’s wise to backup MBR or create a System Recovery Disk so that in case something like this happens you don’t have to run for the Windows Recovery Disk. To create a system recovery drive in Windows, follow these steps:

More about MBR

Steps to repair MBR using EaseUS Partition Master     Here

---------------------------------------------------

Once you are in the command prompt, we can start fixing the boot record error using the bootrec command.

Most of the time boot record problems are a direct result of a damaged or corrupted Master Boot Record.

In those scenarios simply use the below command to quickly fix the Master Boot Record

bootrec /fixmbr

Once you execute the command, you will receive a confirmation message letting you know,  and you can continue to log in to your Windows machine.

If you think your boot sector has been either damaged or replaced by the other boot loaders, then use the below command to erase the existing one and create a new boot sector.

bootrec /fixboot

If you have installed multiple operating systems on your Windows machine, then you might want to use the “ScanOS” argument. This parameter commands Windows to scan and add all the missing operating systems to the Boot Configuration Data. This enables the user to choose an operating system while booting.

bootrec /scanos