Use boot.ini to add startup items under win7, no need to toss BCD

Adding a boot menu under win7 is a very troublesome thing. To use bcdedit in the cmd command line, enter a large string of {GUID} during the operation. Using easybcd also has relatively big limitations, and you can't freely add your own bootstrap files. Many students think that in win7, you can only add startup items by adding items to the BCD. But I found that under win7, you can also use boot.ini to add startup items like under XP. Create a new boot.ini in the root directory of the C drive and add the following content to it:





 

    [boot loader]
    [operating systems]
    c:\grldr.mbr="Grub4Dos"

 

In this way, the boot boot file c:\grldr.mbr can be added to the boot menu, and the displayed name is Grub4Dos. The difference from XP is that the name of the boot item in the boot.ini of win7 must be enclosed in quotation marks. In XP, you can written as:



c:\grldr.mbr=Grub4Dos

 

In win7, it must be written as:

c:\grldr.mbr="Grub4Dos"

 


I discovered this method by accident. In the morning, I accidentally copied the boot.ini of XP to the root directory of the C drive (my XP was installed in a virtual machine, I took out the boot.ini and modified it and put it on the desktop. As a result, I accidentally copied it when I installed Grub4Dos into the C drive), I didn't care at that time, and I didn't delete it. But when I restarted the computer in the afternoon, I found that the XP startup item was displayed in win7. Later, I found out that it was the reason of boot.ini. After deleting the boot.ini startup item, it disappeared. Then I boot both linux and win8 through boot.ini successfully.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326969692&siteId=291194637