无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 4485|回复: 3
打印 上一主题 下一主题

关于grub4DOS命令请教

[复制链接]
跳转到指定楼层
1#
发表于 2010-10-13 21:21:28 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
小弟使用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 编辑 ]
2#
 楼主| 发表于 2010-10-13 21:39:38 | 只看该作者
通过测试发现,是菜单中的FIND指令引起的find --set-root --ignore-floppies --ignore-cd /grldr && chainloader /grldr,改为chainloader /grldr菜单移动正常,改为find --set-root --ignore-floppies --ignore-cd /grldr ,都无法正常移动光标
回复

使用道具 举报

3#
发表于 2010-10-13 22:06:10 | 只看该作者
你把一行分成二行就正常了。
find --set-root --ignore-floppies --ignore-cd /grldr
chainloader /grldr
--------------------------
原因很简单,要使这个菜单BOOT,就要有可BOOT的命令。但G4D认为前面一行中只有find命令。
或者你在后面加个boot命令。
回复

使用道具 举报

4#
 楼主| 发表于 2010-10-13 22:49:40 | 只看该作者
多谢指导,按照上面指令无法解决此问题,不过通过测试在菜单显示后面使用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
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-4-20 04:01

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表