楼 主
upx压缩grub4dos后装进虚拟启动盘的问题!
发表于 2007-03-20 08:08 · 中国 上海 电信
初级用户
★
积分 70
发帖 34
注册 2006-10-28 06:23
19年会员
UID 68609
性别 男
状态 离线
把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压缩后无法象以上所述来运行!只能挂住死机。
第 2 楼
发表于 2007-03-20 08:19 · 中国 上海 电信
初级用户
★
积分 70
发帖 34
注册 2006-10-28 06:23
19年会员
UID 68609
性别 男
状态 离线
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)
论坛跳转: