说明:
之前有网友问我,说有没有比较快的GHOST恢复映象,当时有些不解,以为指的是GHO镜像,当然那只与其压缩的程度的有关了,我便这样回答;后来才明白,他说的是指用来恢复的IMG映象文件.这便使我想到了在EZB做启动盘时,EZB在进行IMG磁盘仿真时,DOS界面总会停顿很久,然后才进入程序,实际使用时的确很不爽!
然而这并不是什么问题,DX们早就在用GRUB或是BCDW...等等在做启动盘了,而且并不会有上面的问题;事实的确如此,但是往往这样的启动界面画面不堪入目:) ,虽然也可以DIY但总是还有它的一些框框在上面,看着不爽;而用EZB你可以尽可能的随心所欲PS出属于你的每一个元素,清爽靓丽~~;我在废话吗? 慢着,先别急着拿砖头扔我,我打字也很累的,呵呵~~:) 写这篇教程的目地也就是为了让菜菜们用EZB制作GRUB仿真的IMG映象又有自已专业LOGO的启动盘! 实在是一举两得.好了,废话到此为止,下面进入主题:
请先准备好如下工具:
1 ,grub4dos内置菜单编辑器.rar
2, grldr
如果你对GRUB还不了解,你可以先学习我的另一篇贴子:
http://bbs.wuyou.com/viewthread.php?tid=111300&;
一.要实现用EZB的GRUB仿真IMG映象并不难,EZB早就实现了这个功能的,但也许有的人并不清楚.我们平时在做启动盘时,习惯的都是这样来写run *.img ... 这时运行IMG的结果就会出现第一种情况,即DOS启动初始化系统的时间很长,就会出现一个地方停顿很久.即然如此,那就用GRUB仿真IMG吧,方法: bcdw /grldr 如下图:

意思是指定光盘根目录的grldr为引导文件,启动GRUB,GRUB会自动检查菜单menu.lst文件,由menu.lst文件中指定的IMG映象文件在光盘中的存放位置(还包括映射的命令等),然后GRUB仿真这个IMG映象,如果成功一切就OK了.事实证明,这个过程很智暂,也就是我们要的那种快的效果!
这里要说明一下的是menu.lst文件分两种,一种是内置的,一种是外置的,外置就是放在光盘根\目录下就可以了,而内置菜单则编译在grldr文件自身代码里面了.那么现在问题是,用bcdw /grldr还仅仅是完成了主界面菜单项其中一项的IMG仿真,虽然我们可以用run 1.img run 2.img run 3.img ... 那如果我们也都用bcdw /grldr行吗?? 在光盘根目录只能有一个grldr文件的啊,那不都是执行同一个操作了吗. 虽然在menu.lst文件中我们可以列举更多的IMG来可供我们选择执行某个IMG映象,但那毕竟不是我们所需要的那种效果,我们所要的,就是从主界面选择某个菜单项,就直接GRUB仿真某个IMG,那到底有没有办法做到呢?答案是肯定的,继续往下看吧...
二,这步是关键,一定要仔细.先说下原理:
利用多个grldr文件,以及内置菜单特点,再用grub4dos内置菜单编辑器,为各个grldr文件导入准备好的每个menu.lst文件内容,然后在EZB的执行命令框里写上bcdw /xxldr就大功告成了~~呵呵:)
1>先在光盘根目录建立一个文件夹,比如grubldr,要小写,然后复制grldr文件到该目录,再把它多复制几份,比方你的EZB主界面菜单有几项,便可以复制成几个,如图:
2>然后依次把它们重命名,如图:
这里要注意,为了安全起见,建议只改动前两个字母如??ldr,依次改完所有的;这里的目地也就是让前面的bcdw命令与这里的*ldr文件一一对应起来, 因此,在执行的过程中,它们就可以独立地执行各自的文件.明白了吧?
有人会说grldr要放在根目录,最初我也这样想,在BBS上老大们都说一定要放在根目录,不然不行;但这么多的*ldr都放在根目录,肯定不好看,这就是我为什么在根目录建立grubldr这个文件夹的原因,经过我的实践证明,在用EZB做GRUB仿真IMG时,grldr文件可以不在根目录,在其它情况下除外,比如硬盘就必须在根目录.
完成这步以后,grldr文件名是各不相同了,但是它们实质上还是同一个文件,因此我们需要改变他们的内置菜单内容,以达到它们执行不同操作的目地.所以接下来我们要编辑好各自外部的menu.lst菜单内容,然后导入就行了.
3>再在光盘根目录建立一文件夹,比如grubimg,要小写,然后把你的所有IMG映象都放在这个目录下,如图:

以前用"run"命令时,IMG文件我们都在放在EZBOOT这个文件夹下面的,现在用"bcdw"命令所以IMG文件要放在光盘根目录下的grubimg目录下,但你也可以改为你自已想要的目录名.
4>编辑menu.lst菜单的内容为如下,见图:
说明:只需要这几句就足够了,不要再添加新的语句,否则执行时有可能调出GRUB的启动菜单界面;这里只要明白第一句话的意思的就行了,上图中map是磁盘仿真命令,mem (cd)代表光盘根目录,grubimg/ghost_xp.img是映象文件的存放路径,整句意思就是对光盘根目下的
grubimg/ghost_xp.img文件进行磁盘仿真.明白了吧~~呵呵:)
5>将你的menu.lst文件,用同样的方法以一个复制出多个,然后改为不同的名字.
注意:这里所有的*.lst文件只是临时需要的,因为我们使用的是grldr内置菜单,所以千万不要放在光盘里,你可以先放在硬盘的任何地方,等完成
导入之后就不需要了.如图:

同样的,这里所有的*.lst文件实质上也是同一个文件,因此我们需要将我们在第4步里说明的,将每个*.lst文件的第一句话稍作改变即可,也就是改为你自已的IMG映象文件的存放路径,然后保存.如图:
6>用grub4dos内置菜单编辑器(这里要感谢作者提供了这么好的一个工具,不然要麻烦多了)将上面编辑好的*.lst文件导入到相应的*ldr文件当中,要仔细,不要搞混了,如图:
依次完成导入所有的菜单之后,那么在光盘\grubldr\*ldr 所有文件都为各自不同内置菜单的引导的文件了.到此为止你就成功大半了! 呵呵~~
7>万事俱备,再打开EZB选到菜单条,在执行命令中输入bcdw /grubldr/*ldr,见图:

依次改完所有对应菜单项目之后OK.
三.用UltraISO制作ISO光盘映象
完成了以上的步骤,现在可以开始制作ISO输出了.
1>选择启动光盘菜单--加载引导文件--选择引导文件loader.bin,如图:
2>如果你不希望别人看到grubimg和grubldr文件夹的内容,完全可以将它们隐藏起来,选中这两个文件夹点右键/隐藏,EZBOOT最好也隐藏起来,如图:
3>选择文件菜单--属性--勾上允许小写字母,这一步必须要做,否则最后将不成功.如图:
4,最后选择保存ISO光盘映象就OK了.最后发一张我做的启动界面:
希望花了这么长时间来写这篇教程,但愿对老鸟和小鸟都有帮助~~~
PS:累死我了,又是凌晨2点了,不过教程做完了,还是很幸慰~~~呵呵...
哦,忘了,今天是新年了,祝大家元旦快乐哦~~
本人QQ:51461981
hlz8088@163.com
Last edited by hulongzhuo on 2008-1-1 at 11:22 PM ]
Instructions:
Previously, a netizen asked me if there was a relatively fast GHOST recovery image. At that time, I was a bit confused and thought it referred to the GHO image, which is only related to its compression level, so I answered like that; later I realized that he was referring to the IMG image file used for recovery. This made me think that when making a bootable disk with EZB, when EZB is performing IMG disk emulation, the DOS interface always pauses for a long time before entering the program, which is really unpleasant in actual use!
However, this is not a problem. DXs have long been using GRUB or BCDW... and other tools to make bootable disks, and there will be no above problems; this is indeed the case, but often such boot interface screens are unsightly:) Although you can also DIY, there are always some frames on it, which is unpleasant to look at; with EZB, you can be as arbitrary as possible to PS out each element that belongs to you, fresh and beautiful~~; Am I talking nonsense? Wait, don't rush to throw bricks at me, I'm also tired of typing, hehe~~:) The purpose of writing this tutorial is also to let the novices use EZB to make a bootable disk with GRUB emulated IMG image and their own professional LOGO! It's really killing two birds with one stone. Okay, that's all for nonsense, and now let's get to the topic:
Please prepare the following tools first:
1. grub4dos built-in menu editor.rar
2. grldr
If you are not familiar with GRUB, you can first study my other post:
http://bbs.wuyou.com/viewthread.php?tid=111300&;
I. It is not difficult to realize the GRUB emulated IMG image with EZB. EZB has already realized this function, but maybe some people are not clear about it. When we usually make a bootable disk, we are used to writing run *.img... like this. At this time, the result of running IMG will have the first situation, that is, the time for DOS to start and initialize the system is very long, and there will be a place where it pauses for a long time. Since this is the case, let's use GRUB to emulate IMG. The method: bcdw /grldr is shown in the following figure:

It means to specify the grldr in the root directory of the CD as the boot file, start GRUB, GRUB will automatically check the menu.lst file, and the storage location (including mapping commands, etc.) of the IMG image file specified in the menu.lst file in the CD, then GRUB emulates this IMG image, and if it is successful, everything is OK. The fact proves that this process is very temporary, that is, the fast effect we want!
Here, it should be noted that there are two types of menu.lst files, one is built-in and the other is external. The external one is placed in the root \ directory of the CD, and the built-in menu is compiled in the grldr file itself. Then the problem is that using bcdw /grldr only completes the IMG emulation of one of the main interface menu items. Although we can use run 1.img run 2.img run 3.img..., can we also use bcdw /grldr? There can only be one grldr file in the root directory of the CD, and then they are all performing the same operation. Although we can list more IMGs in the menu.lst file for us to choose to execute a certain IMG image, but that is not the effect we need. What we want is to select a certain menu item from the main interface and directly GRUB emulate a certain IMG. Is there really a way to do it? The answer is yes, let's continue to read down...
II. This step is the key, and you must be careful. First, let's talk about the principle:
Use multiple grldr files, and the characteristics of the built-in menu, then use the grub4dos built-in menu editor, import the prepared menu.lst file content for each grldr file, and then write bcdw /xxldr in the execution command box of EZB to be done~~ hehe:)
1> First, create a folder in the root directory of the CD, such as grubldr, which should be in lowercase, then copy the grldr file to this directory, and then copy it several times. For example, if your EZB main interface menu has several items, you can copy it into several, as shown in the figure:
2> Then rename them one by one, as shown in the figure:

Here, for the sake of safety, it is recommended to only change the first two letters such as??ldr, and change all of them in turn; the purpose here is also to make the previous bcdw command correspond one by one with the *ldr file, so that they can independently execute their respective files during the execution process. Do you understand?
Some people will say that grldr should be placed in the root directory. I also thought so at first. The bosses on the BBS all said that it must be placed in the root directory, otherwise it won't work; but placing so many *ldr in the root directory must not be beautiful. This is the reason why I created the grubldr folder in the root directory. After my practice proves that when using EZB to make GRUB emulated IMG, the grldr file can not be in the root directory, except in other cases, such as the hard disk must be in the root directory.
After completing this step, the names of the grldr files are different, but they are essentially the same file, so we need to change their built-in menu content to achieve the purpose of them performing different operations. So next we need to edit the content of each external menu.lst menu, and then import it.
3> Then create a folder in the root directory of the CD, such as grubimg, which should be in lowercase, and then put all your IMG images in this directory, as shown in the figure:

When we used the "run" command before, the IMG files were all placed in the EZBOOT folder. Now with the "bcdw" command, the IMG files should be placed in the grubimg directory under the root directory of the CD, but you can also change it to the directory name you want.
4> Edit the content of the menu.lst menu as follows, see the figure:

Explanation: Only these few sentences are enough, don't add new statements, otherwise the GRUB boot menu interface may be called out when executing; here just understand the meaning of the first sentence. In the above figure, map is the disk emulation command, mem (cd) represents the root directory of the CD, grubimg/ghost_xp.img is the storage path of the image file, and the whole sentence means to perform disk emulation on the grubimg/ghost_xp.img file under the root directory of the CD. Do you understand~~ hehe:)
5> Copy your menu.lst file in the same way to make multiple copies, and then change them to different names.
Note: All these *.lst files are only temporarily needed, because we are using the grldr built-in menu, so don't put them in the CD at all. You can first put them anywhere on the hard disk, and you don't need them after completing the import. As shown in the figure:

Similarly, all these *.lst files are essentially the same file, so we need to change the first sentence in each *.lst file that we explained in step 4 a little, that is, change it to the storage path of your own IMG image file, and then save. As shown in the figure:
6> Use the grub4dos built-in menu editor (here, I would like to thank the author for providing such a good tool, otherwise it would be much more troublesome) to import the above edited *.lst file into the corresponding *ldr file. Be careful not to get confused, as shown in the figure:
After successfully importing all the menus in turn, then all the files in CD\grubldr\*ldr are files with their own different built-in menu guides. So far, you have succeeded in most of it! hehe~~
7> Everything is ready, then open EZB and select the menu bar, enter bcdw /grubldr/*ldr in the execution command, see the figure:

Change all the corresponding menu items in turn and then OK.
III. Make ISO CD image with UltraISO
After completing the above steps, now you can start making ISO output.
1> Select the boot CD menu--Load boot file--Select boot file loader.bin, as shown in the figure:
2> If you don't want others to see the content of the grubimg and grubldr folders, you can completely hide them. Select these two folders, right-click/hide, and it is best to hide EZBOOT as well, as shown in the figure:
3> Select the file menu--Properties--Check to allow lowercase letters, this step must be done, otherwise it will not be successful in the end. As shown in the figure:
4. Finally, select to save the ISO CD image and it's OK. Finally, send a boot interface I made:
I hope that after spending so much time writing this tutorial, I hope it will be helpful to both the old birds and the young birds~~~
PS: I'm exhausted, it's 2 o'clock in the morning again, but the tutorial is done, and I'm still very relieved~~~ hehe...
Oh, I forgot, today is New Year's Day, I wish everyone a happy New Year's Day哦~~
My QQ: 51461981
hlz8088@163.com
Last edited by hulongzhuo on 2008-1-1 at 11:22 PM ]