苹果帮忙看下,修改grub2如下,结果无图片显示

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
头像
honghong
帖子: 317
注册时间: 2009-05-14 14:06

苹果帮忙看下,修改grub2如下,结果无图片显示

#1

帖子 honghong » 2009-09-30 12:44

#
# 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 jpg
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set bff94085-6b19-43c3-84b4-f7c2be5f2022
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
set timeout=10
background_image (hd0,5)/boot/images/1.jpg
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=green/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "honghong De Ubuntu" {
set quiet=1
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set f33883c0-43f8-4950-ae07-9a96aba95484
linux /vmlinuz-2.6.31-10-generic root=UUID=bff94085-6b19-43c3-84b4-f7c2be5f2022 ro quiet splash
initrd /initrd.img-2.6.31-10-generic
}
menuentry "Ubuntu recovery mode" {
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set f33883c0-43f8-4950-ae07-9a96aba95484
linux /vmlinuz-2.6.31-10-generic root=UUID=bff94085-6b19-43c3-84b4-f7c2be5f2022 ro single
initrd /initrd.img-2.6.31-10-generic
}
### END /etc/grub.d/10_linux ###





### BEGIN /etc/grub.d/30_os-prober ###
menuentry "honghong De Windows 7" {
insmod ntfs
set root=(hd0,4)
search --no-floppy --fs-uuid --set ee4ae8254ae7e873
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 ###
能够正常进入系统,但是无法显示图片,进入GRUB2时还闪过一句: file not found 好像是的

我的boot是单独分区的,在sda5
That is in my life!
头像
honghong
帖子: 317
注册时间: 2009-05-14 14:06

Re: 苹果帮忙看下,修改grub2如下,结果无图片显示

#2

帖子 honghong » 2009-09-30 12:54

刚才把这两句话删了就没有不会闪出那个 file not found 了
insmod jpg

background_image (hd0,5)/boot/images/1.jpg
That is in my life!
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 苹果帮忙看下,修改grub2如下,结果无图片显示

#3

帖子 smallapple » 2009-09-30 18:23

insmod jpeg

图片和路径不要错。
头像
honghong
帖子: 317
注册时间: 2009-05-14 14:06

Re: 苹果帮忙看下,修改grub2如下,结果无图片显示

#4

帖子 honghong » 2009-09-30 22:56

smallapple 写了:insmod jpeg

图片和路径不要错。

如图,路径没错的啊,不懂啊
附件
Screenshot.png
That is in my life!
头像
wangdu2002
帖子: 13284
注册时间: 2008-12-13 19:39
来自: 物华天宝人杰地灵

Re: 苹果帮忙看下,修改grub2如下,结果无图片显示

#5

帖子 wangdu2002 » 2009-09-30 22:58

background_image (hd0,5)/images/1.jpg
/boot单独分区的,直接省略/boot,用分区指明就行了吧。 :em03
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: 苹果帮忙看下,修改grub2如下,结果无图片显示

#6

帖子 adagio » 2009-09-30 23:08

明摆着就是路径错了
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
头像
honghong
帖子: 317
注册时间: 2009-05-14 14:06

Re: 苹果帮忙看下,修改grub2如下,结果无图片显示

#7

帖子 honghong » 2009-09-30 23:25

adagio 写了:明摆着就是路径错了
好了,之前我也觉得是路径问题,于是我把改成
(hd0,5)images/1.jpg
结果还是没出来,我就郁闷了,不知道该怎么办了

原来是少了一个 / 啊
That is in my life!
回复