无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 3564|回复: 4

[求助] 修改grldr后部分启动菜单失效问题

[复制链接]
发表于 2013-12-22 11:08:23 | 显示全部楼层 |阅读模式
如题用BOOTICE打开grldr,简单修改参数部分启动项不显示。
本人特菜,请教老手具体原因及解决方法。

具体现象如下:
1. 因菜单显示效果不理想,更改颜色
   原颜色---color 0x06 0x67 0x06 0x09 0x8f 0x0d
   改成  ---- color normal=0x0E highlight=0x04 helptext=0x0F heading=0x02 standard=0x02 border=0x77
   修改后以UTF8编码保存,之后原来的启动项中2项不显示
2. 更改默认启动项
   使用 HB520WZ的PE
   原默认启动项---default 3
   改成       ---default 5
   以UTF8编码保存,之后启动时第5项之后的菜单全不显示。
   

发表于 2013-12-23 16:20:59 | 显示全部楼层
你确定只改了颜色?你确定只改了 default?根据你给的信息,无法看出问题在哪儿,建议将整个菜单文件贴出来,并注明你修改过的地方。
回复

使用道具 举报

 楼主| 发表于 2013-12-24 07:08:28 | 显示全部楼层
本帖最后由 2011hjcjie 于 2013-12-25 15:58 编辑

我确定别的没动过,第二个列子原菜单源文件及菜单显示
checkrange 0x21 read 0x8280 > nul && pxe keep
graphicsmode -1 320:800 100:1000 24:32
#确定外部命令所在设备
debug 1
command | echo -n | echo -n | echo -n > (md)0x200+1
debug off
call Fn.11 0x40000 ")" || set modskip=0
if %@retval%>=0x40000 && set /a modskip=%@retval% - 0x40000 + 1 > nul
cat --skip=%modskip% (md)0x200+1 | set modpath=
cat --length=%modskip% (md)0x200+1 | set modroot=
if "%modpath%"=="" set modpath=/BOOT/GRUB/
cat --length=0 %modroot%%modpath%RUN |; cat --length=0 %@root%%modpath%RUN && set modroot=%@root% ! find --set-root %modpath%RUN &; set modroot=%@root%
command --set-path=%modroot%%modpath%
set modroot=
set modpath=
set modskip=
#定义显示相关【MENUSETTING】值: [字间距] [行间距] [边框宽度] [注释行起始行数] [菜单可显示最多行数] [菜单行起始行数] [菜单行宽度] [菜单行起始列数]
MENUSETTING n 5 0 n n 6 90 5
#自动设定壁纸
BGAutoChange /BOOT/GRUB/BG/
font /BOOT/GRUB/UNIFONT.HEX
#菜单项开启自动编号
write 0x8274 0x1a01
color normal=0x0E highlight=0x04 helptext=0x0F heading=0x02 standard=0x02 border=0x77
call Fn.0 0x40000 "!BAT\necho -P:0000 $[0000]\t\t\t\t\t\t\t\t\t\0" && initscript (md)0x200+1
#splashimage /BOOT/GRUB/SNOW.LZMA
default 3

title  更换 ISO菜单背景>> \n    菜单背景图片位于 /BOOT/GRUB/BG/ 目录下,格式为BMP,分辨率800*600。 \n    已加入容错处理,放错图片不会对启动有影响。 \n    图片无须打包,方便自己动手 DIY !
if not exist /BOOT/GRUB/BGAutoChange --fira --set-root --devices=chpu /BOOT/GRUB/BGAutoChange
command BGAutoChange /BOOT/GRUB/BG/

title  加载 WVBK驱动>> \n    更换成加载 WinVBlock 驱动运行菜单和程序。
if not exist /BOOT/GRUB/RUN --wvbk --set-root --devices=chpu /BOOT/GRUB/RUN
command RUN /boot/grub/MENUWVBK.LST

title  NTBOOT 启动器>> \n    全中文菜单,内置常规驱动。\n    用于启动NT5/6、及PE系统,内置菜单可自行按需修改。 \n    用于系统引导故障时应急启动,及故意删除系统引导后当成加密盘使用。
if not exist /BOOT/GRUB/RUN --fira --set-root --devices=chpu /BOOT/GRUB/RUN
command /BOOT/NTBOOT/NTBOOT MENU
boot

title  Windows03PE 极速版 \n    加入防蓝屏参数--e820cycles=3。 \n    启动迅速,支持网络,带网刻启动服务器功能。 \n    启动时默认 3 秒智能加载三种驱动,按回车键可手动选择加载驱动。
echo $[1106] Loading 03PE, Please Wait ...
if %bd%==pd pxe keep && chainloader --raw (pd)/BOOT/PXELDR.0 && boot
command /BOOT/GRUB/SRSF6 --fira --set-root /BOOT/GRUB/SRSF6
if not "%@root%"=="(cd)" echo nocd &&  map /MINIPE/03PE.ISO (0xfa) --fira --set-root --ignore-floppies --ignore-cd /MINIPE/03PE.ISO && map  /MINIPE/03PE.ISO (0xfa)
if not "%@root%"=="(cd)" if exist /MINIPE/03PE.ISO && map --e820cycles=3
if not "%@root%"=="(cd)" if exist /MINIPE/03PE.ISO && map --hook
chainloader /BOOT/LDR3PE --fira --set-root /BOOT/LDR3PE && chainloader /BOOT/LDR3PE

title  Windows03PE 极速版 \n    加入防蓝屏参数--e820cycles=0。 \n    启动迅速,支持网络,带网刻启动服务器功能。 \n    启动时默认 3 秒智能加载三种驱动,按回车键可手动选择加载驱动。
echo $[1106] Loading 03PE, Please Wait ...
if %bd%==pd pxe keep && chainloader --raw (pd)/BOOT/PXELDR.0 && boot
command /BOOT/GRUB/SRSF6 --fira --set-root /BOOT/GRUB/SRSF6
if not "%@root%"=="(cd)" echo nocd &&  map /MINIPE/03PE.ISO (0xfa) --fira --set-root --ignore-floppies --ignore-cd /MINIPE/03PE.ISO && map  /MINIPE/03PE.ISO (0xfa)
if not "%@root%"=="(cd)" if exist /MINIPE/03PE.ISO && map --e820cycles=0
if not "%@root%"=="(cd)" if exist /MINIPE/03PE.ISO && map --hook
chainloader /BOOT/LDR3PE --fira --set-root /BOOT/LDR3PE && chainloader /BOOT/LDR3PE

title  Win8 PE x64 兼容版 \n    支持原生 USB3.0 及 UEFI 启动。 \n    兼容大部分 32 位程序,支持网络,带网刻启动服务器功能。
if %bd%==pd pxe keep && chainloader --raw (pd)/BOOT/PXEB64.0 && boot
chainloader /BOOT/BCFMGR --fira --set-root /BOOT/BCFMGR && chainloader /BOOT/BCFMGR

title  USB 智能加速  \n    用于老机加载 USB2.0 启动,加快写入内存速度。 \n    启动非常慢的情况下使用,正常情况无需使用。
command /BOOT/GRUB/USB_ACC.0PE mode:auto --time-out-enable:0 --time-out-disable:0 --version:plpbt.bin(5.0.10)
configfile

title  MAXDOS 工具箱>> \n    内含多种 MAXDOS 工具箱及常用 DOS 工具。
if not exist /BOOT/GRUB/RUN --fira --set-root --devices=chpu /BOOT/GRUB/RUN
command RUN /BOOT/GRUB/MENUMAXDOS.LST

title  设备与资源管理>> \n    自动搜索出连接在电脑上的可用设备。 \n    用于调用设备中存放的各种类型文件、工具,以及启动和安装 IS0 镜像。
if not exist /BOOT/GRUB/RUN --fira --set-root --devices=chpu /BOOT/GRUB/RUN
command RUN /BOOT/GRUB/MENUSBML.LST

title  自定义目录下文件>> \n    快速调用U盘、移动硬盘或本地硬盘指定目录下工具与系统镜像。 \n    支持 XP、Win7、Win8 原版 32、64 位系统的安装。 \n    U盘可见区目录: /DIY/ 、 /ISO/ 、 /IMGS/ 。
if not exist /BOOT/GRUB/RUN --fira --set-root --devices=chpu /BOOT/GRUB/RUN
command RUN /BOOT/GRUB/MENUISOS.LST

title  系统、主板密码破解>> \n    绕过、删除 Windows 系统登录密码,以及主板 CMOS 密码破解。
if not exist /BOOT/GRUB/RUN --fira --set-root --devices=chpu /BOOT/GRUB/RUN
command RUN /BOOT/GRUB/MENUMMPJ.LST

title  硬盘分区、备份还原工具>> \n    用于不进 PE 安装系计算机操作统。 \n    含多种 DOS 操作环境下硬盘分区以及系统备份还原 GHOST 工具。
if not exist /BOOT/GRUB/RUN --fira --set-root --devices=chpu /BOOT/GRUB/RUN
command RUN /BOOT/GRUB/MENUFQHY.LST

title  BIOS 刷写、还原精灵卸载>> \n    内含计算机主板及显卡 BIOS 刷写工具。 \n    用于卸载安装系统留下或自己安装于计算机中的各种还原精灵。
if not exist /BOOT/GRUB/RUN --fira --set-root --devices=chpu /BOOT/GRUB/RUN
command RUN /BOOT/GRUB/MENUBIOS.LST

title  重启 计算机 \n    重新启动。
reboot

title  关闭 计算机 \n    关闭计算机电源。
halt

3.png
回复

使用道具 举报

 楼主| 发表于 2013-12-24 07:11:21 | 显示全部楼层
本帖最后由 2011hjcjie 于 2013-12-25 15:57 编辑

修改文件
checkrange 0x21 read 0x8280 > nul && pxe keep
graphicsmode -1 320:800 100:1000 24:32
#确定外部命令所在设备
debug 1
command | echo -n | echo -n | echo -n > (md)0x200+1
debug off
call Fn.11 0x40000 ")" || set modskip=0
if %@retval%>=0x40000 && set /a modskip=%@retval% - 0x40000 + 1 > nul
cat --skip=%modskip% (md)0x200+1 | set modpath=
cat --length=%modskip% (md)0x200+1 | set modroot=
if "%modpath%"=="" set modpath=/BOOT/GRUB/
cat --length=0 %modroot%%modpath%RUN |; cat --length=0 %@root%%modpath%RUN && set modroot=%@root% ! find --set-root %modpath%RUN &; set modroot=%@root%
command --set-path=%modroot%%modpath%
set modroot=
set modpath=
set modskip=
#定义显示相关【MENUSETTING】值: [字间距] [行间距] [边框宽度] [注释行起始行数] [菜单可显示最多行数] [菜单行起始行数] [菜单行宽度] [菜单行起始列数]
MENUSETTING n 5 0 n n 6 90 5
#自动设定壁纸
BGAutoChange /BOOT/GRUB/BG/
font /BOOT/GRUB/UNIFONT.HEX
#菜单项开启自动编号
write 0x8274 0x1a01
color normal=0x0E highlight=0x04 helptext=0x0F heading=0x02 standard=0x02 border=0x77
call Fn.0 0x40000 "!BAT\necho -P:0000 $[0000]\t\t\t\t\t\t\t\t\t\0" && initscript (md)0x200+1
#splashimage /BOOT/GRUB/SNOW.LZMA
default 5

title  更换 ISO菜单背景>> \n    菜单背景图片位于 /BOOT/GRUB/BG/ 目录下,格式为BMP,分辨率800*600。 \n    已加入容错处理,放错图片不会对启动有影响。 \n    图片无须打包,方便自己动手 DIY !
if not exist /BOOT/GRUB/BGAutoChange --fira --set-root --devices=chpu /BOOT/GRUB/BGAutoChange
command BGAutoChange /BOOT/GRUB/BG/

title  加载 WVBK驱动>> \n    更换成加载 WinVBlock 驱动运行菜单和程序。
if not exist /BOOT/GRUB/RUN --wvbk --set-root --devices=chpu /BOOT/GRUB/RUN
command RUN /boot/grub/MENUWVBK.LST

title  NTBOOT 启动器>> \n    全中文菜单,内置常规驱动。\n    用于启动NT5/6、及PE系统,内置菜单可自行按需修改。 \n    用于系统引导故障时应急启动,及故意删除系统引导后当成加密盘使用。
if not exist /BOOT/GRUB/RUN --fira --set-root --devices=chpu /BOOT/GRUB/RUN
command /BOOT/NTBOOT/NTBOOT MENU
boot

title  Windows03PE 极速版 \n    加入防蓝屏参数--e820cycles=3。 \n    启动迅速,支持网络,带网刻启动服务器功能。 \n    启动时默认 3 秒智能加载三种驱动,按回车键可手动选择加载驱动。
echo $[1106] Loading 03PE, Please Wait ...
if %bd%==pd pxe keep && chainloader --raw (pd)/BOOT/PXELDR.0 && boot
command /BOOT/GRUB/SRSF6 --fira --set-root /BOOT/GRUB/SRSF6
if not "%@root%"=="(cd)" echo nocd &&  map /MINIPE/03PE.ISO (0xfa) --fira --set-root --ignore-floppies --ignore-cd /MINIPE/03PE.ISO && map  /MINIPE/03PE.ISO (0xfa)
if not "%@root%"=="(cd)" if exist /MINIPE/03PE.ISO && map --e820cycles=3
if not "%@root%"=="(cd)" if exist /MINIPE/03PE.ISO && map --hook
chainloader /BOOT/LDR3PE --fira --set-root /BOOT/LDR3PE && chainloader /BOOT/LDR3PE

title  Windows03PE 极速版 \n    加入防蓝屏参数--e820cycles=0。 \n    启动迅速,支持网络,带网刻启动服务器功能。 \n    启动时默认 3 秒智能加载三种驱动,按回车键可手动选择加载驱动。
echo $[1106] Loading 03PE, Please Wait ...
if %bd%==pd pxe keep && chainloader --raw (pd)/BOOT/PXELDR.0 && boot
command /BOOT/GRUB/SRSF6 --fira --set-root /BOOT/GRUB/SRSF6
if not "%@root%"=="(cd)" echo nocd &&  map /MINIPE/03PE.ISO (0xfa) --fira --set-root --ignore-floppies --ignore-cd /MINIPE/03PE.ISO && map  /MINIPE/03PE.ISO (0xfa)
if not "%@root%"=="(cd)" if exist /MINIPE/03PE.ISO && map --e820cycles=0
if not "%@root%"=="(cd)" if exist /MINIPE/03PE.ISO && map --hook
chainloader /BOOT/LDR3PE --fira --set-root /BOOT/LDR3PE && chainloader /BOOT/LDR3PE

title  Win8 PE x64 兼容版 \n    支持原生 USB3.0 及 UEFI 启动。 \n    兼容大部分 32 位程序,支持网络,带网刻启动服务器功能。
if %bd%==pd pxe keep && chainloader --raw (pd)/BOOT/PXEB64.0 && boot
chainloader /BOOT/BCFMGR --fira --set-root /BOOT/BCFMGR && chainloader /BOOT/BCFMGR

title  USB 智能加速  \n    用于老机加载 USB2.0 启动,加快写入内存速度。 \n    启动非常慢的情况下使用,正常情况无需使用。
command /BOOT/GRUB/USB_ACC.0PE mode:auto --time-out-enable:0 --time-out-disable:0 --version:plpbt.bin(5.0.10)
configfile

title  MAXDOS 工具箱>> \n    内含多种 MAXDOS 工具箱及常用 DOS 工具。
if not exist /BOOT/GRUB/RUN --fira --set-root --devices=chpu /BOOT/GRUB/RUN
command RUN /BOOT/GRUB/MENUMAXDOS.LST

title  设备与资源管理>> \n    自动搜索出连接在电脑上的可用设备。 \n    用于调用设备中存放的各种类型文件、工具,以及启动和安装 IS0 镜像。
if not exist /BOOT/GRUB/RUN --fira --set-root --devices=chpu /BOOT/GRUB/RUN
command RUN /BOOT/GRUB/MENUSBML.LST

title  自定义目录下文件>> \n    快速调用U盘、移动硬盘或本地硬盘指定目录下工具与系统镜像。 \n    支持 XP、Win7、Win8 原版 32、64 位系统的安装。 \n    U盘可见区目录: /DIY/ 、 /ISO/ 、 /IMGS/ 。
if not exist /BOOT/GRUB/RUN --fira --set-root --devices=chpu /BOOT/GRUB/RUN
command RUN /BOOT/GRUB/MENUISOS.LST

title  系统、主板密码破解>> \n    绕过、删除 Windows 系统登录密码,以及主板 CMOS 密码破解。
if not exist /BOOT/GRUB/RUN --fira --set-root --devices=chpu /BOOT/GRUB/RUN
command RUN /BOOT/GRUB/MENUMMPJ.LST

title  硬盘分区、备份还原工具>> \n    用于不进 PE 安装系计算机操作统。 \n    含多种 DOS 操作环境下硬盘分区以及系统备份还原 GHOST 工具。
if not exist /BOOT/GRUB/RUN --fira --set-root --devices=chpu /BOOT/GRUB/RUN
command RUN /BOOT/GRUB/MENUFQHY.LST

title  BIOS 刷写、还原精灵卸载>> \n    内含计算机主板及显卡 BIOS 刷写工具。 \n    用于卸载安装系统留下或自己安装于计算机中的各种还原精灵。
if not exist /BOOT/GRUB/RUN --fira --set-root --devices=chpu /BOOT/GRUB/RUN
command RUN /BOOT/GRUB/MENUBIOS.LST

title  重启 计算机 \n    重新启动。
reboot

title  关闭 计算机 \n    关闭计算机电源。
halt

5.png
回复

使用道具 举报

 楼主| 发表于 2013-12-24 07:40:06 | 显示全部楼层
本帖最后由 2011hjcjie 于 2013-12-25 15:53 编辑

请参看图
1. 上次在实体机操作时举例两种现象都碰到过
2. 上图为今天在VM虚拟机改默认启动项后的启动效果对比(U盘启动)


等待高人指点, 多谢
回复

使用道具 举报

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

本版积分规则

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

闽公网安备 35020302032614号

GMT+8, 2024-3-29 22:09

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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