BCDboot (boot Repair tool) How to use the command line tool

Source: Internet
Author: User
Tags locale locale setting

BCDboot is a tool for quickly setting up a system partition or repairing a startup environment on a system partition. The system partition is set up by copying a small subset of boot environment files from the installed Windows (R) image. BCDboot also creates a boot configuration data (BCD) store on the system partition that contains a new boot entry that allows you to boot to an installed Windows image.

Software Name:
BCDboot.exe Boot Repair Tool
Software size:
68KB
Update Time:
2015-08-06

You can run BCDboot from Windows (R) PE. For information about Windows PE, see Windows PE action instances.

BCDboot is included in the%windir%\system32 folder of Windows®7 and Windows server®2008 R2. The Windows OEM Preinstallation Toolkit (OPK) and the Windows Automatic Installation Kit (AIK) also provide BCDboot, located in the%program files%\<version>\tools directory, where <version > Is Windows OPK or Windows AIK.

BCDboot copies a set of boot environment files from an existing Windows image on the computer. BCDboot can start an environment file from an image copy of Windows Vista®, Windows server®2008, Windows 7, or Windows Server R2. For information about applying a Windows image to your system, see capturing and applying a Windows image.

BCDboot uses the%windir%\system32\config\bcd-template file to create a new BCD store on the system partition and initialize the BCD boot environment file. You can define specific BCD settings in the Bcd-template file. The tool also copies the latest version of the boot environment files from the operating system Image%windir%\boot folder and the%windir%\system32 folder to the system partition.

BCDboot Copy the file to the default system partition identified by the firmware. You can use the partitioning tool, such as DiskPart, to create this partition. You do not have to specify the drive letter for this partition in order to facilitate BCDboot lookups. For more information, see DiskPart help from the command line, or access the DiskPart command-line syntax (possibly an English web page).

    • On a BIOS-based system, the system partition is an active partition on a disk that uses the master boot record (MBR) disk format. BCDboot creates the \boot directory on the system partition and copies all the required boot environment files to this directory.

    • On a unified Extensible Firmware Interface (UEFI)-based system, the EFI system partition is a system partition on a disk that uses the GUID partition table (GPT) disk format. BCDboot creates the \efi\microsoft\boot directory and copies all the required boot environment files to this directory.

BCDboot can update the existing boot environment to the system partition. Newer file versions in the Windows image are copied to the system partition.

If the BCD store already exists in the system partition:

    • BCDboot will create a new startup item in the existing BCD store based on the settings in the Bcd-template file, and remove any duplicate startup items that reference the same Windows image.

    • If you already have a startup entry for a Windows image, and other BCD settings are enabled for the startup item in addition to the default value, the next time you run BCDboot, you can use the/ m option to merge the existing startup items identified by the OS loader GUID into the BCDboot created New Startup items to retain these settings.

BCDboot Command-line Options
The following command-line options are available for BCDboot.exe.

BCDBOOT source [/llocale] [/svolume-letter] [/v] [/m [{OS Loader GUID}]

/tr>
options description

source

/l

optional. Specifies the locale setting. The default value is US English.

/s

optional. Specifies the volume number of the system partition. The default value is the system partition identified by the firmware.

/v

optional. Enable verbose mode.

/m

optional. By default, only global objects are merged.

Example
• This example initializes the system partition using a file from the operating system image installed on the C: volume.


Copy CodeThe code is as follows:
BCDboot C:\Windows



• This example sets the default BCD locale to Japanese and copies the BCD file to a system partition that has been assigned the volume number S: Using DiskPart.


Copy CodeThe code is as follows:BCDboot c:\windows/l ja-jp/s s:



• This example merges the operating system loader that is identified by the given GUID in the current BCD store into the new BCD store.


Copy CodeThe code is as follows:bcdboot c:\windows/m {d58d10c6-df53-11dc-878f-00064f4f4e08}



The BCDboot boot tool, a very useful uefi boot repair tool, can be used to fix a boot failure when a GPT hard drive is re-installed.

Common command line:bcdboot c:\windows/s T:/F UEFI/L ZH-CN

Annotations:

C:\Windows The system directory, turn on the computer, and see if the system you installed is on that disk, enter the appropriate drive letter.
/s T: Specifies the disk where the ESP partition is located, and the small codec specifies that the ESP partition is a T disk.
The/F UEFI specifies that the boot mode is UEFI, and the space between the notes must be entered.
/L ZH-CN specify UEFI Boot interface language for Simplified Chinese

BCDboot (Boot Repair Tool) command-line tool usage

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.