|
回复 #13 chenall 的帖子
用BootICE直接复制0PE的内置菜单,结果内置菜单不起作用,谁能帮忙下处理内置菜单- ;Special MENU for 0PEterminal consoledebug offcheckrange 20111030:-1 read 0x8278 || clear && pause You should use grub4dos-0.4.5b-2011-10-30 or above. && rebootwrite 0x60368 0checkrange 0x80 read 0x8280 && write 0x60368 1if "%?_BOOT:~1,3%"=="hd0" write 0x60386 1find --devices=u && checkrange 0x80 calc *0x82B9&0xff && write 0x60368 1echo -e \n\nPress a key within 3 seconds:echo -e \n\t<Enter>--Continue(by default)\n\t<Esc>--Grub4Dos Commandline\n\t<Space>--Load 0PE.ISO into memory entirely\nset tkey= && pause --wait=3 && set /A tkey=*0x4CB00if not exist tkey commandlinedebug offset mapmem=if /i "%tkey%"=="0x20" set mapmem=1set tkey=#可在这里指定整体启动0PE.ISO的路径、名字。默认/0PE.ISO。指定的不存在,就找/0PE/0PE.ISO。if not exist PEISO set PEISO=/0PE.ISO#可改SRS路径。set SRS0PE=/SRS/call Fn.0 0 0x8217 | set /u menu0pe=checkrange 0x21 read 0x8280 && if not "%menu0pe:~-4%"==".0PE" pxe detect NotExistset menu0pe=write 0x60064 0write 0x6006C 0write 0x60130 0checkrange 0x21 read 0x8280 && write 0x60064 1set noacc=read 0x60064 && set noacc=1 ! if not exist (ud)/BOOT/GRUB/USB_ACC.0PE if not exist (224)/BOOT/GRUB/USB_ACC.0PE set noacc=1set curdev=%@root%if not exist noacc if exist (ud)/BOOT/GRUB/USB_ACC.0PE (ud)/BOOT/GRUB/USB_ACC.0PE --time-out-disable:0if not exist noacc if not exist (ud)/BOOT/GRUB/USB_ACC.0PE (224)/BOOT/GRUB/USB_ACC.0PE --time-out-disable:0rootnoverify %curdev%default 0timeout 0#0titleechoecho 0PE by Pseudoread 0x60064 || goto 4goto 5#1titlegoto 3#2titleset noacc=set mapmem=dd if=(md) of=(md) bs=1 count=8 skip=0x829c seek=0x60130echoread 0x60064 && pxe || echo -necho Device of 0PE.GZ:debug onroot || echo :(:(:debug offcheckrange 0xC0 read 0x8280 && write 0x6006C 1read 0x6006C && cdrom --stopecho Loading /0PE/0PE.GZ...map --mem ()/0PE/0PE.GZ (hd)map --hookread 0x6006C && cdrom --initread 0x6006C && map --hookwrite --offset=200 (hd-1,0)/BAT/_ENV.BAT set PEISO=%PEISO%\r\ncat --locate=/ --replace=\\ (hd-1,0)/BAT/_ENV.BATif exist ()/0PE/GRUB.0PE (hd-1,0)/BIN/FAT copy /o ()/0PE/GRUB.0PE (hd-1,0)/GRUB.EXE || pause /0PE/GRUB.0PE not found. && reboot#set burgcd=#if exist (224)/0PE/0PE.GZ set burgcd=1 && find --set-root %PEISO% && map %PEISO% (0xff) && map --hook && set burgcd= ! echo -n#if exist burgcd map --floppies=1 && map (fd0,0)%PEISO% (0xff) && map --hook && echo %PEISO% is in (fd0,0) && set burgcd= ! if exist burgcd pause --wait=5 %PEISO% not found. set PEISO=echo && configfile (hd-1,0)/BAT/M1.LST#3titleecho Loading %@root%%PEISO%...read 0x60064 && checkrange 0x21 read 0x82A0 && set mapmem=1if "%@root%"=="(cd)" set mapmem=1checktimeif not exist mapmem echo Direct map %PEISO% && map %PEISO% (0xff) || set mapmem=1 && echo Warnning: Fail to direct map %PEISO%, try to map with --mem.if exist mapmem echo Map %PEISO% with --mem && map --mem %PEISO% (0xff) || pause Error: Fail to map --mem %PEISO% (0xff). && rebootchecktimemap --hookrootnoverify (0xff)goto 2#4titleif exist (ud)/0PE/0PE.GZ rootnoverify (ud) && goto 2 ! echo -nif exist (ud)%PEISO% && rootnoverify (ud) && goto 1 ! echo -nif exist (ud)/0PE/0PE.ISO set PEISO=/0PE/0PE.ISO && rootnoverify (ud) && goto 1 ! echo -nif exist /0PE/0PE.GZ && goto 2 ! echo -nif exist %PEISO% && goto 1 ! echo -nif exist /0PE/0PE.ISO set PEISO=/0PE/0PE.ISO && goto 1 ! echo -nread 0x60064 || goto 5goto 6#5titlefind --devices=uh --set-root /0PE/0PE.GZ && goto 2 ! echo -nfind --devices=uh --set-root %PEISO% && goto 1 ! echo -nfind --devices=uh --set-root /0PE/0PE.ISO && set PEISO=/0PE/0PE.ISO && goto 1 ! echo -nfind --devices=cfp --set-root /0PE/0PE.GZ && goto 2 ! echo -nfind --devices=cfp --set-root %PEISO% && goto 1 ! echo -nfind --devices=cfp --set-root /0PE/0PE.ISO && set PEISO=/0PE/0PE.ISO && goto 1 ! echo -nread 0x60064 && goto 4goto 6#6titlepause Error:/0PE/0PE.GZ, %PEISO% and /0PE/0PE.ISO not found!
复制代码 |
|