grub2 启动报错

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
头像
pllion
帖子: 216
注册时间: 2008-11-09 9:06
送出感谢: 0
接收感谢: 0

grub2 启动报错

#1

帖子 pllion » 2010-01-31 22:48

grub2启动的时候,grub loading之后有时候会出现error: file not found(附件1),然后才进入启动菜单选项;但是有时候则不报错,我研究了下他的脚本,不能确定调用的是那一个文件,有没有同样问题的朋友?

另外还是不能开启fbuffer! 郁闷啊!
附件
2.png
1.png
viewtopic.php?f=33&t=172235
Sometimes I wonder will God ever forgive us for what we've done to each other? Then I look around and I realize,God left this place a long time ago.
头像
smallapple
论坛版主
帖子: 7867
注册时间: 2009-03-28 15:12
送出感谢: 0
接收感谢: 19 次

Re: grub2 启动报错

#2

帖子 smallapple » 2010-01-31 22:58

grub.cfg贴出来看看
头像
pllion
帖子: 216
注册时间: 2008-11-09 9:06
送出感谢: 0
接收感谢: 0

Re: grub2 启动报错

#3

帖子 pllion » 2010-01-31 23:32

去掉了一些注释!
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
################################
insmod jpeg
insmod jpg
insmod png
insmod tga
################################
function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set e4da2b84-371a-4167-8a3a-2796fdb7cf38
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1280x800
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 locale_dir=/boot/grub/locale
set lang=zh
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=1
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set e4da2b84-371a-4167-8a3a-2796fdb7cf38
insmod png
if background_image /boot/grub/moreblue-orbit-grub.png ; then
set color_normal=green/black
set color_highlight=magenta/black
else
set menu_color_normal=green/black
set menu_color_highlight=magenta/black
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/06_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set f278eb1778ead97d
chainloader +1
}
### END /etc/grub.d/06_os-prober ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, with Linux 2.6.32-12-generic" {
recordfail
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set e4da2b84-371a-4167-8a3a-2796fdb7cf38
linux /boot/vmlinuz-2.6.32-12-generic root=/dev/sda5 ro quiet splash
initrd /boot/initrd.img-2.6.32-12-generic
}
menuentry "Ubuntu, with Linux 2.6.32-12-generic (recovery mode)" {
recordfail
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set e4da2b84-371a-4167-8a3a-2796fdb7cf38
echo Loading Linux 2.6.32-12-generic ...
linux /boot/vmlinuz-2.6.32-12-generic root=/dev/sda5 ro single
echo Loading initial ramdisk ...
initrd /boot/initrd.img-2.6.32-12-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set e4da2b84-371a-4167-8a3a-2796fdb7cf38
linux16 /boot/memtest86+.bin
}
### END /etc/grub.d/20_memtest86+ ###
viewtopic.php?f=33&t=172235
Sometimes I wonder will God ever forgive us for what we've done to each other? Then I look around and I realize,God left this place a long time ago.
头像
pllion
帖子: 216
注册时间: 2008-11-09 9:06
送出感谢: 0
接收感谢: 0

Re: grub2 启动报错

#4

帖子 pllion » 2010-01-31 23:37

该换个相机了,我那个佳能拍那句error:file not found拍了6次没拍到,不得已录像截屏。 :em20 :em20
viewtopic.php?f=33&t=172235
Sometimes I wonder will God ever forgive us for what we've done to each other? Then I look around and I realize,God left this place a long time ago.
头像
smallapple
论坛版主
帖子: 7867
注册时间: 2009-03-28 15:12
送出感谢: 0
接收感谢: 19 次

Re: grub2 启动报错

#5

帖子 smallapple » 2010-02-01 7:50

把 insmod jpg 去掉,本来就只有 jpeg.mod 没有 jpg.mod 的。
头像
pllion
帖子: 216
注册时间: 2008-11-09 9:06
送出感谢: 0
接收感谢: 0

Re: grub2 启动报错

#6

帖子 pllion » 2010-02-01 23:12

thx! 解决了 !
viewtopic.php?f=33&t=172235
Sometimes I wonder will God ever forgive us for what we've done to each other? Then I look around and I realize,God left this place a long time ago.
回复

回到 “启动和引导”