Sie sind auf Seite 1von 3

BCDedit and Bootrec

http://support.microsoft.com/kb/927392
http://superuser.com/questions/693715/what-is-the-equivalent-command-for-bcdboot-in-bcdedit

Bootrec
When you use the Recovery Environment (Windows RE) to troubleshoot startup issues, first try the Startup Repair
option in the System Recovery Options dialog box. If this does not resolve the issue, or if you have to manually
troubleshoot additional issues, use the Bootrec.exe tool. This article talks about how to use the Bootrec.exe tool in the
Windows RE to troubleshoot and repair the following items in Windows Vista or Windows 7:

 A master boot record (MBR)


 A boot sector
 A Boot Configuration Data (BCD) store

You can also use the Bootrec.exe tool to troubleshoot a Windows Boot Configuration Data file is missing required
information error.
How to run the Bootrec.exe tool
To run the Bootrec.exe tool, first start the Windows RE:

1. Put the Windows Vista or Windows 7 media in the DVD 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. Select 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.

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 information about how to do this, see the documentation that was included with the computer, or
contact the computer manufacturer.

Bootrec.exe options
The Bootrec.exe tool supports the following options. Use the option that's appropriate for your situation.

/FixMbr
This option writes a Windows 7 or Windows Vista-compatible MBR to the system partition. It 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
This option writes a new boot sector to the system partition by using a boot sector that's 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
situation, the computer starts by using Windows NT Loader (NTLDR) instead of Windows Boot Manager
(Bootmgr.exe).
/ScanOs
This option scans all disks for installations that are compatible with Windows Vista or Windows 7. It also 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
This option scans all disks for installations that are compatible with Windows Vista or Windows 7. Additionally, it lets you
select the installations that you want to add to the BCD store. Use this option when you must completely rebuild the
BCD store.

Note Use the Bootrec.exe tool to troubleshoot a "Bootmgr Is Missing" error. If rebuilding the BCD store doesn't resolve
the startup issue, you can export and delete the BCD store and then run this option again. By doing this, you make sure
that the BCD store is completely rebuilt.

To do this, type the following commands at the Windows RE command prompt:

1. bcdedit /export C:\BCD_Backup


2. c:
3. cd boot
4. attrib bcd -s -h -r
5. ren c:\boot\bcd bcd.old
6. bootrec /RebuildBcd

BCDedit and BCDboot


Bcdedit is a really powerful tool that Windows Vista and Windows 7 uses to manage the boot loader entries.
Bcdboot and bcdedit are slightly different tools. They are not used for the same purposes and, as they rely only on the
contents stored in the BCD (Boot Configuration Data), they are independent.

BCDEDIT needs a boot manager to boot your system.


- A boot manager is a file that contains necessary information that instruct the system how to boot/start an operating
system.
 Windows 7 and Vista boot manager file is \bootmgr
 Windows XP boot manager file is \ntldr

BCDEDIT can support other boot managers too, like grub for linux. You just have to place the boot file on the root of the
boot manager partition. e.g. \grldr and you have a grub boot loader enabled.

Bcdedit edits a file called bcd , which is located in Windows 7's hidden partition under \boot\bcd.
In Vista, its located under C:\boot\bcd.

BCDboot is a tool used to quickly set up a system partition, or to repair the boot environment located on the system
partition. The system partition is set up by copying a small set of boot environment files from an installed Windows®
image. BCDboot also creates a Boot Configuration Data (BCD) store on the system partition with a new boot entry that
enables you to boot to the installed Windows image.

BCDEdit is a command-line tool for managing BCD stores. It can be used for a variety of purposes, including creating new
stores, modifying existing stores, adding boot menu parameters, and so on. BCDEdit serves essentially the same purpose
as Bootcfg.exe on earlier versions of Windows, but with two major improvements:

BCDboot is a repair tool not a editor for the bootcfg.exe it can make changes to the BCD to add not repair a VHD to/in
the boot menu.
bcdboot can be best described as "the bootloader installer guy". It can be used to set up the bootloader for existing
Windows partitions (whether they are to be installed, run from a VHD, or already installed).

This is done by copying some files that exist in the /Windows directory to a specific location and updating the Master
Boot Record in order for it to point to the bootloader.

bcdedit is a more complex tool, designed to edit the BCD information. Think of it as "the editor guy". One of the
possible reasons why many people in the Internet use it in favor of bcdboot is that most dual or multi-booting systems
aren't linear and may have several different scenarios that the generic bcdboot doesn't cover.

A good example of this is dual-booting Windows XP and 7.

As XP doesn't have BCD files, bcdboot wouldn't work on it. It might also not be recognized by the latest system's
bootloaders off the box.

BCDedit is a powerful program than bcdboot in CMD.

You should only use BCDedit when in near emergency when your windows isn't starting after installing another windows
or vice versa as it can do a lot more to your computer boot system than the BCDboot command. Although if you're
installing Windows 8 with any windows(in any order, but preferably install windows 8 first then other windows you want
is better), if your windows 8 is set the default OS to boot until you make a selection than windows 8 gives a menu to
boot another windows(can be more than 1) present in your HDD. So you will not get any problems Dual booting your PC
with two windows.

Das könnte Ihnen auch gefallen