无忧启动论坛

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

求教这个代码出了什么问题!为什么启动项里不显示A和B?

[复制链接]
跳转到指定楼层
1#
发表于 2014-12-1 11:45:16 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 budgood 于 2014-12-1 11:46 编辑

pxe detect
configfile
default 0
timeout 5

title find /menu.lst, /boot/grub/menu.lst, /grub/menu.lst
        errorcheck off
        configfile /menu.lst
        configfile /boot/grub/menu.lst
        configfile /grub/menu.lst
        if "%@root%"=="(ud)" && calc *0x82A0=*0x82b9&0xff
        if "%@root:~1,1%"=="f" && 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
        commandline

pxe detect
configfile
default 0
timeout 1



tltle boot from  win7ramos============================================A
find --set-root /w7_16gx86.vhd
map --mem --top (hd0,0) /w7_16gx86.vhd (hd0)
map --hook
root (hd0,0)
chainloader /bootmgr
boot

tltle boot from  win7ramos==========================================B
find --set-root(hd0)  /w7_16gx86.vhd
map --mem --top(hd0) /w7_16gx86.vhd (hd0)
map (hd0) (hd1)
map --hook
root (hd0,0)
chainloader /bootmgr
boot


debug off
timeout 0
default 0
title RAMOS win7x32================================================C
find --set-root(hd0)  /w7_16gx86.vhd
map --mem --top(hd0) /w7_16gx86.vhd (hd0)
map (hd0) (hd1)
map --hook
root (hd0,0)
chainloader /bootmgr
boot
2#
 楼主| 发表于 2014-12-1 11:50:17 | 只看该作者
这是我做内存操作系统时的代码,没有使用menu.lst这个文件,而是直接在grldr文件里写的。GURDOS启动后提供的选择项如下:
find /menu.lst, /boot/grub/menu.lst, /grub/menu.lst
title RAMOS win7x32================================================C
搞不懂为什么A,B就不能显示出来?
回复

使用道具 举报

3#
发表于 2014-12-1 12:03:25 | 只看该作者
pxe detect
configfile
default 0
timeout 5

title find /menu.lst, /boot/grub/menu.lst, /grub/menu.lst
         errorcheck off
         configfile /menu.lst
         configfile /boot/grub/menu.lst
         configfile /grub/menu.lst
         if "%@root%"=="(ud)" && calc *0x82A0=*0x82b9&0xff
         if "%@root:~1,1%"=="f" && 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
         commandline

pxe detect
configfile
default 0
timeout 1



tltle boot from  win7ramos============================================A
find --set-root /w7_16gx86.vhd
map --mem --top (hd0,0) /w7_16gx86.vhd (hd0)
map --hook
root (hd0,0)
chainloader /bootmgr
boot

tltle boot from  win7ramos==========================================B
find --set-root(hd0)  /w7_16gx86.vhd
map --mem --top(hd0) /w7_16gx86.vhd (hd0)
map (hd0) (hd1)
map --hook
root (hd0,0)
chainloader /bootmgr
boot


debug off
timeout 0
default 0
title RAMOS win7x32================================================C
find --set-root(hd0)  /w7_16gx86.vhd
map --mem --top(hd0) /w7_16gx86.vhd (hd0)
map (hd0) (hd1)
map --hook
root (hd0,0)
chainloader /bootmgr
boot
回复

使用道具 举报

4#
发表于 2014-12-1 13:15:46 来自手机 | 只看该作者
内置菜单大小是有限制的,而且菜单写法也奇葩!
map --mem --top(hd0) /w7_16gx86.vhd (hd0)的空格位置不对,
pxe detect
configfile
default 0
timeout 1
出现了两次,
毛病太多!
grub4dos的祖师爷不点看到了也许会哭笑不得。
回复

使用道具 举报

5#
发表于 2014-12-1 13:41:06 | 只看该作者
  1. pxe detect
  2. configfile
  3. default 0
  4. timeout 5

  5. title find /menu.lst, /boot/grub/menu.lst, /grub/menu.lst
  6.         errorcheck off
  7.         configfile /menu.lst
  8.         configfile /boot/grub/menu.lst
  9.         configfile /grub/menu.lst
  10.         if "%@root%"=="(ud)" && calc *0x82A0=*0x82b9&0xff
  11.         if "%@root:~1,1%"=="f" && find --set-root --devices=f /menu.lst && configfile /menu.lst
  12.         find --set-root --ignore-floppies --ignore-cd /menu.lst && configfile /menu.lst
  13.         find --set-root --ignore-floppies --ignore-cd /boot/grub/menu.lst && configfile /boot/grub/menu.lst
  14.         find --set-root --ignore-floppies --ignore-cd /grub/menu.lst && configfile /grub/menu.lst
  15.         errorcheck on
  16.         commandline

  17. tltle boot from  win7ramos============================================A
  18. find --set-root /w7_16gx86.vhd
  19. map --mem --top /w7_16gx86.vhd (hd0)
  20. map --hook
  21. root (hd0,0)
  22. chainloader /bootmgr
  23. boot

  24. tltle boot from  win7ramos==========================================B
  25. find --set-root /w7_16gx86.vhd
  26. map --mem --top /w7_16gx86.vhd (hd0)
  27. map (hd0) (hd1)
  28. map --hook
  29. root (hd0,0)
  30. chainloader /bootmgr
  31. boot

  32. title RAMOS win7x32================================================C
  33. find --set-root /w7_16gx86.vhd
  34. map --mem --top /w7_16gx86.vhd (hd0)
  35. map (hd0) (hd1)
  36. map --hook
  37. root (hd0,0)
  38. chainloader /bootmgr
  39. boot
复制代码
回复

使用道具 举报

6#
发表于 2014-12-1 14:17:57 | 只看该作者
title 关键字拼写错误,所以不可能显示出来。

你把 title 拼写为 T L T L E,当然不行。

评分

参与人数 1无忧币 +5 收起 理由
budgood + 5 赞一个!

查看全部评分

回复

使用道具 举报

7#
 楼主| 发表于 2014-12-1 16:08:47 | 只看该作者
感谢不点在6楼的回复。自己打字的时候弄错了tiitle,那的确是个低级错误。
回复

使用道具 举报

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

本版积分规则

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

闽公网安备 35020302032614号

GMT+8, 2024-4-20 15:13

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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