Thursday 29 March 2012

Repair Startup Errors in Windows Vista and Seven with Bootrec.exe


Repair Startup Errors in Windows Vista and Seven with Bootrec.exe



Back in the days of Windows XP bootrec.exe did not exist. Fixing the master boot record in Windows XP is a bit different. In this article I will show you how to use the Bootrec.exe tool to repair boot problems in Windows Vista or Windows 7.
The bootrec.exe tool can be used to fix:
  • A master boot record (MBR)
  • A boot sector
  • A Boot Configuration Data (BCD) store
Please note that this tutorial presumes you have your original operating system disc so you can troubleshoot and repair startup errors. You will also need to make sure that the boot options in your BIOS are set to boot from your cd/dvd drive. If your dvd does not boot up and you do not see the option to “press any key to boot from dvd” then you need to enter into your BIOS and change boot options.

The first thing you should try if you are having boot problems it to start Windows Recovery Console and choose the Startup Repair. Then if that does not work you can try some more advanced options such as using the Bootrec.exe tool.
To run the Bootrec.exe tool, you must start Windows Recovery. To do this, follow these steps:
  1. Place the Windows Vista or Windows 7 installation disc in the disc drive, and then start the computer.
  2. Press a key when you are prompted.
  3. Select a language, a time, a currency, a keyboard or an input method, and then click Next.
  4. Click Repair your computer.
  5. Click the operating system that you want to repair, and then click Next.
  6. In the System Recovery Options dialog box, click Command Prompt.
  7. Type Bootrec.exe, and then press ENTER.

Bootrec.exe options

The Bootrec.exe tool supports the following options. Use the option that is appropriate for your situation.
Note Use the Bootrec.exe tool to troubleshoot “Bootmgr Is Missing” issue. If rebuilding the BCD does not resolve the startup issue, you can export and delete the BCD, and then run this option again. By doing this, you make sure that the BCD is completely rebuilt.
To do this, type the following commands at the Windows RE command prompt:
  • bcdedit /export C:BCD_Backup
  • c:
  • cd boot
  • attrib bcd -s -h -r
  • ren c:bootbcd bcd.old
  • bootrec /RebuildBcd

/FixMbr

The /FixMbroption writes a Windows 7 or Windows Vista-compatible MBR to the system partition. This option does not overwrite the existing partition table. Use this option when you must resolve MBR corruption issues, or when you have to remove non-standard code from the MBR.

/FixBoot

The /FixBoot option writes a new boot sector to the system partition by using a boot sector that is compatible with Windows Vista or Windows 7. Use this option if one of the following conditions is true:
  • The boot sector has been replaced with a non-standard Windows Vista or Windows 7 boot sector.
  • The boot sector is damaged.
  • An earlier Windows operating system has been installed after Windows Vista or Windows 7 was installed. In this scenario, the computer starts by using Windows NT Loader (NTLDR) instead of Windows Boot Manager (Bootmgr.exe).

/ScanOs

The /ScanOs option scans all disks for installations that are compatible with Windows Vista or Windows 7. Additionally, this option displays the entries that are currently not in the BCD store. Use this option when there are Windows Vista or Windows 7 installations that the Boot Manager menu does not list.

/RebuildBcd

The /RebuildBcd option scans all disks for installations that are compatible with Windows Vista or Windows 7. Additionally, this option lets you select the installations that you want to add to the BCD store. Use this option when you must completely rebuild the BCD.

No comments:

Post a Comment