3 grub4dos初级 Tutorial - Advanced Section
3.3 Using Personalized grub4dos Filenames
The core file of grub is grldr/grldr.mbr. The introductory section introduced "Entering grub4dos through the Windows NT boot menu", which is adding a grldr item in boot.ini; and "Entering grub4dos through the Windows VISTA boot menu", which is adding a grldr.mbr item in BCD.
As the influence of grub4dos expands day by day, more and more tools based on grub4dos are emerging, such as the relatively influential one-click ghost,矮人DOS toolkit, MAXDOS, etc. (My "GGhost One-Click Restore" is also based on grub4dos). To avoid conflicts, most of these software use the method of modifying the grldr filename. To modify it to a personalized filename, except for recompiling by oneself, generally a brute-force modification method is adopted. Obviously, this has certain difficulties in operation for general users, which is likely to cause the software to not run or bring unpredictable bugs.
However, the new version of grubinst [2007-07-16(r17)] fully supports modifying the external grldr/grldr.mbr filename by oneself, which is undoubtedly a boon for beginners.
With grubinst, you can also simply and reliably modify it to a personalized filename.
The following takes renaming grldr to mygrldr as an example for illustration.
First, copy grldr to C:\ and rename it to mygrldr,
Then, in the grubinst directory, execute the following command:
grubinst -e -b=mygrldr C:\mygrldr
In this way, the boot.ini can be correspondingly changed to:
c:\mygrldr="My GRUB4DOS"
It can also be booted with grldr.mbr. For example, rename grldr.mbr to mygrldr.mbr and execute:
grubinst -e -b=mygrldr C:\mygrldr.mbr
Add the startup item:
C:\mygrldr.mbr="My GRUB4DOS
After correspondingly modifying the BCD file, the personalized filename can also be used in the Vista system.
【Tip: grldr requires version 7-10 or later.】