grub启动是,有好多的选项

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
lemonchen
帖子: 14
注册时间: 2008-11-06 19:53
送出感谢: 0
接收感谢: 0

grub启动是,有好多的选项

#1

帖子 lemonchen » 2010-05-04 6:32

grub.cfg文件如下,怎么编辑阿?
#
# 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="10"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,9)
search --no-floppy --fs-uuid --set bb124c09-184a-49ad-b4f3-c830ae62a3cf
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=5
fi
### END /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 /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-21-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,9)
search --no-floppy --fs-uuid --set bb124c09-184a-49ad-b4f3-c830ae62a3cf
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=bb124c09-184a-49ad-b4f3-c830ae62a3cf ro vga=786 quiet splash
initrd /boot/initrd.img-2.6.31-21-generic
}
menuentry "Ubuntu, Linux 2.6.31-21-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,9)
search --no-floppy --fs-uuid --set bb124c09-184a-49ad-b4f3-c830ae62a3cf
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=bb124c09-184a-49ad-b4f3-c830ae62a3cf ro single vga=786
initrd /boot/initrd.img-2.6.31-21-generic
}
menuentry "Ubuntu, Linux 2.6.31-20-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,9)
search --no-floppy --fs-uuid --set bb124c09-184a-49ad-b4f3-c830ae62a3cf
linux /boot/vmlinuz-2.6.31-20-generic root=UUID=bb124c09-184a-49ad-b4f3-c830ae62a3cf ro vga=786 quiet splash
initrd /boot/initrd.img-2.6.31-20-generic
}
menuentry "Ubuntu, Linux 2.6.31-20-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,9)
search --no-floppy --fs-uuid --set bb124c09-184a-49ad-b4f3-c830ae62a3cf
linux /boot/vmlinuz-2.6.31-20-generic root=UUID=bb124c09-184a-49ad-b4f3-c830ae62a3cf ro single vga=786
initrd /boot/initrd.img-2.6.31-20-generic
}
menuentry "Ubuntu, Linux 2.6.31-19-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,9)
search --no-floppy --fs-uuid --set bb124c09-184a-49ad-b4f3-c830ae62a3cf
linux /boot/vmlinuz-2.6.31-19-generic root=UUID=bb124c09-184a-49ad-b4f3-c830ae62a3cf ro vga=786 quiet splash
initrd /boot/initrd.img-2.6.31-19-generic
}
menuentry "Ubuntu, Linux 2.6.31-19-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,9)
search --no-floppy --fs-uuid --set bb124c09-184a-49ad-b4f3-c830ae62a3cf
linux /boot/vmlinuz-2.6.31-19-generic root=UUID=bb124c09-184a-49ad-b4f3-c830ae62a3cf ro single vga=786
initrd /boot/initrd.img-2.6.31-19-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,9)
search --no-floppy --fs-uuid --set bb124c09-184a-49ad-b4f3-c830ae62a3cf
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=bb124c09-184a-49ad-b4f3-c830ae62a3cf ro vga=786 quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,9)
search --no-floppy --fs-uuid --set bb124c09-184a-49ad-b4f3-c830ae62a3cf
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=bb124c09-184a-49ad-b4f3-c830ae62a3cf ro single vga=786
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 4e80f9e280f9d107
drivemap -s (hd0) ${root}
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 ###
头像
黄美姬
论坛版主
帖子: 8428
注册时间: 2009-10-08 11:15
来自: 大城市铁岭
送出感谢: 0
接收感谢: 1 次

Re: grub启动是,有好多的选项

#2

帖子 黄美姬 » 2010-05-04 6:38

sudo apt-get rmove Memtest86+
在/etc/default/grub里把recovery mode那行前面的#去掉
把旧内核也删除
sudo update-grub
我们是命运的妓女,它把我们都嫖了

N卡驱动:http://www.nvidia.cn/Download/index.aspx?lang=cn
极品飞车:http://www.geforce.cn/optimize/optimal- ... ts-450-ops
孤岛危机优化设置:http://www.geforce.cn/optimize/optimal- ... tx-450-ops
:cp /etc/skel/.bashrc ~/
PS1="\[\e]2;\u@\H \w\a\e[32;1m\]\T$\[\e[0m\] "
http://cdimage.ubuntu.com/
http://releases.ubuntu.com/
头像
黄美姬
论坛版主
帖子: 8428
注册时间: 2009-10-08 11:15
来自: 大城市铁岭
送出感谢: 0
接收感谢: 1 次

Re: grub启动是,有好多的选项

#3

帖子 黄美姬 » 2010-05-04 6:56

你可以呼叫萍果smallapple,他给你一句命令搞定 :em04
我们是命运的妓女,它把我们都嫖了

N卡驱动:http://www.nvidia.cn/Download/index.aspx?lang=cn
极品飞车:http://www.geforce.cn/optimize/optimal- ... ts-450-ops
孤岛危机优化设置:http://www.geforce.cn/optimize/optimal- ... tx-450-ops
:cp /etc/skel/.bashrc ~/
PS1="\[\e]2;\u@\H \w\a\e[32;1m\]\T$\[\e[0m\] "
http://cdimage.ubuntu.com/
http://releases.ubuntu.com/
lemonchen
帖子: 14
注册时间: 2008-11-06 19:53
送出感谢: 0
接收感谢: 0

Re: grub启动是,有好多的选项

#4

帖子 lemonchen » 2010-05-04 6:57

把旧内核也删除!!!
这个怎么操作?
头像
smallapple
论坛版主
帖子: 7867
注册时间: 2009-03-28 15:12
送出感谢: 0
接收感谢: 19 次

Re: grub启动是,有好多的选项

#5

帖子 smallapple » 2010-05-04 7:00

代码: 全选

sudo apt-get purge memtest86+  Linux-image-2.6.31-14-generic Linux-image-2.6.31-19-generic  Linux-image-2.6.31-20-generic
执行前确认你的21的内核一切正常

Recovery 还是留着好
上次由 smallapple 在 2010-05-04 7:03,总共编辑 1 次。
lemonchen
帖子: 14
注册时间: 2008-11-06 19:53
送出感谢: 0
接收感谢: 0

Re: grub启动是,有好多的选项

#6

帖子 lemonchen » 2010-05-04 7:03

谢谢,我晚上试试
回复

回到 “启动和引导”