You can use the Bootrec.exe tool in the Windows Recovery Environment (Windows RE) to troubleshoot and repair the following items in Windows Vista or Windows 7:
Note When you are troubleshooting startup issues by using the Windows RE, you should first try the Startup Repairoption in the System Recovery Options dialog box. If the Startup Repair option does not resolve the issue, or if you must troubleshoot more steps manually, use the Bootrec.exe tool.
To run the Bootrec.exe tool, you must start Windows RE. To do this, follow these steps:
Note To start the computer from the Windows Vista or Windows 7 DVD, the computer must be configured to start from the DVD drive. For more information about how to configure the computer to start from the DVD drive, see the documentation that is included with the computer or contact the computer manufacturer.
To do this, type the following commands at the Windows RE command prompt:
- A master boot record (MBR)
- A boot sector
- A Boot Configuration Data (BCD) store
To run the Bootrec.exe tool, you must start Windows RE. To do this, follow these steps:
- Put the Windows Vista or Windows 7 installation disc in the disc drive, and then start the computer.
- Press a key when you are prompted.
- Select a language, a time, a currency, a keyboard or an input method, and then click Next.
- Click Repair your computer.
- Click the operating system that you want to repair, and then click Next.
- In the System Recovery Options dialog box, click Command Prompt.
- Type Bootrec.exe, and then press ENTER.
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:\boot\bcd bcd.old
- bootrec /RebuildBcd
/FixMbr
The /FixMbr option 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 nonstandard 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 was replaced with a nonstandard Windows Vista or Windows 7 boot sector.
- The boot sector is damaged.
- An earlier Windows operating system was 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).
No comments:
Post a Comment