找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
楼主: zxw

[分享] [20150128]自动列表·自动菜单·数字启动

 荐  火.. [复制链接]
发表于 2011-8-18 16:58:37 | 显示全部楼层

回复 #1598 tingyue-wu 的帖子

timeout 60
default 0
unifont (ud)/BOOT/GRUB/FONTS
background 002500
foreground ffff00
--set-menu=(ud)/MENU.LST

写了ud 还是不行啊  M就回到grldr^…………?
纠结~~~
回复

使用道具 举报

发表于 2011-8-18 17:00:39 | 显示全部楼层

回复 #1601 tingyue-wu 的帖子

menu.lst
在ud根目录   
大大 帮忙写个~~
不会写~~~
回复

使用道具 举报

发表于 2011-8-18 17:07:27 | 显示全部楼层

回复 #1602 2010zsy 的帖子

timeout 60
default 0
unifont (ud)/BOOT/GRUB/FONTS
background 002500
foreground ffff00
set menu=(ud)/MENU.LST
回复

使用道具 举报

发表于 2011-8-18 17:09:01 | 显示全部楼层
在菜单前可选择设置的变量或命令
set menu=          ;同内置参数--set-menu=  设置在自动列表窗口中按“M”后返回的菜单,默认(md)4+8即GRLDR内置菜单
在run或自动列表窗口中可选择使用的参数
--set-menu=          ;设置在自动列表窗口中按“M”后返回的菜单,默认(md)4+8即GRLDR内置菜单.

你真的不看说明地呀 拜托 好好看看说明再提问呀
回复

使用道具 举报

发表于 2011-8-18 17:30:44 | 显示全部楼层

回复 #1605 tingyue-wu 的帖子

这样好像可以了诶……
timeout 60
default 0
unifont (ud)/BOOT/GRUB/FONTS
background 002500
foreground ffff00
set menu=(ud)/MENU.LST .automenu
去掉前面两-  就行了~~

大哥  俺是菜鸟啊  看的晕啊~~
木办法啊~~
听君一席话、胜读十年书啊~~
回复

使用道具 举报

发表于 2011-8-18 17:32:07 | 显示全部楼层
先撤了~下班了  明天9点半再见
感谢ZXW   and  tingyue-wu
大大对我耐心的讲解
回复

使用道具 举报

发表于 2011-8-19 09:01:07 | 显示全部楼层
大家好啊……嘿嘿 还木到9:30~~~
回复

使用道具 举报

发表于 2011-8-19 11:37:42 | 显示全部楼层

回复 #1604 tingyue-wu 的帖子

哥们 想问下      能不能让Fbinst菜单直接启动 MENU.LST
我只会让他启动grldr……
回复

使用道具 举报

发表于 2011-8-19 12:42:55 | 显示全部楼层
Fbinst是一种启动方式 通过它再转换别的启动类型,不能直接在里边设置menu菜单

都是Fbinst菜单转grldr的menu
回复

使用道具 举报

发表于 2011-8-19 13:03:19 | 显示全部楼层

回复 #1610 tingyue-wu 的帖子

饿不是这个意思   
俄是说俄除了grldr菜单外 还有menu.lst菜单  
Fbinst能不能转换menu菜单  
Fbinst转换grldr我会       转换menu不会~~~
3Q~~
回复

使用道具 举报

发表于 2011-8-19 13:23:01 | 显示全部楼层
不能 。有这个必要吗? 你要是嫌菜单多,可以把menu菜单的内容复制到grldr菜单中,然后删掉menu文件就可以了。
回复

使用道具 举报

发表于 2011-8-19 13:41:34 | 显示全部楼层

回复 #1612 tingyue-wu 的帖子

不能啊……悲剧啊
是内容太多
所以才分两个菜单的~~~
回复

使用道具 举报

发表于 2011-8-19 14:19:45 | 显示全部楼层
那就两个菜单好了。
我都三个菜单的
第一个
debug off
default 3
root (bd)
checkrange 0x0 read 0x8280 && set bd=fd
checkrange 0x9f read 0x8280 && set bd=cd
checkrange 0x21 read 0x8280 && set bd=pd
checkrange 0x23 read 0x8280 && set bd=ud
gfxmenu ()/BOOT/GRUB/MESSAGE || find --set-root /BOOT/GRUB/MESSAGE && gfxmenu ()/BOOT/GRUB/MESSAGE
configfile (md)4+8

title 【 1 】一键安装XP到硬盘第一分区
……
title 【 4 】运行可见区多版本ISO (预留)
configfile ()/ABC/ISO.LST || find --set-root /ABC/ISO.LST && configfile ()/ABC/ISO.LST


第二个:
debug off
#定位文件处作为当前设备
find --set-root --ignore-floppies /BOOT/GRUB/USB_ACC.0PE
#外部命令位置
command --set-path=(bd)/BOOT/GRUB/
#中文字体设置
unifont ()/BOOT/GRUB/FONTS
#颜色设置
background 002500
foreground ffffff
set n=按下序号数字并回车,将进入相应菜单
default 12
title
clear
title          ☆ 外置PE/Linux菜单 ☆
clear
……
title  14  <特殊启动方式> DIR菜单  \n\n   启动方式DIR,主要用于安装系统,功能更强大
#configfile ()/ABC/ISO2.5U || find --set-root --ignore-floppies --ignore-cd /ABC/ISO2.5U && configfile ()/ABC/ISO2.5U
dd if=(hd0,6)/ABC/ISO2.5U of=(md)0x200+16 || dd if=(hd0,0)/ABC/ISO2.5U of=(md)0x200+16 || dd if=(hd1,0)/ABC/ISO2.5U of=(md)0x200+16
configfile (md)0x200+16
……


第三个
debug off
find --set-root --ignore-floppies /BOOT/GRUB/USB_ACC.0PE
command --set-path=(bd)/BOOT/GRUB/
set n=按下序号数字并回车,将进入相应菜单
default 12
title
clear
title          ☆ 启动 DIR 菜单 ☆
clear
回复

使用道具 举报

发表于 2011-8-19 14:25:30 | 显示全部楼层
如果是gfxmenu菜单进入run列表或菜单

需要用到--gfx参数

如果是用unifont的菜单进入run列表或菜单 不需要--gfx参数

但是一个菜单不能使用gfxmenu时同时使用unifont,选其一才行。
回复

使用道具 举报

发表于 2011-8-19 15:11:32 | 显示全部楼层

回复 #1615 tingyue-wu 的帖子

command --set-path=(bd)/BOOT/GRUB/

不知道  这一句到底有什么作用?纠结~~
我也三个菜单
回复

使用道具 举报

 楼主| 发表于 2011-8-19 15:16:53 | 显示全部楼层
@2010zsy:
对于grub4dos,你的基础知识太差,可以说是近乎一片空白,建议多学习,多潜水。
回复

使用道具 举报

发表于 2011-8-19 15:25:41 | 显示全部楼层

回复 #1618 zxw 的帖子

Z大  俺这是中华美德、不懂就问
    莫打击我幼小的心灵~~
回复

使用道具 举报

发表于 2011-8-19 16:40:41 | 显示全部楼层

我这样写的菜单,一运行就从新启动?错在哪儿?

command unifont (ud)/BOOT/GRUB/fonts
command  run --set-menu=(ud)/SRSF6/srsf6.lst --set-path=/WINXPISO/
回复

使用道具 举报

发表于 2011-8-19 16:53:13 | 显示全部楼层
我的菜单都贴出来了 你照着我得来写不就行了

还有 注意一下菜单初始化命令和tittle中的命令是有区别的
回复

使用道具 举报

发表于 2011-8-19 16:54:03 | 显示全部楼层
把你的菜单全部贴出来 我帮你改吧

三个菜单都放在grub目录吧,省的麻烦,命名menu.lst、menu1.lst、menu2.lst

[ 本帖最后由 tingyue-wu 于 2011-8-19 16:59 编辑 ]
回复

使用道具 举报

发表于 2011-8-19 17:09:37 | 显示全部楼层

回复 #1622 tingyue-wu 的帖子

Fbinst菜单


default 0
timeout 60
color cyan/yellow
text "                             Welcome Rain maintenance disk                      "
color light-green
text "    F1. grldr"
menu F1 grldr "grldr"
color light-blue
text "    ============"
color brown
text "    F2. syslinux"
menu F2 syslinux "ldlinux.bin"
color light-blue
text "    ============"
color light-green
text "    F3. REBOOT"
menu F3 grldr "REBOOT"
color light-blue
text "    ============"
color brown
text "    F4. HDBOOT"
menu F4 grldr "HDBOOT"
color light-blue
text "    ============"
color light-cyan
text "    F5. HALT"
menu F5 grldr "HALT"
color light-blue
text "    ============"
color magenta
text "    F6. RUN"
menu F6 grldr "RUNMENU"
color light-blue
text "    ============"
color light-cyan
text "    F7. grldr"
menu F7 grldr "MENU.LST"
color light-blue
text "    ============"
color magenta
text "    F8. USB.IMG"
menu F8 linux "memdisk" "USB.IMG" ""
回复

使用道具 举报

发表于 2011-8-19 17:10:23 | 显示全部楼层

回复 #1621 tingyue-wu 的帖子

g rldr菜单


default 4
timeout 10                    #定位文件处作为当前设备
gfxmenu (ud)/messageBentian || find --set-root /messageBentian && gfxmenu (ud)/messageBentian
configfile (md)4+8
title                                  ★小宇grub4dos  syslinux双引导系统维护工具★
clear
title                                                 ★技术支持493371621、7897990★
clear
title                     ==============================================
clear
title
clear
title 【1】切换P菜单
configfile (ud)/MENUPE.LST
title 【2】切换G菜单
configfile (ud)/MENUGJ.LST
title 【3】切换F菜单
chainloader (ud)/boot/grub/fbinst.bin
title 【4】切换S菜单
chainloader ()/boot/syslinux/syslinux.bin
title 【5】切换R菜单
configfile (ud)/MENU.LST
title 【A】破解Windows登陆密码
map --mem (ud)/img/PASSWORD.IMG (fd0) || find --set-root /img/PASSWORD.IMG (fd0) && map --mem (ud)/img/PASSWORD.IMG (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
title 【B】运行 MaxDOS 8常用工具箱
map --mem (ud)/img/MaxDOS.img (fd0) || find --set-root /img/MaxDOS.img (fd0) && map --mem (ud)/img/MaxDOS.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
title 【C】运行 纯DOS98常用工具箱
map --mem (ud)/img/DOS98.IMG (fd0) || find --set-root /img/DOS98.IMG (fd0) && map --mem (ud)/img/DOS98.IMG (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
title 【D】启动本机的2000/XP/2003系统
find --set-root --ignore-floppies --ignore-cd /ntldr
map () (hd0)
map (hd0) ()
map --rehook
find --set-root --ignore-floppies --ignore-cd /ntldr
chainloader /ntldr
chainloader /ntldr
title 【E】启动本机上的Vista/Windows 7 系统
find --set-root --ignore-floppies --ignore-cd /bootmgr
map () (hd0)
map (hd0) ()
map --rehook
find --set-root --ignore-floppies --ignore-cd /bootmgr
chainloader /bootmgr
title 【F】启动 *.iso
map --mem()/*.iso (0xff) || map --mem ()/*.iso (0xff) || find --set-root /*.iso (0xff) && map ()/v.iso (0xff) || find --set-root /v.iso (0xff) && map --mem ()/v.iso (0xff)
map --hook
chainloader (0xFF)
title 【G】启动 CDlinux    可见分区
root
kernel /CDlinux/bzImage quiet CDL_LANG=zh_CN.UTF-8
initrd /CDlinux/initrd
回复

使用道具 举报

发表于 2011-8-19 17:11:33 | 显示全部楼层

回复 #1621 tingyue-wu 的帖子

RUN  的menu 菜单   这个里面还没写

timeout 60
default 0
background 002500
foreground ffff00
unifont (ud)/BOOT/GRUB/FONTS
set menu=(ud)/MENU.LST

title   彩色菜单
command run --txt /boot/.input

title   彩色菜单(UD)
command run --txt (ud)/boot/.input

title   自动菜单(UD)
command RUN (ud)/.AUTOMENU

title   生成自动列表(显示iso、img及文件夹)
command run --set-ext=+.iso|.img|.|/

title   启动MAXDOS工具箱
command RUN  --mem (ud)/IMG/MAXDOS.IMG           #/IMGS/MAXDOS.IMG GHOST 运行MAXDOS里的GHOST

title   启动PASSWORD
command RUN  --mem (ud)/img/password.img

title   启动PE.ISO
command RUN --mem (ud)/PE/WIN7PE.ISO             ##或者:RUN --mem PE.ISO

title   启动PE.ISO(加载firadisk驱动)            ##firadisk驱动文件可改名,可自带路径。
RUN /boot/imgs/firadisk.img /BOOT/IMGS/PE.ISO    ##或者:RUN firadisk.img PE.ISO(两个文件均为默认路径)
boot

title   启动XP/2003
RUN /ntldr
boot

title   启动VISTA/WIN7
RUN /bootmgr
boot

title   返回主菜单
configfile (md)4+8
回复

使用道具 举报

发表于 2011-8-19 17:13:27 | 显示全部楼层

回复 #1621 tingyue-wu 的帖子

grldr的F  好像不能用        我瞎写的~~
回复

使用道具 举报

发表于 2011-8-19 17:58:19 | 显示全部楼层
/BOOT/GRUB中已经有unifont 和FONTS和run三个文件,这个是必需的。

RUN  的menu 菜单 我改一下吧  别的就不改了 我只管显示中文 和run命令的正确,别的命令就不管了
find --set-root /BOOT/GRUB/RUN
command --set-path=(bd)/BOOT/GRUB/
#上面这个是引用外部命令的位置,不设置可能无法加载外部命令,像unifont 和FONTS和run都是外部命令。
unifont (ud)/BOOT/GRUB/FONTS
timeout 60
default 0
background 002500
foreground ffff00
set menu=(ud)/MENU.LST

title   彩色菜单
command run (hd0,0)/boot/

title   彩色菜单(UD)       #不明白目录都指向boot干什么,你在boot中放了多少需要启动的镜像?
command run (ud)/boot/

title   自动菜单(UD)   #不明白ud区根目录有什么要显示的?
command RUN (ud)/.AUTOMENU

title   生成自动列表(显示iso、img及文件夹)   #没有文件夹,你显示哪里?给你个boot吧 反正你喜欢显示
command run --set-ext=+.iso|.img|/ /BOOT/

title   启动MAXDOS工具箱
command RUN  --mem (ud)/IMG/MAXDOS.IMG           #/IMGS/MAXDOS.IMG GHOST 运行MAXDOS里的GHOST

title   启动PASSWORD
command RUN  --mem (ud)/img/password.img

title   启动PE.ISO
command RUN --mem (ud)/PE/WIN7PE.ISO             ##或者:RUN --mem PE.ISO

title   启动PE.ISO(加载firadisk驱动)            ##firadisk驱动文件可改名,可自带路径。
RUN /boot/imgs/firadisk.img /BOOT/IMGS/PE.ISO    ##或者:RUN firadisk.img PE.ISO(两个文件均为默认路径)
boot

title   启动XP/2003
RUN /ntldr
boot

title   启动VISTA/WIN7
RUN /bootmgr
boot

title   返回主菜单
configfile (md)4+8
回复

使用道具 举报

发表于 2011-8-20 13:24:44 | 显示全部楼层
这种写法在联想本本y450上无法启动run模块

title 启动 RUN模块(2011.08.13)
()/BOOT/GRUB/RUN
configfile (md)4+8
回复

使用道具 举报

 楼主| 发表于 2011-8-20 13:29:02 | 显示全部楼层

回复 #1628 风神 的帖子

谁发明的这种写法?
command ()/BOOT/GRUB/RUN
或
command RUN
或
command (bd)/BOOT/GRUB/RUN
等试试。
不要写后面的configfile (md)4+8
回复

使用道具 举报

发表于 2011-8-20 14:30:21 | 显示全部楼层

回复 #1627 tingyue-wu 的帖子

thank  you  今天没上班 在外玩呢  
明天在研究咯
谢谢   tingyue-wu 大大
回复

使用道具 举报

发表于 2011-8-20 14:34:09 | 显示全部楼层

回复 #1627 tingyue-wu 的帖子

title   彩色菜单(UD)       #不明白目录都指向boot干什么,你在boot中放了多少需要启动的镜像?
command run (ud)/boot/

                  因为有用的文件都在boot里啊

title   自动菜单(UD)   #不明白ud区根目录有什么要显示的?
command RUN (ud)/.AUTOMENU
         
不知道  都显示吧   没什么用  照着别人的菜单抄的

title   生成自动列表(显示iso、img及文件夹)   #没有文件夹,你显示哪里?给你个boot吧 反正你喜欢显示
command run --set-ext=+.iso|.img|/ /BOOT/   
显示所有咯   嘿嘿
谢谢咯  
没写过RUN菜单呢
回复

使用道具 举报

发表于 2011-8-22 10:54:31 | 显示全部楼层

回复 #1629 zxw 的帖子

Z大 想问下
command run --txt (ud)/.input  这样写为什么显示文件的时候会 同时显示文件的目录?
怎么能让它只显示文件名
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-10-8 04:21

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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