『第 2 楼』:
使用 LLM 解释/回答一下
3 grub4dos初级教程-进阶篇
3.3 使用个性化grub4dos文件名
grub的核心文件是grldr/grldr.mbr,入门篇中介绍了“通过Windows NT的启动菜单进入grub4dos”,即在boot.ini中加入grldr项;以及“通过Windows VISTA的启动菜单进入grub4dos”,即在BCD中加入grldr.mbr项。
随着grub4dos影响的日益扩大,基于grub4dos的工具也越来越多,比如影响较大的一键ghost,矮人DOS工具箱,MAXDOS等等(本人的“GGhost一键恢复”也是基于grub4dos的)。为避免冲突,这些软件多数采用了修改grldr文件名的方式。修改成个性化文件名,除了自己重新编译,一般要采用暴力修改的方式进行。显然这对于一般使用者来说,操作上存在一定难度,易造成软件无法运行,或带来不可预知的bug。
不过,新版grubinst[2007-07-16(r17)]已全面支持自己修改外部grldr/grldr.mbr文件名,这对于初学者来说无疑是个福音。
采用grubinst,你也能简单可靠地修改成个性化文件名了。
下面以把grldr改名为mygrldr为例进行说明。
首先把grldr复制到C:\,并改名为mygrldr,
然后在grubinst目录下,执行以下命令:
grubinst -e -b=mygrldr C:\mygrldr
这样boot.ini中就可相应改成:
c:\mygrldr="My GRUB4DOS"
也可以用grldr.mbr引导,比如把grldr.mbr改名为mygrldr.mbr,执行:
grubinst -e -b=mygrldr C:\mygrldr.mbr
启动项中加入:
C:\mygrldr.mbr="My GRUB4DOS
相应修改BCD文件后,Vista系统中也能使用个性化文件名了。
【提示:grldr需7-10或以后的版本。】
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 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.】
|