|
我把grub安装到了U盘上,而且能成功启动ubuntu,可是我是有背景图片的啊 ,不知道是哪里出了问题,grub.cfg如下,求各位大大给看看;
set default=0
insmod vga
insmod font
insmod gfxmenu
insmod jpeg
insmod png
set root=(hd0,1)
#加载unicode字体显示中文
terminal gfxterm
if loadfont /boot/grub/fonts/unicode.pf2;then
set gfxmode=1024x768
insmod gfxterm
insmod vbe
if terminal_output gfxterm;then true;else
terminal gfxterm
fi
fi
set timeout=10
background_image (hd0,1)/boot/grub/back.png
#颜色
if background_image (hd0,1)/boot/grub/back.png; then
set color_normal=red/black
set color_highlight=brown/cyan
else
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
fi
menuentry "启动ubuntu.iso" --class linux {
insmod ext2
insmod iso9660
set root=(hd0,1)
loopback loop (hd0,1)/ubuntu.iso
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/ubuntu.iso ro quiet splash locale=zh_CN.UTF-8
initrd (loop)/casper/initrd.lz
}
menuentry "重启"{
reboot
}
menuentry "关机"{
halt
}
|
|