分页: 1 / 1

启动引导的图像界面和配置文件grub.cfg

发表于 : 2009-09-16 17:40
luanqh
我做的启动引导的图像界面和配置文件grub.cfg。初学乍练,请不要见笑。
第一硬盘主分区windowsXP
第一硬盘第二主分区ubuntu9.10
第二硬盘主分区 用wubi安装的ubuntu9.10
grub.cfg:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/local/sbin/grub-mkconfig using templates
# from /usr/local/etc/grub.d and settings from /usr/local/etc/default/grub
#

### BEGIN /usr/local/etc/grub.d/00_header ###
set default=0
#insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set 1658f65258f6305b
if loadfont /boot/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
insmod jpeg
insmod png
background_image /boot/grub/ubuntu.png
set timeout=5
### END /usr/local/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 /usr/local/etc/grub.d/10_linux ###
menuentry "GNU/Linux, Linux 2.6.31-10-generic 启动乌班图9.10" {
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set 8cda4900-8434-4efd-94db-2b0cf73433d6
linux /boot/vmlinuz-2.6.31-10-generic root=UUID=8cda4900-8434-4efd-94db-2b0cf73433d6 ro
initrd /boot/initrd.img-2.6.31-10-generic
}
menuentry "GNU/Linux, Linux 2.6.31-10-generic (recovery mode) 恢复模式" {
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set 8cda4900-8434-4efd-94db-2b0cf73433d6
linux /boot/vmlinuz-2.6.31-10-generic root=UUID=8cda4900-8434-4efd-94db-2b0cf73433d6 ro single
initrd /boot/initrd.img-2.6.31-10-generic
}
### END /usr/local/etc/grub.d/10_linux ###

### BEGIN /usr/local/etc/grub.d/30_os-prober ###
menuentry " " {
}
menuentry "Microsoft Windows XP Professional (on /dev/sda1) 启动 Win-XP" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 1658f65258f6305b
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry " " {
}
### END /usr/local/etc/grub.d/30_os-prober ###

### BEGIN /usr/local/etc/grub.d/40_custom ###
# This file is an example on how to add custom entries
### END /usr/local/etc/grub.d/40_custom ###


### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-10-generic-wubi" {
set root=(hd1,1)
search --no-floppy --fs-uuid --set 54B42690B42674A0
linux /ubuntu/disks/boot/vmlinuz-2.6.31-10-generic root=/dev/sdb1 loop=/ubuntu/disks/root.disk ro
initrd /ubuntu/disks/boot/initrd.img-2.6.31-10-generic
}
menuentry "Ubuntu, Linux 2.6.31-10-generic (recovery mode)-wubi" {
set root=(hd1,1)
search --no-floppy --fs-uuid --set 54B42690B42674A0
linux /ubuntu/disks/boot/vmlinuz-2.6.31-10-generic root=/dev/sdb1 loop=/ubuntu/disks/root.disk ro single
initrd /ubuntu/disks/boot/initrd.img-2.6.31-10-generic
}
### END /etc/grub.d/10_linux ###
img_1794.jpg

Re: 启动引导的图像界面和配置文件grub.cfg-----请高手勿进

发表于 : 2009-09-16 17:49
wangdu2002
非高手路过纯支持下,顺便推荐哥伦布2代的基础教程。 :em04
viewtopic.php?f=139&t=225669&p=1448778# ... 的哥伦布2代基础教程

Re: 启动引导的图像界面和配置文件grub.cfg-----请高手勿进

发表于 : 2009-09-16 17:55
leeaman
启动慢了一点,不然还是可以的,做的慢好看的啊~~~

Re: 启动引导的图像界面和配置文件grub.cfg

发表于 : 2009-09-25 19:47
tuwulin365
看看我的,用grub4dos