云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > 打造自己的多启动U盘电脑维护系统图文教程(一)

打造自己的多启动U盘电脑维护系统图文教程(一)

  • 62 次阅读
  • 3 次下载
  • 2025/6/1 19:54:54

2、下面是某grldr文件的内容: pxe detect

echo -e \\n\\n\\n $[0x0F]Press [$[0x0C] F8 $[0x0F]] in 5 seconds goto $[0x0E]VBE $[0x0F]mode \\n\\n $[0x0F]or any other key goto $[0x0A]GFX$[0x0F] mode (default)\\n\\n

pause --test-key --wait=0 set /A key=%@retval%

if \&& find --set-root /boot/grub/vbe.lst && configfile /boot/grub/vbe.lst

errorcheck off

configfile /boot/grub/menu.lst configfile /grub/menu.lst

if \

if \&& 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

3、以上内容翻译如下:(说明:#后面的文字为前面命令含义的解释,仅供参考)

pxe detect #检测预启动运行环境(GRUB4DOS版本)

echo -e \\n\\n\\n $[0x0F]Press [$[0x0C] F8 $[0x0F]] in 5 seconds goto $[0x0E]VBE $[0x0F]mode \\n\\n $[0x0F]or any other key goto $[0x0A]GFX$[0x0F] mode (default)\\n\\n #换(三)行输出(在电脑屏幕上显示):Press [F8] in 5 seconds

goto VBE mode (F8显粉色[0x0C],VBE显黄色[0x0E],其他显白色[0x0F],再换行输出(显示):or any other key goto GFX mode (default) (GFX显示绿色[0x0A],其他显白色),再换行 pause --test-key --wait=5 #暂停5s set /A key=%@retval% #设定变量

if \(查找) --set(设为)-root(根) /boot/grub/vbe.lst && configfile /boot/grub/vbe.lst #查找/boot/grub/vbe.lst文件或配置文件/boot/grub/vbe.lst,找到就设该设备为根。

errorcheck off #错误检查 关

configfile /boot/grub/menu.lst #配置文件/boot/grub/menu.lst(菜单配置文件) configfile /grub/menu.lst #配置文件/grub/menu.lst(菜单配置文件) if \

if \&& find --set-root --devices=f /menu.lst && configfile /menu.lst

find --set-root --ignore-floppies --ignore-cd /menu.lst && configfile /menu.lst #在所有分区根目录下查找vbe.lst文件或配置vbe.lst文件,忽略软驱和光驱,找到就设该设备为根。

find --set-root --ignore-floppies --ignore-cd /boot/grub/menu.lst && configfile /boot/grub/menu.lst #查找/boot/grub/下的vbe.lst文件或配置/boot/grub/下的vbe.lst文件,忽略软驱和光驱,找到就设该设备为根。

find --set-root --ignore-floppies --ignore-cd /grub/menu.lst && configfile /grub/menu.lst #查找/grub/下的menu.lst文件或配置/grub/下的menu.lst文件,忽略软驱和光驱,找到就设该设备为根。 errorcheck on #错误检查 开

5、根据以上引导设置,系统启动后的界面如下:

五、启动菜单文件menu.lst:

1、menu.lst文件是系统启动后的启动菜单选项文件,即选择U盘系统将进入哪一个PE或程序,通常位于/boot/grub/文件夹下,是GRUB4DOS与要启动的程序之间的命令关联文件。menu.lst文件也可用BOOTICE_1.3.2程序内的实用工具进行查看、编辑。

2、下面为某menu.lst文件内容,#后面文字为后加的说明部分,实际文件中没有这部分文字。

timeout 10 #默认延迟时间为10s(以供使用者进行选择) default 3 #默认启动项为第4项(第1项数值为0)

gfxmenu /boo/tgrub/message #设置/boo/tgrub/message文件为图形菜单文件 configfile (md)4+8 #配置文件

title 【01】 =>尝试从本地硬盘启动

find --set-root --ignore-floppies --ignore-cd /bootmgr || find --set-root --ignore-floppies --ignore-cd /ntldr map () (hd1) map (hd1) ()

map --rehook || echo 无需交换磁盘顺序,直接从本地盘启动

find --set-root --ignore-floppies --ignore-cd /bootmgr || find --set-root --ignore-floppies --ignore-cd /ntldr chainloader (hd0)+1 boot

title 【02】 启动 WIN2003PE 维护版 find --set-root /boot/grub/LDRXPE1 chainloader /boot/grub/LDRXPE1

title 【03】 启动 VISTA PE 维护版 find --set-root /boot/bcfmgr chainloader /boot/bcfmgr

title 【04】 启动 WIN8PE 快速启动版 find --set-root /boot/bcdmgr chainloader /boot/bcdmgr

title 【05】 启动 WIN8PE网络版 find --set-root /boot/bcemgr chainloader /boot/bcemgr

title 【06】 启动 Slitaz linux PE系统 find --set-root /boot/bzImage

kernel /boot/bzImage rw root=/dev/null vga=normal autologin initrd /boot/rootfs.gz

title 【07】 启动dos时代菜鸟工具箱 command /BOOT/GRUB/RUN /BOOT/IMGS/DTS.gz title 【09】 Grub4dos 资 源 管理器 find --set-root /BOOT/GRUB/auto.lst configfile /BOOT/GRUB/auto.lst

title 【10】 绕过Windows登录密码 command /BOOT/GRUB/RUN /BOOT/IMGS/kon.gz

3、按以上菜单文件设置,启动后的选择菜单效果如下图。

  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

2、下面是某grldr文件的内容: pxe detect echo -e \\n\\n\\n $[0x0F]Press [$[0x0C] F8 $[0x0F]] in 5 seconds goto $[0x0E]VBE $[0x0F]mode \\n\\n $[0x0F]or any other key goto $[0x0A]GFX$[0x0F] mode (default)\\n\\n pause --test-key --wait=0 set /A key=%@retval% if \&& find --set-root /boot/grub/vbe.lst && configfile /boot/grub/vbe.lst errorcheck off configfile /boot/grub/

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com