无忧启动论坛

标题: 关于grub4DOS命令请教 [打印本页]

作者: luck9806    时间: 2010-10-13 21:21
标题: 关于grub4DOS命令请教
小弟使用grub4dos,0.4.5b中文版,下列为使用的命令行
pxe detect
configfile
errorcheck off
fontfile (ud)/fonts
find --set-root --ignore-floppies --ignore-cd /fonts && fontfile /fonts
errorcheck on
default 0
timeout 10
title 【 01 】 启动联想的一键恢复系统
errorcheck off
find --set-root --ignore-floppies --ignore-cd /okeyr_l && chainloader /okeyr_l
errorcheck on
title 【 02 】 启动联想Win7旗航版安装系统
errorcheck off
find --set-root --ignore-floppies --ignore-cd /SETUP_W7 && chainloader /SETUP_W7
errorcheck on
title 【 03 】 启动0PE维护系统
errorcheck off
find --set-root --ignore-floppies --ignore-cd /grldr && chainloader /grldr
errorcheck on
title 【 04 】 重新启动计算机
reboot

问题,添加指令后光标上与下,只能指到第4个菜单,使用左右键可以进行逐一进行选择,意思是进入后光标在菜单1,我一按下键,光标就直接到菜单4,然后按上下键无反应,按左右键可以进行选择,选择后启动无任何问题,就是光标移动不正常,请大家帮忙,我的指令出错在那里,谢谢

[ 本帖最后由 luck9806 于 2010-10-13 21:22 编辑 ]
作者: luck9806    时间: 2010-10-13 21:39
通过测试发现,是菜单中的FIND指令引起的find --set-root --ignore-floppies --ignore-cd /grldr && chainloader /grldr,改为chainloader /grldr菜单移动正常,改为find --set-root --ignore-floppies --ignore-cd /grldr ,都无法正常移动光标
作者: zhaohj    时间: 2010-10-13 22:06
你把一行分成二行就正常了。
find --set-root --ignore-floppies --ignore-cd /grldr
chainloader /grldr
--------------------------
原因很简单,要使这个菜单BOOT,就要有可BOOT的命令。但G4D认为前面一行中只有find命令。
或者你在后面加个boot命令。
作者: luck9806    时间: 2010-10-13 22:49
多谢指导,按照上面指令无法解决此问题,不过通过测试在菜单显示后面使用find指令就会出错,没有办法,将指令修改为以下完全正常
pxe detect
configfile
errorcheck off
fontfile (ud)/fonts
find --set-root --ignore-floppies --ignore-cd /fonts && fontfile /fonts
errorcheck on
timeout 10
default 0

title 【 01 】 启动联想的一键恢复系统
errorcheck off
chainloader /onekeyr
find --set-root --ignore-floppies --ignore-cd /onekeyr && chainloader /onekeyr
errorcheck on

title 【 02 】 启动联想Win7旗航版安装系统
errorcheck off
chainloader /SETUP_W7
find --set-root --ignore-floppies --ignore-cd /SETUP_W7 && chainloader /SETUP_W7
errorcheck on

title 【 03 】 启动0PE维护系统
errorcheck off
chainloader /grldr
find --set-root --ignore-floppies --ignore-cd /grldr && chainloader /grldr
errorcheck on


title 【 04 】 重新启动计算机
reboot




欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/) Powered by Discuz! X3.3