|
title 启动硬盘系统 \n\n\t\t自动查找系统所在磁盘\n\t\t并加载第一启动扇区 find --set-root --devices=h /ntldr || find --set-root --devices=h /bootmgr calc *0x475&0xff-1 && calc *0x82b8 && map (hd0) () calc *0x475&0xff-1 && calc *0x82b8 && map () (hd0) calc *0x475&0xff-1 && calc *0x82b8 || if exist (hd0,0)/grldr map (hd0) () calc *0x475&0xff-1 && calc *0x82b8 || if exist (hd0,0)/grldr map () (hd0) calc *0x475&0xff-1 && calc *0x82b8 && calc *0x82b9=*0x82b9&0xffffff00|0x81 > nul calc *0x475&0xff-1 && map --hook if exist /WINDOWS/SYSTEM32/DRIVERS/ETC/HOSTS || find --set-root --devices=h /WINDOWS/SYSTEM32/DRIVERS/ETC/HOSTS cat /WINDOWS/SYSTEM32/DRIVERS/ETC/HOSTS | set wincd= if "%wincd:~,4%"=="(pd)" echo -n > /WINDOWS/SYSTEM32/DRIVERS/ETC/HOSTS && map --mem %wincd% (0xff) && map --hook && set wincd= if "%wincd:~,1%"=="/" echo -n > /WINDOWS/SYSTEM32/DRIVERS/ETC/HOSTS || set wincd= if exist wincd && if exist (0)%wincd% root (0) && map --mem (0)%wincd% (0xff) && map --hook && set wincd= if exist wincd && if exist %wincd% || find --set-root --devices=uh %wincd% if exist wincd && if exist %wincd% && map %wincd% (0xff) || map --mem %wincd% (0xff) map --e820cycles=3 map --hook find --set-root --devices=h /ntldr || find --set-root --devices=h /bootmgr chainloader ()+1 || chainloader /ntldr || chainloader /bootmgr 以前用的好好的,貌似更新了11.02的grldr后,启动失败了啊 |
|