天空海阔 发表于 2013-6-5 11:42:11

grub2引导pe出错!!!

本帖最后由 天空海阔 于 2013-6-5 11:58 编辑

我是将grub2安装到u盘中去了。。
下面是我的grub.cfg代码set default= "0"
if loadfont /boot/grub/unicode.pf2 ; then
        set gfxmode="1024x768x32"
        insmod gfxterm
        insmod vbe
        terminal_output gfxterm
        if terminal_output gfxterm; then true ; else
                terminal gfxterm
        fi
fi
set timeout=10
insmod png
background_image /boot/grub/background.png
set menu_color_normal=light-blue/black
set menu_color_hightlight=light-cyan/blue
set color_normal=black/black
set color_highlight=magenta/black
insmod vbe
menuentry 'Loading my winpe' --class windows --class os
{
        insmod fat
        insmod part_msdos
        echo "载入winpe系统盘维护工具...."
        set root='(hd0,msdos1)'
        insmod memdisk
        linux16 /boot/memdisk iso raw
        echo '初始化内存.....'
        initrd16 /boot/mype.iso
}
menuentry "重启计算机"
{
        reboot
}
menuentry "关闭计算机"
{
        halt
}出现如下错误:error:no menuentry definition
error:syntax error
error:Incorrect comand
error:syntax error背景图片已经你成功载入
无法载入菜单....求高手指点问题出错在哪里改怎么改?

fanet 发表于 2013-6-9 23:17:04

本帖最后由 fanet 于 2013-6-9 23:21 编辑

可能是你在windows下编辑的grub.cfg,有可能是编码格式不对,试另存为utf-8
还有可能哪个 { 不要另起一行,再试试

my9823 发表于 2013-6-10 12:20:53

linux16 /boot/memdisk iso raw这???
应该是:
linux16 /boot/memdisk iso

my9823 发表于 2013-6-10 12:21:21

memdisk使用syslinux的memdisk

thelusun 发表于 2020-4-2 22:08:49

fanet 发表于 2013-6-9 23:17
可能是你在windows下编辑的grub.cfg,有可能是编码格式不对,试另存为utf-8
还有可能哪个 { 不要另起一行 ...

我也出现同楼主一样的错误,果然那个中括号不能另起一行.
页: [1]
查看完整版本: grub2引导pe出错!!!