怎么样通过模拟BIOS引导来制作多重启动菜单?

怎么样通过模拟BIOS引导来制作多重启动菜单?

(以下文章仅为个人观点,如有不当请指正)

********如何利用模拟BIOS引导来制作多重启动菜单********

就目前在无忧启动所介绍的多重启动有一个较大的缺陷,就是各种机器BIOS
引导CD时的处理方法不同,例如Compaq只引导第一个启动映像文件,而忽略
其它引导文件。
有没有其他方法来解决这个问题呢,答案很确定,国外早就有人研究出利用
模拟BIOS引导来制作多重启动菜单,他的原理很简单,就是第一个引导文件
模拟BIOS来引导其他启动文件。
究竟应该怎么制作呢,具体方法如下:
1. 首先你必须有以下工具文件
a.制作CD映像(ISO)的工具,如:
cdimage,easycd,这里以cdimage为例。
注:cdimage必须在 win2000控制台下运行。
b.制作启动CD的工具,如:
mkbootcd
c.空白的启动区文件,一般是2048个空字节,这里假设为bootcat.bin
d.BIOS启动模拟文件:diskemu.bin
e.刻录工具,如:easycd
2. 其次你必须制作启动映像文件,如何制作启动映像文件请去无忧察看,
这里假设为dos.img,win98.img
3. 在你的硬盘上建一个目录example,在下面建子目录CD,拷贝cdimage,
mkbootcd到example目录下,在example目录下建立一文件mkbootcd.txt,
拷贝bootcat.bin,diskemu.bin,dos.img,win98.img到CD目录下,现在
你的目录结构应该如下:
example
example/cdimage.exe
example/mkbootcd.exe
example/mkbootcd.txt
example/cd
example/cd/bootcat.bin
example/cd/diskemu.bin
example/cd/dos.img
example/cd/win98.img
4. 制作ISO文件
在Win2000控制台下进入example目录,输入以下命令:
cdimage -lMULTIBOOT cd bootcd.iso
这时会在example目录下产生文件bootcd.iso
5. 编写mkbootcd.txt
打开mkbootcd.txt,输入如下文本:
;
; MKBOOTCD command file created by Gary Tong
; for DiskEmu.bin v0.8 Beta
;
; Center the MultiBoot Menu Title in a 24-character range
; / /
-S MultiBoot Menu
bootcat.bin
;
;--- Boot entries ---
; Default boot image entry
; Boot Media Type = No Emulation
-T0
; Sector Count in 512-byte sectors
-C8
; Recommended DiskEmu.bin Load Segment is between 4000 and 9000
-L5000
diskemu.bin
; Continue with remaining boot image entries
; Only each Section's first bootable image will appear in DiskEmu.bin's Menu
; 80x86 Platform ID w/high bit set to avoid PC BIOS multiboot menu
-P80
; Boot Media Type = 1.44 MB Floppy
-T2
; Sector Count in 512-byte sectors
-C1
; Use Default Load Segment (07C0)
-L0
; Up to nine boot images may be listed here
; Left justify the Menu text for each entry in a 28-character range
; / /
-SMS-DOS
dos.img
-SMicrosoft Windows 98
win98.img
; etc...
以上文字内容请自己体会。
6. 制作启动CD
进入example目录,输入以下命令:
mkbootcd bootcd.iso bootcat.bin - < mkbootcd.txt
7. 用easycd将bootcd.iso刻录到CD上(不要告诉我刻完后你在CD上看到bootcd.iso,我倒)