title img&iso
command --set-path=(bd)/BOOT/GRUB/ && checkrange 0x80 read 0x8280 && map (hd0) (hd-1) && map (hd1) (hd0) && map --rehook && root (hd-1,0)
WENV reset && clear && echo -e \nPlease input the ISO/IMG PATH or press Enter to use /WIN$.ISO as default.\n
WENV set path=$U,$input,Input PATH here, begin with "/" :
WENV get path || clear && echo -e \nNow use /WIN$.ISO as default. && WENV set path=/WIN$.ISO
WENV check ${path##.}==" " (call echo -e \n ]]& call pause Input error, Press any key to return... ]]& call configfile (md)4+8)
WENV check ${path:0:1}<>/ set path=/${path}
#checkrange 0x9f:0xff read 0x8280 && WENV set de2=${path##/} && WENV check ${de2#.}<>${de2##.} set path=${path%/}/${de%%.}_${de2#.}
WENV (call find --set-root --devices=ch ${path} ]]| call echo -e \n ]]& call pause File not found,Press any key to return... ]]& call configfile (md)4+8)
WENV (call clear ; call echo -e \nNow loading ${path} ...\n)
WENV check ${path##.}<>ISO (call map --mem ()${path} (fd0) ; call map --hook ; call rootnoverify (fd0) ; call chainloader (fd0)+1 ; call boot)
WENV check ${path##.}==ISO (call map --mem ()${path} (0xff) ]]& call map --hook ]]| call map ()${path} (0xff) ]]& call map --hook)
map --mem (bd)/BOOT/IMGS/FIRADISK.IMG (fd1) || map --mem (hd-1,0)/BOOT/IMGS/FIRADISK.IMG (fd1)
map --mem (md)0x6000+2880 (fd0)
dd if=(fd1) of=(fd0) count=1 && clear
echo -e \nInput D to boot from the disk to continue System Installation \nor press Enter key to boot form the ISO.\n
WENV set in=$U,$input,Input here :
WENV check ${in}<>D call chainloader (0xff) && boot
find --set-root --devices=h /$LDR$ && cat --length=0 ()/WIN_NT$.~BT/SETUPLDR.BIN && chainloader --force /$LDR$ && boot
find --set-root --devices=h /$LDR$ && cat --length=0 ()/NTDETECT.COM && chainloader --force /$LDR$ && boot
find --set-root --devices=h /NTLDR && cat --length=0 ()/NTDETECT.COM && chainloader --force /NTLDR && boot
kernel || pause File not found,Press any key to return... && configfile (md)4+8
31.11 KB, 下载次数: 488, 下载积分: 无忧币 -2
Firadisk 0.0.1.24
原帖由 丞羽 于 2010-10-8 16:58 发表
虽然对于较深入的grub4dos,偶是菜鸟一个,不过偶支持成品...最小弄个类似NTboot那样的通用 IMG/ISO 启动工具,工具小,功能强...呵呵...虽然p大的通用启动工具不错,不过由于他还是太大了,而且多余菜单让人有 ...
原帖由 sratlf 于 2010-10-8 18:53 发表
因为没有考虑pd的情况 补充完整了也不错
忘记问了 pxe启动时加载firadisk驱动了吗
cat --length=0 (cd)/BOOT/IMGS/FIRADISK.IMG && root (cd)
cat --length=0 (ud)/BOOT/IMGS/FIRADISK.IMG && root (ud)
cat --length=0 (hd-1,0)/BOOT/IMGS/FIRADISK.IMG && root (hd-1,0)
这三个判断里可没有pxe情况
原帖由 sratlf 于 2010-10-9 09:50 发表
或者这么写也行
checkrange 0x9f read 0x8280 && root (cd)
checkrange 0x80 read 0x8280 && root (hd-1,0)
checkrange 0x21 read 0x8280 && root (pd)
checkrange 0x23 read 0x8280 && root (ud)
map --mem ()/BOOT/GRUB/FIRADISK.IMG
checkrange 0x9f read 0x8280 && command --set-path=(cd)/BOOT/G4D
#checkrange 0x9f read 0x8280 && WENV set de=${path##/} && WENV check ${de#.}<>${de##.} set path=${path%/}/${de%%.}_${de#.}
checkrange 0x9f read 0x8280 && root (cd) || checkrange 0x80 read 0x8280 && root (hd-1,0) || checkrange 0x23 read 0x8280 && root (ud)
checkrange 0x9f:0xff read 0x8280 && command --set-path=(cd)/BOOT/GRUB
#checkrange 0x9f:0xff read 0x8280 && WENV set de=${path##/} && WENV check ${de#.}<>${de##.} set path=${path%/}/${de%%.}_${de#.}
checkrange 0x9f:0xff read 0x8280 && root (cd) || checkrange 0x80 read 0x8280 && root (hd-1,0) || checkrange 0x23 read 0x8280 && root (ud) || checkrange 0x21 read 0x8280 && pxe keep && root (pd)
原帖由 blbl 于 2010-11-25 13:30 发表
全部换成 今天的版本
wenv-2010-11-25.zip
grub4dos-0.4.5b-2010-11-24-fix2.zip
还是不行 进入菜单后 img&iso 回车出现
\nPlease input ISO/IMG PATH or press Enter to use /WIN$.ISO as defa ...
欢迎光临 无忧启动论坛 (http://bbs.c3.wuyou.net/) | Powered by Discuz! X3.3 |