|
不点 发表于 2013-6-18 18:04
Vbox 的问题确实也存在。不过,于山兄所涉及到的问题,似乎与那些问题都没什么关系。他的情况是死在
h ...
这个菜单,只是把延时3秒改成20秒!
if not exist showmenu set showmenu=0
terminal console
debug off
font
write 0x60368 0
checkrange 0x80 read 0x8280 && write 0x60368 1
if "%?_BOOT:~1,3%"=="hd0" write 0x60368 1
find --devices=u && checkrange 0x80 calc *0x82B9&0xff && write 0x60368 1
terminal graphics
graphicsmode -1 640
checkrange 20130516:-1 read 0x8278 || clear && echo Need grub4dos-0.4.6a-2013-05-16 or above. && pause 您用了旧版grub4dos。此PE强加限制:须用0.4.6a-2013-05-16以上版本。 && reboot
echo -e \n\n20秒内按键有花样:
echo -e \n\t<回车键>——显/隐菜单切换(有菜单强,无菜单快)\n\t<空格键>——ISO全载入内存(可拔U盘,可插3.0口)\n\t<Esc 键>——grub4dos-0.4.6a命令行\n
set keyt=
pause --wait=20 && set /A keyt=*0x4CB00
if not exist keyt commandline
debug off
set mapmem=
if /i "%keyt%"=="0x20" set mapmem=1
set ready=
#可改0PE.ISO的路径、名字。默认/0PE.ISO。指定的不存在,就找/0PE/0PE.ISO。
if not exist PEISO set PEISO=/0PE.ISO
#可改SRS路径。
if not exist SRS0PE set SRS0PE=/SRS/
call Fn.0 0 0x8217 | set /u menu0pe=
checkrange 0x21 read 0x8280 && if not "%menu0pe:~-4%"==".0PE" pxe detect NotExist
set menu0pe=
write 0x60064 0
write 0x6006C 0
write 0x60130 0
checkrange 0x21 read 0x8280 && write 0x60064 1
checkrange 524:-1 calc *0x413 & 0xffff || map --int15nolow=1 && pause Warnning: less memory
set noacc=
if "%showmenu%"=="1" if /i "%keyt%"=="0xD" set noacc=1
if not "%showmenu%"=="1" if /i "%keyt%"=="0x1" set noacc=1
read 0x60064 && set noacc=1 ! if not exist (bd)/BOOT/GRUB/USB_ACC.0PE set noacc=1
set curdev=%@root%
if not exist noacc if exist (bd)/BOOT/GRUB/USB_ACC.0PE (bd)/BOOT/GRUB/USB_ACC.0PE --time-out-disable:0
rootnoverify %curdev%
default 0
timeout 0
#0
title
echo
echo 0PE by Pseudo
read 0x60064 || goto 4
goto 5
#1
title
goto 3
#2
title
set noacc=
dd if=(md) of=(md) bs=1 count=8 skip=0x829c seek=0x60130
echo
read 0x60064 && pxe || echo -n
echo Loading /0PE/0PENB.LZMA from %@root%...
map --mem ()/0PE/0PENB.LZMA (hd)
map --hook
write --offset=200 (hd-1,0)/BAT/_ENV.BAT set PEISO=%PEISO%\r\n
cat --locate=/ --replace=\\ (hd-1,0)/BAT/_ENV.BAT
set burgcd=
if exist (224)/0PE/0PENB.LZMA 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= ! echo -n
if exist burgcd pause --wait=5 %PEISO% not found.
if exist ()%PEISO% && map --status=0xff > nul || set ready=1 && goto 3
goto 7
#3
title
echo Loading %@root%%PEISO%...
read 0x60064 && checkrange 0x21 read 0x82A0 && set mapmem=1
if "%@root%"=="(cd)" set mapmem=1
if 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). && reboot
map --hook
if not exist ready rootnoverify (0xff) && goto 2
goto 7
#4
title
if exist (bd)/0PE/0PENB.LZMA rootnoverify (bd) && goto 2
if exist (bd)%PEISO% && rootnoverify (bd) && goto 1
if exist (bd)/0PE/0PE.ISO set PEISO=/0PE/0PE.ISO && rootnoverify (bd) && goto 1
if exist /0PE/0PENB.LZMA goto 2
if exist %PEISO% goto 1
if exist /0PE/0PE.ISO set PEISO=/0PE/0PE.ISO && goto 1
if exist (hd0)/0PE/0PENB.LZMA rootnoverify (hd0) && goto 2
read 0x60064 || goto 5
goto 6
#5
title
find --devices=uh --set-root /0PE/0PENB.LZMA && goto 2 ! echo -n
find --devices=uh --set-root %PEISO% && goto 1 ! echo -n
find --devices=uh --set-root /0PE/0PE.ISO && set PEISO=/0PE/0PE.ISO && goto 1 ! echo -n
if exist (0xff)+1 rootnoverify (0xff)
find --devices=cfp --set-root /0PE/0PENB.LZMA && goto 2 ! echo -n
find --devices=cfp --set-root %PEISO% && goto 1 ! echo -n
find --devices=cfp --set-root /0PE/0PE.ISO && set PEISO=/0PE/0PE.ISO && goto 1 ! echo -n
read 0x60064 && goto 4
goto 6
#6
title
set /a bdrive=*0x8280&0xffffffff
dd if=(%bdrive%)96+1 of=(md)768+1 bs=1 count=8 skip=502
set /a pe=*393216&4294967295 && set /a ps=*393220&4294967295
write 393216 0
write 393220 0
map (%bdrive%)%pe%+%ps% (17)
map --hook
set pe= && set ps= && set bdrive=
set eb=17
rootnoverify (17)
if not exist /0PE/0PENB.LZMA && if not exist %PEISO% && echo -e ! echo -e \n\n嘿嘿\n别以为只要深度隐藏就没有美女认得出你是帅哥\n && pause --wait=3
if exist /0PE/0PENB.LZMA goto 2
if exist %PEISO% goto 1
pause Error:/0PE/0PENB.LZMA, %PEISO% and /0PE/0PE.ISO not found! && reboot
#7
title
set mapmem=
set PEISO=
set ready= && configfile (hd-1,0)/BAT/M1.LST
0000:0000000000000000000000000000000000000000000000000000000000000000
2014:0000000000000000007F000000000000
3001:00000000000000000000000000000000000000000000200018000C0004000000
3002:0000000000000000000000000000000000000000000018002400240018000000
4E0A:02000200020002000200020003F80200020002000200020002000200FFFE0000
4E0D:00007FFC00800080010001000340052009101108210441048100010001000100
4E3A:010021001100110001007FF80208020802880448044808081008200840508020
4E86:00007FF800100020004001800100010001000100010001000100010005000200
4EE4:01000100028004400A2011102108C0061FF00010002004400280010000800080
4EE5:0010041022102110211020102010202020202020244028503088210402020402
4F60:08800880088011FE110232043420502091281124122412221422102010A01040
5165:0400020001000100010002800280028004400440082008201010201040088006
5168:0100010002800440082010102FE8C106010001001FF00100010001007FFC0000
5185:0100010001007FFC410441044104428442444424481450144004400440144008
51FA:0100010021082108210821083FF801080100010041044104410441047FFC0004
5207:1000100011FC104410441E44F044104410441244144418841084010402280410
522B:00047F044104412441247F2410241024FF24112411241124210421044A148408
5236:0404240424043FA444240424FFE4042404243FA424A424A42684250404140408
52A0:100010001000107CFE4412441244124412441244124412442244227C4A448400
5355:1010082004403FF8210821083FF8210821083FF801000100FFFE010001000100
53E3:000000003FF820082008200820082008200820082008200820083FF820080000
53EA:00001FF01010101010101010101010101FF01010000008200810100820044004
53EF:00007FFE001000101F10111011101110111011101F1011100010001000500020
540D:0200020007F00810142062400280010006001FF8E8080808080808080FF80808
547D:0100010002800440082037D8C00600003EF82288228822883EA8229000800080
54E5:00007FFC00101F90109010901F900000FFFE00101F90109010901F9000500020
563F:000007FCF444955494E4944497FC904097FC9040F0409FFE0000052404920892
56DE:00003FF82008200827C82448244824482448244827C8200820083FF820080000
5728:020002000400FFFE080008401040304057FC904010401040104010401FFE1000
5973:02000200020002000400FFFE0420082008201040184006800180066018106008
5B57:020001007FFE400280041FE0004000800100FFFE010001000100010005000200
5B58:04000400FFFE0800080013F810103020504097FE104010401040104011401080
5B9A:020001007FFE4002800400003FF801000100110011F811001100290047FE8000
5C31:20401050FE48004800407DFE4450445044507C501090549092921112510E2200
5E05:082008204820482049FC49244924492449244924492409341128102020204020
5EA6:010000803FFE222022203FFC2220222023E020002FF02410422041C08630380E
5F3A:0000F9FC0904090479FC402083FE8222FA220A220BFE082008240822903F63C1
5F84:08000BF8101020204860089811043602500093FC104010401040104017FE1000
5F97:08000BF8120823F84A080BF8100033FC501097FE101012101110101010501020
5FEB:10401040104013F8184854485048504897FE104010A010A01110111012081406
60A8:0900090011FC3204544899501148124414441140108002005104511290120FF0
627E:1090108810881080FCBC13C01080148818883090D060104410A41114520C2004
62D4:1050104810481040FBFE1080148018FC3144D144112811281210122854442182
6307:11001104113811C0FD02110210FE140019FC3104D10411FC1104110451FC2104
6309:10401020102013FEFA02144410401BFE3088D088110810D01020105050882304
6362:1080108010F81108FA1015FC112419243124D12417FE10501050108851042602
63D2:2008203C27C02040F8402FFE20402940365CE4442444275C24442444A7FC4404
6539:00400040FC8004FE0508050806887C8840884050405044205850608841040202
65E0:00003FF002000200020002007FFC0480048004800880088010842084407C8000
65E7:200023FC2204220422042204220423FC2204220422042204220423FC22042000
662F:1FF0101010101FF0101010101FF00000FFFE0100110011F811002900450083FE
663E:00001FF0101010101FF0101010101FF0044044442444144814500440FFFE0000
6709:02000200FFFE040004000FF0081018102FF0481088100FF00810081008500820
672C:01000100010001007FFC0380054005400920111021084FE48102010001000100
6837:1104108410881000FBFE1020302039FC5420502093FE10201020102010201020
683C:1080108010F81108FB1014A0304038A05518520695F811081108110811F81108
6B64:0440044004402444244827502460244024402440244024422F42F042403E0000
6CA1:000021F01110111081104210540E180013F82208E108211020A0204021B00E0E
6DF1:000027FC140414A4811042084040104017FC2040E0E0215022482C4620400040
7248:0808481C49E0490049007DFC41444144794449284928491049104A284A448C82
7528:00003FF82108210821083FF82108210821083FF8210821082108410841288010
7684:1040104020407E7C42844284430442447E2442244204420442047E0442280010
76D8:020004001FF011101090FFFE10101210215040203FF8244824482448FFFE0000
79D2:08201C20F02010A810A4FCA2112231203A245424542890081010102010C01300
7A7A:020001007FFE400288241010200800001FF0010001000100010001007FFC0000
7F8E:1010081004207FFC010001003FF80100FFFE010001007FFC028004401830E00E
82B1:08200820FFFE082000000888089010A030C050809180128214821082107E1000
83DC:08200820FFFE0820001000F83F001110082001007FFC054009203118C1060100
85CF:0440FFFE044800241FFE502057A0752417A4F4A857A85510951227AA20464082
884C:080009FC100020004800080013FE302050209020102010201020102010A01040
8981:00007FFC044004403FF8244824483FF802007FFC042008401C80038006703808
8BA4:004020401040104000400040F040104010A010A010A015101910120804040802
8DEF:00407C404478448845507C201050108811065CF85088508850885C88E0F80088
8F66:0200020002007FFC04000900110021003FF801000100FFFE0100010001000100
8F7D:082008287F240820FFFE10201024FF24202448287F2808100F12F82A08460882
952E:201020103B7C211441FE7A14A27C2710F97C251025FE22102A10350028FE0000
9650:00007BF84A08520853F8620852084BF84A444A486A3052204210428843064200
9690:0080788049F84A08541053FC600451FC48044BFC480468405124452A450A48F8
987B:080009FE1020204041FC89040924112421244524852409441050208841048202
9ED8:0020FE289224D624BA2093FEFE201020FE2010501E50E0500288AA88A9048202
FF08:0008001000100020002000200040004000400040002000200020001000100008
FF09:1000080008000400040004000200020002000200040004000400080008001000
FF0C:0000000000000000000000000000000000000000000018001800080010000000
FF1A:0000000000000000000000000180018000000000000000000180018000000000 |
|