Board logo

标题: upx压缩grub4dos后装进虚拟启动盘的问题! [打印本页]

作者: qsj     时间: 2007-3-20 08:08    标题: upx压缩grub4dos后装进虚拟启动盘的问题!

把grub4do装进启动盘,引导windows,linux,或镜像文件,能让启动盘增色不少。但2.88Mb或1.44Mb的软盘镜像(大于2.88Mb应用上有限制!),又想多装一些dos工具,压缩170kb大小的grub4dos也就成了自然。
选择2006.12.28的grub4dos,diet压缩为100kb大小,upx压缩后只有90kb大小,在config.sys中写入device=himem.sys(或不写)  install=grub.exe或autoexec.bat中写入if %config%=grb grub.exe,虚拟机运行正常,能找到软盘menu.lst。用ntldr加载此镜像运行时后者正常,原版grub4dos不能查找虚拟软盘中的menu.lst!
问题是2007-3发行的grub4dos0.4.3压缩后无法象以上所述来运行!只能挂住死机。
附件 1: GRUB.rar (2007-3-20 08:08, 89.28 K,下载次数: 29)

作者: qsj     时间: 2007-3-20 08:19
CONFIG.SYS:
[GRB]
device=himem.sys
rem install=grub.exe

AUTOEXEC.BAT
@ECHO OFF
IF %CONFIG%#==GRB# GRUB.EXE

menu.lst:
timeout 15
default 0

title find and load ntldr of windows nt/2k/xp
find --set-root /ntldr
chainloader /ntldr

title find and load io.sys of windows 9x/me
find --set-root /io.sys
chainloader /io.sys

title find and boot linux with menu.lst already installed
find --set-root /sbin/init
configfile /boot/grub/menu.lst

title find and boot ndos.img
find --set-root /ndos.img
map --mem /ndos.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)