|
|
本帖最后由 20123456789 于 2014-7-14 11:55 编辑
请问怎么写命令GRLDR引导MENU.LST ? 小弟初学,请各位高手多多指教。
我之前用的是别人2012年写的GRLDR,GRLDR引导MENU
---------------------------------------------------
pxe detect
configfile
default 0
timeout 0
title menu
errorcheck off
find --set-root /neyan/menu && configfile /neyan/menu
errorcheck on
commandline
title commandline
commandline
title reboot
reboot
title halt
halt
-------------------------------------------------------
在menu写命令运行XGHOST.IMG等多个新加入的IMG文件运行不了(原有的IMG文件能运行),命令是一样的照抄过去没抄错。
现在很多新版的都是用GRLDR引导MENU.LST,试了这几个在MENU.LST能运行。
1 . 不知道怎么写比较好,看了下别人写的GRLDR引导MENU.LST
---------------------------------------------------
debug off
timeout 30
default 0
configfile (bd)/BOOT/GRUB/MENU.LST
改成自己的是
debug off
timeout 30
default 0
configfile (bd)/neyan/MENU.LST
---------------------------------------------------
可以启动,但是启动速度很慢。
2.参照2012年的GRLDR,改成GRLDR引导MENU.LST
----------------------------------------------------
pxe detect
configfile
default 0
timeout 0
title menu
errorcheck off
find --set-root /neyan/MENU.LST && configfile /neyan/MENU.LST
errorcheck on
commandline
title commandline
commandline
title reboot
reboot
title halt
halt
-------------------------------------------------------------
启动速度比第一个快了一点点。
3.有的是这样写
----------------------------------------------------------
pxe detect
configfile
default 0
timeout 1
title find /menu.lst, /boot/grub/menu.lst, /grub/menu.lst
errorcheck off
configfile /boot/grub/menu.lst
configfile /grub/menu.lst
if "%@root%"=="(ud)" && calc *0x82A0=*0x82b9&0xff
if "%@root:~1,1%"=="f" && find --set-root --devices=f /menu.lst && configfile /menu.lst
find --set-root --ignore-floppies --ignore-cd /menu.lst && configfile /menu.lst
find --set-root --ignore-floppies --ignore-cd /boot/grub/menu.lst && configfile /boot/grub/menu.lst
find --set-root --ignore-floppies --ignore-cd /grub/menu.lst && configfile /grub/menu.lst
errorcheck on
commandline
title commandline
commandline
title reboot
reboot
title halt
halt
------------------------------------------------------------
我改成了
------------------------------------------------
pxe detect
configfile
default 0
timeout 1
title find /MENU.LST, /neyan/MENU.LST
errorcheck off
configfile /neyan/MENU.LST
if "%@root%"=="(ud)" && calc *0x82A0=*0x82b9&0xff
if "%@root:~1,1%"=="f" && find --set-root --devices=f /MENU.LST && configfile /MENU.LST
find --set-root --ignore-floppies --ignore-cd /neyan/MENU.LST && configfile /neyan/MENU.LST
find --set-root --ignore-floppies --ignore-cd /MENU.LST && configfile /MENU.LST
errorcheck on
commandline
title commandline
commandline
title reboot
reboot
title halt
halt
-----------------------------------------------
能启动,不知道有没影响启动PE兼容性,我的MENU.LST在neyan/MENU.LST , neyan文件夹在U盘根目录。
请各位高手多多指教。 |
|