我得硬盘是串口320G得,图片放在/boot/grub/下,/boot,/,/home,/swap单独分区,显示的是/boot 挂载得是/dev/sda11,我按照GRUB 的教程都设好了,可是还是无法启动显示图片,请大家帮我解决问题,谢谢了!下面是我修改后的文件参数<br><font style="color: rgb(255, 0, 0);" size="4"> /etc/default/grub得参数如下:</font><br># If you change this file, run 'update-grub' afterwards to update<br>
# /boot/grub/grub.cfg.<br><br>GRUB_DEFAULT=0<br>#GRUB_HIDDEN_TIMEOUT=0<br>GRUB_HIDDEN_TIMEOUT_QUIET=true<br>GRUB_TIMEOUT=5<br>GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`<br>GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"<br>
GRUB_CMDLINE_LINUX=""<br><br># Uncomment to disable graphical terminal (grub-pc only)<br>#GRUB_TERMINAL=console<br><br># The resolution used on graphical terminal<br># note that you can use only modes which your graphic card supports via VBE<br>
# you can see them in real GRUB with the command `vbeinfo'<br>GRUB_GFXMODE=1024x768<br><br>#Uncomment if you don't want GRUB to pass "root=/dev/sdax" parameter to Linux<br>GRUB_DISABLE_LINUX_UUID=true<br>
<br># Uncomment to disable generation of recovery mode menu entrys<br>#GRUB_DISABLE_LINUX_RECOVERY="true"<br><br><br><font style="color: rgb(255, 102, 102);" size="4"> /etc/grub.d/00_header参数如下:</font><br><br>#! /bin/sh -e<br>
<br># grub-mkconfig helper script.<br># Copyright (C) 2006,2007,2008,2009 Free Software Foundation, Inc.<br>#<br># GRUB is free software: you can redistribute it and/or modify<br># it under the terms of the GNU General Public License as published by<br>
# the Free Software Foundation, either version 3 of the License, or<br># (at your option) any later version.<br>#<br># GRUB is distributed in the hope that it will be useful,<br># but WITHOUT ANY WARRANTY; without even the implied warranty of<br>
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br># GNU General Public License for more details.<br>#<br># You should have received a copy of the GNU General Public License<br># along with GRUB. If not, see <<a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>>.<br>
<br>transform="s,x,x,"<br><br>prefix=/usr<br>exec_prefix=${prefix}<br>libdir=${exec_prefix}/lib<br>grub_prefix=`echo /boot/grub | sed ${transform}`<br><br>. ${libdir}/grub/grub-mkconfig_lib<br><br># Do this as early as possible, since other commands might depend on it.<br>
# (e.g. the `loadfont' command might need lvm or raid modules)<br>for i in ${GRUB_PRELOAD_MODULES} ; do<br> echo "insmod $i"<br>done<br><br>if [ "x${GRUB_DEFAULT}" = "x" ] ; then GRUB_DEFAULT=0 ; fi<br>
if [ "x${GRUB_DEFAULT}" = "xsaved" ] ; then GRUB_DEFAULT='${saved_entry}' ; fi<br>if [ "x${GRUB_TIMEOUT}" = "x" ] ; then GRUB_TIMEOUT=5 ; fi<br>if [ "x${GRUB_GFXMODE}" = "x" ] ; then GRUB_GFXMODE=640x480 ; fi<br>
<br>cat << EOF<br>if [ -s /boot/grub/grubenv ]; then<br> have_grubenv=true<br> load_env<br>fi<br>set default="${GRUB_DEFAULT}"<br>if [ \${prev_saved_entry} ]; then<br> saved_entry=\${prev_saved_entry}<br>
save_env saved_entry<br> prev_saved_entry=<br> save_env prev_saved_entry<br>fi<br>insmod jpeg<br>EOF<br><br>case ${GRUB_TERMINAL_INPUT}:${GRUB_TERMINAL_OUTPUT} in<br> serial:* | *:serial)<br> if ! test -e ${grub_prefix}/serial.mod ; then<br>
echo "Serial terminal not available on this platform." >&2 ; exit 1<br> fi<br><br> if [ "x${GRUB_SERIAL_COMMAND}" = "x" ] ; then<br> grub_warn "Requested serial terminal but GRUB_SERIAL_COMMAND is unspecified. Default parameters will be used."<br>
GRUB_SERIAL_COMMAND=serial<br> fi<br> echo "${GRUB_SERIAL_COMMAND}"<br> ;;<br>esac<br><br>case x${GRUB_TERMINAL_INPUT} in<br> x)<br> # Just use the native terminal<br> ;;<br> x*)<br> cat << EOF<br>
if terminal_input ${GRUB_TERMINAL_INPUT} ; then true ; else<br> # For backward compatibility with versions of terminal.mod that don't<br> # understand terminal_input<br> terminal ${GRUB_TERMINAL_INPUT}<br>fi<br>EOF<br>
;;<br>esac<br><br>case x${GRUB_TERMINAL_OUTPUT} in<br> xgfxterm)<br> # Make the font accessible<br> prepare_grub_to_access_device `${grub_probe} --target=device ${GRUB_FONT_PATH}`<br><br> cat << EOF<br>if loadfont `make_system_path_relative_to_its_root ${GRUB_FONT_PATH}` ; then<br>
set gfxmode=${GRUB_GFXMODE}<br> insmod gfxterm<br> insmod ${GRUB_VIDEO_BACKEND}<br> if terminal_output gfxterm ; then true ; else<br> # For backward compatibility with versions of terminal.mod that don't<br> # understand terminal_output<br>
terminal gfxterm<br> fi<br>fi<br>EOF<br> ;;<br> x)<br> # Just use the native terminal<br> ;;<br> x*)<br> cat << EOF<br>if terminal_output ${GRUB_TERMINAL_OUTPUT} ; then true ; else<br> # For backward compatibility with versions of terminal.mod that don't<br>
# understand terminal_output<br> terminal ${GRUB_TERMINAL_OUTPUT}<br>fi<br>EOF<br> ;;<br>esac<br><br>cat << EOF<br>if [ \${recordfail} = 1 ]; then<br> set timeout=-1<br>else<br> set timeout=${GRUB_TIMEOUT}<br>
fi<br>background_image (hd0,11)/boot/grub/007.jpg<br>EOF<br><br><br>请高手看看我得哪些参数需要修改,是不是hd(0,x)不对,我不清楚是多少?再次感谢!!<br><br><br clear="all"><br>-- <br>Elvis<br>