In my earlier tutorial on “Introduction to BCD and BCDEIT,”  we have seen the basics and what BCD ( Boot Configuration Data) is and what are the available commands which can be used to modify the settings as per your needs. In this article, we are going to see how can you add a legacy OS Loader (Legacy means the one which is earlier to Windows 7 bootloader) into your existing BCD configuration store.

There can be a couple of reasons why you want to add a legacy OS in BCD store including adding NTLDR or some Linux type bootloader like Grub inside BCD.

In this tutorial, we will learn how to add Legacy Bootloader or Windows XP to a Windows 7 Bootloader.

To Add Windows XP or another  Legacy Boot Loader like Grub you have to add an application OS loader in BCD.

Below are the commands to add windows XP to BCD. We will see each component one by one and then combine them together to get our job done.

Let’s get started by adding  a new OS loader entry.

[stextbox id=”grey”] bcdedit /create /d “Name of the Entry” /application bootsector[/stextbox]

The result will look like this:

[stextbox id=”grey”]The entry {05d33150-3fde-11dc-a457-00021cf82fb0} was successfully created.[/stextbox]

Note down the The long string {05d33150-3fde-11dc-a457-00021cf82fb0} is the id for this entry.

Then, use the following commands to set boot parameters:

(replace {id} with the actual id returned from the previous command.)

[stextbox id=”grey”]

bcdedit /set {67bc6121-f766-11df-b1a0-00247eea28eb} device boot

bcdedit /set {67bc6121-f766-11df-b1a0-00247eea28eb} path \ntldr

bcdedit /displayorder {{67bc6121-f766-11df-b1a0-00247eea28eb} /addlast

[/stextbox]

From the earlier tutorial on “Introduction to BCD and BCDEDIT, we have seen the details of each command mentioned above so there should not be any problems in understanding the command line and parameters of each command we just typed.

[stextbox id=”info”]Summary : How to Add NTLDR or any other bootloader in BCD [/stextbox]

To add a legacy OS loader you can simply run below commands and it will add any type of OS loader in BCD store.

Introduction to BCD and BCDEIT

[stextbox id=”grey”]

bcdedit /create /d “Name of the Entry” /application bootsector

bcdedit /set {67bc6121-f766-11df-b1a0-00247eea28eb} device boot

bcdedit /set {67bc6121-f766-11df-b1a0-00247eea28eb} path \ntldr

bcdedit /displayorder {{67bc6121-f766-11df-b1a0-00247eea28eb} /addlast

[/stextbox]

Replace the GUID in above commands with the GUID returned by the first /application OS loader command.

In our next tutorial on BCDEDIT, we will see how to modify BCDEDIT to boot directly from a VHD (Virtual Disk ).

Leave a Reply

Your email address will not be published. Required fields are marked *