1.已确认bmw.jpg文件在/boot/grub目录下,图片分辨率1024*768,包括/etc/default/grub中的grub_gfxmode为1024*768.#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
load_env
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod jpeg
insmod png
insmod ext2
set root=(hd1,1)
search --no-floppy --fs-uuid --set c35367e6-8028-49ca-b5f5-042c9d59921b
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1024x768
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=5
background_image (hd1,1)/boot/grub/bmw.jpg
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-12-generic" {
recordfail=1
save_env recordfail
set quiet=1
insmod ext2
set root=(hd1,1)
search --no-floppy --fs-uuid --set c35367e6-8028-49ca-b5f5-042c9d59921b
linux /boot/vmlinuz-2.6.31-12-generic root=UUID=c35367e6-8028-49ca-b5f5-042c9d59921b ro quiet splash
initrd /boot/initrd.img-2.6.31-12-generic
}
menuentry "Ubuntu, Linux 2.6.31-12-generic (recovery mode)" {
recordfail=1
save_env recordfail
insmod ext2
set root=(hd1,1)
search --no-floppy --fs-uuid --set c35367e6-8028-49ca-b5f5-042c9d59921b
linux /boot/vmlinuz-2.6.31-12-generic root=UUID=c35367e6-8028-49ca-b5f5-042c9d59921b ro single
initrd /boot/initrd.img-2.6.31-12-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 00b4cf42b4cf38c4
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
2.根据哥伦布的教程修改/etc/grub.d/00_header文件,添加了insmod jpeg;insmod png和background_image (hd1,1)/boot/grub/bmw.jpg
请各位大侠看看哪里不合适?