无忧启动论坛

标题: 求教这个代码出了什么问题!为什么启动项里不显示A和B? [打印本页]

作者: budgood    时间: 2014-12-1 11:45
标题: 求教这个代码出了什么问题!为什么启动项里不显示A和B?
本帖最后由 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
作者: budgood    时间: 2014-12-1 11:50
这是我做内存操作系统时的代码,没有使用menu.lst这个文件,而是直接在grldr文件里写的。GURDOS启动后提供的选择项如下:
find /menu.lst, /boot/grub/menu.lst, /grub/menu.lst
title RAMOS win7x32================================================C
搞不懂为什么A,B就不能显示出来?
作者: 2801961303    时间: 2014-12-1 12:03
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
作者: 2012hongrui    时间: 2014-12-1 13:15
内置菜单大小是有限制的,而且菜单写法也奇葩!
map --mem --top(hd0) /w7_16gx86.vhd (hd0)的空格位置不对,
pxe detect
configfile
default 0
timeout 1
出现了两次,
毛病太多!
grub4dos的祖师爷不点看到了也许会哭笑不得。
作者: sratlf    时间: 2014-12-1 13:41
  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
复制代码

作者: 不点    时间: 2014-12-1 14:17
title 关键字拼写错误,所以不可能显示出来。

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


作者: budgood    时间: 2014-12-1 16:08
感谢不点在6楼的回复。自己打字的时候弄错了tiitle,那的确是个低级错误。




欢迎光临 无忧启动论坛 (http://bbs.wuyou.net./) Powered by Discuz! X3.3