| 
 | 
4#
 
 
 楼主 |
发表于 2011-1-9 17:26:49
|
只看该作者
 
 
 
感谢二位…… 
chainloader /filename || configfile (md)4+8   
title [09] 重新加载  
configfile /menu.lst 
--------- 
菜单从0开始编号,上面如失败fallback 9 
前提是errorcheck on 
 
另外可以加载内置菜单的方式configfile (md)4+8,从内置转向外置。   
 
 
我内置菜单就一句: 
configfile /boot/grub/menu.lst 
 
外置菜单两个标题: 
default 0 
gfxmenu /boot/grub/message 
 
title 0.从第二个硬盘启动 (hd1) 
rootnoverify (hd1) 
chainloader +1 
 
title 1.重新加载菜单 
find --set-root /boot/grub/menu.lst 
configfile /boot/grub/menu.lst 
 
把第二个title中第二行改为 
 
chainloader +1 /filename || configfile (md)4+8 
 
执行出错后返回到命令行界面,无法返回字符菜单界面或GFX菜单…… 
 
把第二个title改为 
 
fallback 1 
rootnoverify (hd1) 
chainloader +1 
 
也不行……还是返回乱码的字符菜单…… 
 
晕啊…… |   
 
 
 
 |