This guide explains how to use the Bootrec (bootrec.exe) utility for the following Windows versions: Windows XP (bootcfg, not bootrec), Vista, 7, 8, 8.1 or 10.
Contents
Action: Bootrec /fixMBR Result: The operation completed successfully Action: bootrec /fixBoot Result: The operation completed successfully Action: bootrec /rebuildBCD Result: Successfully scanned windows installations. Total identified windows installations: 0 The operation completes successfully. Total identified Windows installations: 0 What do I do next? My Gateway NV79 running 64 bit Windows 7 won't boot and I've tried startup repair and the following steps below and it tells me that the total identified windows installations: 0. I have no clue what to try next. Any suggestions would be appreciated. Bootrec.exe /FixBoot.
Bootrec or the bootrec.exe utility is a tool provided by Microsoft in Windows Recovery Environment, or the Windows RE.
When your computer fails to start, Windows automatically starts in this Windows RE – a recovery platform based on Windows Preinstallation Environment – where you can find various tools that can potentially fix your computer: Startup Repair, Command Prompt etc.
This is useful to troubleshoot and potentially fix errors that are preventing your computer to start.
Bootrec.exe is used in connection with:
This utility is available for Microsoft Windows Vista, Microsoft Windows 7, Microsoft Windows 8 and Microsoft Windows 8.1.
Microsoft Windows XP doesn’t have a bootrec.exe utility, but a bootcfg.exe utility which is part of the Windows XP Recovery Console.
Windows XP has, instead, the bootcfg utility that can be used to modify the boot.ini file.
To read about bootcfg, follow our guide: Bootcfg – Guide for Windows XP
You can run the bootrec commands in Windows Vista if you can boot into Windows Vista and access the System Recovery Options (your system may not have this installed) or you have the installation disc available to access Command Prompt.
If you can’t boot into your Windows Vista system or don’t have the original installation disc, use Easy Recovery Essentials and run Command Prompt. Download Easy Recovery Essentials and burn it to any CDs, DVDs or USBs.
Instructions on how to access bootrec.exe by using the original installation disc in Windows Vista:
For more commands and parameters you can run, go to Commands and parameters. If common commands don’t work for your system, go to Troubleshooting for tips.
If you don’t have the Windows Vista installation disc, you can access System Recovery Options or use Easy Recovery Essentials to launch Command Prompt.
System Recovery Options is installed on your system if the Repair Your Computer option appears at the Advanced Boot Options menu.
Instructions on how to access bootrec.exe without the installation disc in Windows Vista:
If Repair Your Computer is not available, System Recovery Options is not installed on your system. Access Command Prompt from the installation disc or use Easy Recovery Essentials.
For more commands and parameters you can run, go to Commands and parameters. If common commands don’t work for your system, go to Troubleshooting for tips.
Instructions if you use Easy Recovery Essentials:
You can access bootrec.exe on Windows 7 systems similar to Windows Vista systems: via the System Recovery Options (which is, by default, available in Windows 7) or via the installation disc.
If you can’t boot into your Windows 7 system or don’t have the original installation disc, use Easy Recovery Essentials and run Command Prompt. Download Easy Recovery Essentials and burn it to any CDs, DVDs or USBs.
Instructions on how to access bootrec.exe by the installation disc in Windows 7:
For more commands and parameters you can run, go to Commands and parameters. If common commands don’t work for your system, go to Troubleshooting for tips.
Instructions on how to access bootrec.exe without the installation disc in Windows 7:
If Repair Your Computer is not available, System Recovery Options is not installed on your system. Access Command Prompt from the installation disc or use Easy Recovery Essentials.
For more commands and parameters you can run, go to Commands and parameters. If common commands don’t work for your system, go to Troubleshooting for tips.
Instructions if you use Easy Recovery Essentials:
In Windows 8, you can access the bootrec.exe utility by using your original installation media: DVD or USB drive.
If you can’t boot into your Windows 8/8.1 system or don’t have the original installation disc, use Easy Recovery Essentials and run Command Prompt. Download Easy Recovery Essentials and burn it to any CDs, DVDs or USBs.
Instructions on how to access bootrec.exe with the installation disc (DVD or USB media) in Windows 8 or 8.1:
exit
, press Enter and remove the DVD/USB from the driveFor more commands and parameters you can run, go to Commands and parameters. If common commands don’t work for your system, go to Troubleshooting for tips.
If you don’t have the original disc, you can either boot to System Recovery Options and select Command Prompt or use Easy Recovery Essentials and run Command Prompt (you can burn EasyRE to any CDs, DVDs or USBs).
Instructions on how to access bootrec.exe without the installation disc in Windows 8 or 8.1:
Shift + F8 doesn’t always work, as reported by some users. If this is the case for your system, consider using Easy Recovery Essentials to run Command Prompt – details below this section of steps.
For more commands and parameters you can run, go to Commands and parameters. If common commands don’t work for your system, go to Troubleshooting for tips.
Instructions if you use Easy Recovery Essentials:
In Windows 10 you can access the bootrec.exe utility by using your original installation media: DVD or USB drive.
If you can’t boot into your Windows 10 system or don’t have the original installation disc, use Easy Recovery Essentials and run Command Prompt. Download Easy Recovery Essentials and burn it to any CDs, DVDs or USBs.
Instructions on how to access bootrec.exe with the installation disc (DVD or USB media) in Windows 10:
exit
, press Enter and remove the DVD/USB from the driveFor more commands and parameters you can run, go to Commands and parameters. If common commands don’t work for your system, go to Troubleshooting for tips.
If you don’t have the original disc, you can either boot to System Recovery Options and select Command Prompt or use Easy Recovery Essentials and run Command Prompt (you can burn EasyRE to any CDs, DVDs or USBs).
Instructions on how to access bootrec.exe without the installation disc in Windows 10:
Shift + F8 doesn’t always work, as reported by some users. If this is the case for your system, consider using Easy Recovery Essentials to run Command Prompt – details below this section of steps.
For more commands and parameters you can run, go to Commands and parameters. If common commands don’t work for your system, go to Troubleshooting for tips.
Instructions if you use Easy Recovery Essentials:
The commands and parameters below are for the bootrec.exe utility in Windows Vista, 7, 8, 8.1 and 10.
Windows XP uses the bootcfg utility. For commands and parameters for bootcfg, go to Parameters at Windows XP section.
Parameters for bootrec.exe are:
bootrec /FixMbr
will write a Windows Vista and Windows 7 compatible MBR to the system partition.
bootrec /FixBoot
will write a new boot sector to the system partition. If your system is Windows 7, FixBoot will write a Windows 7-compatible boot sector and so on.
bootrec /ScanOs
will scan the hard drives for any installations. ScanOs will also print installations that are not currently in the BCD.
bootrec /RebuildBcd
will scan for installations on your hard drive and allows you to select which to add to the BCD.
You cannot download bootrec.exe as it’s a command line utility part of Windows.
To access the utility, you have these options available:
Instructions if you use Easy Recovery Essentials:
Instructions on how to access bootrec.exe without the installation disc:
Instructions on how to access bootrec.exe with the installation disc:
If bootrec /RebuildBcd
does not fix the error, you can also try to completely rebuild the BCD. TO do so, you need to run these steps:
c:
, where c: is where your Windows is installedcd boot
If Bootrec shows the “The requested system device cannot be found” error, follow the steps from bootrec /RebuildBcd doesn’t work.
It’s possible that the bootrec /ScanOs
command can find 0 Windows installations:
In this case you can try the steps from bootrec /RebuildBcd doesn’t work or try:
ren c:bootmgr bootmgrbackup
, where c:
is where your Windows is installedbootrec /RebuildBcd
bootrec /FixBoot
Various bootrec commands, like bootrec /RebuildBcd
or bootrec /FixBoot
, can print this error:
In this case, try any of the following tips:
diskpart
list disk
select disk 0
, where 0
is the number of your disklist partition
select partition 0
, where 0
is the number of your partition numberactive
exit
If the bootrec /FixMbr
or bootrec /FixBoot
commands don’t work in Windows 7, try the following steps to restore the boot sector code for your system:
This solution works only if you have the original Windows 7 installation disc. Otherwise, use Easy Recovery Essentials to access Command Prompt or run Automated Repair for automatic repairs.
D:
below with the letter of your media drive:exit
If the bootrec utility doesn’t fix your Windows 8 system, you can also try to fix the EFI bootloader of your system:
where 2
is the number of the FAT32 partition printed by Command Prompt above.
exit
to quit the diskpart utility (step 4):x:
with the letter of the partition you chose earlier:x:
with the letter of the FAT32 partition mentioned earlier:exit
Read more at Windows Recovery Disks.
This Windows-related knowledgebase article applies to the following operating systems:
In this article we will learn how to repair Windows 10 / 8.1 /8 bootloader on a computer with UEFI. The corruption of the Windows bootloader can occur after the installation of the second OS (in Dual Boot configurations), be caused by the erroneous actions while failure recovering, removal of some data on hidden partitions, malicious software (virus, ransomware, etc.) and for some other reasons.
In this article, we will show how to repair a damaged or deleted bootloader on Windows 10 / Windows 8.1 / 8 systems with EFI. This guide should help in case when the system does not boot due to missing or damaged boot configuration in EFIMicrosoftBootBCD.
If the bootloader in Windows on UEFI system is corrupted – it’s impossible to start the system or user facing a blue screen with the following error:
All this can imply corruption or even total removal of Windows 10 / 8 bootloader configuration – Boot Configuration Data (BCD). You won’t be able to recover the BCD loader using bcdedit. When running this command, the following error appears:
The matter is that the BCD loader configuration in Windows 8 installed in UEFI mode is stored on a separate hidden EFI volume (100 MB in size on FAT32 file system). Bcdedit can’t see it and, therefore, manage the bootloader configuration on it.
The procedure for automatic recovery of the bootloader, which is used in the Windows Recovery Environment (WinRe), is usually powerless in such cases. But it’s worth trying all the same:
Let’s proceed to the procedure of manual recovery of the EFI boot loader on Windows 10 / 8.1.
So to recover the loader (BCD) configuration, you have to boot from the original installation Windows 10 media (or a recovery disk or a special EFI bootable flash drive) and open the command line choosing System Restore – > Troubleshoot-> Command Prompt or pressing Shift+F10).
Start diskpart:
Display the list of disks in the system:
Select the disk with Windows installed (if there is one disk in the system, it will have zero index):
Display the list of volumes in the system:
In this example, you can see that the EFI volume (it can easily be recognized by its size of 100 MB and FAT32 file system) has the index volume 1, and the boot partition with Windows installed is volume 3.
Assign any disk letter to the EFI volume:
A line that indicates the successful assignment of the drive letter to the EFI partition should appear:
DiskPart is successfully assigned the drive letter or mount point.
Close diskpart:
Go to the bootloader directory in the hidden volume
In this case, K: is the drive letter assigned to the EFI partition just above. If the EFIMicrosoftBoot directory does not exist (error The system cannot find the path specified), try the following commands:cd /d K:Boot
orcd /d K:ESDWindowsEFIMicrosoftBoot
Recreate the boot sector on the boot partition
Delete the current BCD configuration file by renaming it (save the older configuration as a backup):
With bcdboot.exe, create BCD store again by copying the boot files from the system directory:
where C:Windows – is the path to the directory with Windows 8 installed.
/f ALL – means that the boot files have to be copied including those for UEFI and BIOS computers (potential ability to boot in EFI and BIOS systems)
/l en-us – is a type of the system locale. By default, en-us – English (USA) is used.
bcdboot c:Windows /l en-uk /s K: /f ALL
bcdboot c:Windows /l nl-NL /s K: /f ALL
Possible errors:
Execute the commands:
bootrec /scanos
bootrec /rebuildbcd
Now you have to restart your computer. Then the Windows Boot Manager appears in the list of bootable devices, where you can choose desired operating system to start.
BCD bootloader configuration has been successfully restored!