代码: 全选
#
# 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 ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
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 ntfs
insmod ext2
set root=(hd0,8)
search --no-floppy --fs-uuid --set dc383241-f1cd-4059-8843-f3eb403376cd
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
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=3
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod ext2
set root=(hd0,8)
search --no-floppy --fs-uuid --set dc383241-f1cd-4059-8843-f3eb403376cd
insmod jpeg
if background_image /boot/images/moreblue-orbit-grub.jpg ; then
set color_normal=black/black
set color_highlight=magenta/black
else
set menu_color_normal=white/black
set menu_color_highlight=green/black
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "进入Ubuntu Karmic操作系统" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,8)
search --no-floppy --fs-uuid --set dc383241-f1cd-4059-8843-f3eb403376cd
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=dc383241-f1cd-4059-8843-f3eb403376cd ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "进入Ubuntu Karmic操作系统(修复模式)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,8)
search --no-floppy --fs-uuid --set dc383241-f1cd-4059-8843-f3eb403376cd
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=dc383241-f1cd-4059-8843-f3eb403376cd ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "启动硬件内存检测" {
linux16 /boot/memtest86+.bin
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "进入Windows 7 or Windows XP操作系统" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 06d07950d07946c9
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 ###
第一个图片显示挂了,我参照bbeikke小童鞋的做法,输入转换图片命令:
代码: 全选
convert 源文件名 -resize 640x480! -colors 24 moreblue-orbit-grub.png
代码: 全选
sudo apt-get install grub
###################
wjp@ThinkPad:/etc/grub.d$ sudo update-grub
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ...
Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N)
###################
然后我蒙了,grub2可是没有menu.lst的啊。点了下Y。再看一下,晕了:
####################
Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) y
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.31-14-generic
Found GRUB 2: /boot/grub/core.img
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done
wjp@ThinkPad:/etc/grub.d$
####################
完了!我一想啊,这下update-grub就把我以前花大半心血改的grub菜单又还原了,而且还是不搭调的grub.一不像一,二不像二的了。我看了下menu.lst。真是恨死了。恨死了!太长了,就不贴menu.lst了。
一气之下,sudo apt-get remove grub 删了它。这下好了,update-grub命令没了。哭~~无语!我被挂起了,不知炸整了。。。。(还好开机菜单没有变,但update-grub没了,我以后也没法改了。)
这下彻底挂起了,我茫然找不着路了。这叫什么来着的,偷鸡不成,反蚀把米?陪了夫人又折bing?
背景图片没搞成,还断了路了。
所以,现在,敬请高手,过来人,小朋友都过来瞧瞧,我这下一步怎魔办?还有那个转换图片的命令确实有用不?顺便告诉我下背景图片的要求,限制是怎么一回事,举个例子把1280x800的高像素图片转换成合格的一下。我到现在还是没背景。教程里也没有具体的解释操作。只是说放一张图片而已。
放一下我想用的背景图吧,在附件。
SOS