#
# 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 $prefix/grubenv ]; then
set have_grubenv=true
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
fi
insmod ext2
set root=(hd0,7)
search --no-floppy --fs-uuid --set 6148c119-8355-43e6-b25f-07e3920c54da
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
set locale_dir=/boot/grub/locale
set lang=zh
insmod gettext
set timeout=11
set timeout=10
### 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, with Linux 2.6.32-9-generic" {
set recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 05bdb7ea-3226-465f-a143-d4d8a1ef968f
linux //vmlinuz-2.6.32-9-generic root=UUID=6148c119-8355-43e6-b25f-07e3920c54da ro quiet splash
initrd //initrd.img-2.6.32-9-generic
}
menuentry "Ubuntu, with Linux 2.6.32-9-generic (recovery mode)" {
set recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 05bdb7ea-3226-465f-a143-d4d8a1ef968f
linux //vmlinuz-2.6.32-9-generic root=UUID=6148c119-8355-43e6-b25f-07e3920c54da ro single
initrd //initrd.img-2.6.32-9-generic
}
menuentry "Ubuntu, with Linux 2.6.32-7-generic" {
set recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 05bdb7ea-3226-465f-a143-d4d8a1ef968f
linux //vmlinuz-2.6.32-7-generic root=UUID=6148c119-8355-43e6-b25f-07e3920c54da ro quiet splash
initrd //initrd.img-2.6.32-7-generic
}
menuentry "Ubuntu, with Linux 2.6.32-7-generic (recovery mode)" {
set recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 05bdb7ea-3226-465f-a143-d4d8a1ef968f
linux //vmlinuz-2.6.32-7-generic root=UUID=6148c119-8355-43e6-b25f-07e3920c54da ro single
initrd //initrd.img-2.6.32-7-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 05bdb7ea-3226-465f-a143-d4d8a1ef968f
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 05bdb7ea-3226-465f-a143-d4d8a1ef968f
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###
dj_sunny 于 2010-04-19 15:12:42发表:
技术贴!要顶!
zwwlucky 于 2010-03-09 14:53:01发表:
楼主强悍!直接用的vi ,我当时用的gedit也是显示只读!
pappercut 于 2010-01-26 10:14:48发表:
[b] 15# Leonador
sudo vi grub.cfg
进去的时候:w!强制保存
Leonador 于 2010-01-25 20:41:33发表:
可是我在修改的过程中一直是Read Only
能说的仔细点吗
gsm1011 于 2010-01-25 10:54:31发表:
[i=s] 本帖最后由 gsm1011 于 2010-1-25 10:55 编辑 [/i]
很简单阿,把等待选择系统的时间弄得长一点就可以了。
比如:timeout=10
然后启动时按一个键就可以选择了。
pappercut 于 2010-01-25 08:29:18发表:
感谢alick....果然是那一段。。
asan2009 于 2010-01-24 15:43:43发表:
grub配置文件/etc/grub.conf里把hidden一行最前面加上#就可以了
alick 于 2010-01-24 13:10:28发表:
也许按住shift键就可以了?配置文件里有一段keystatus里关于shift的设置。
alick 于 2010-01-24 12:41:35发表:
9# pappercut
哦,改用grub2了,这是新的配置文件格式。我仔细看看
pappercut 于 2010-01-24 08:32:13发表:
8# alick
配置文件我能找到,但是看不出有什么问题在/boot/grub/grub.cfg下,和fedora的差别比较大。。而且也有等待时间。。没发现明显的屏蔽菜单语句。。
#
# 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 $prefix/grubenv ]; then
set have_grubenv=true
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
fi
insmod ext2
set root=(hd0,7)
search --no-floppy --fs-uuid --set 6148c119-8355-43e6-b25f-07e3920c54da
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
set locale_dir=/boot/grub/locale
set lang=zh
insmod gettext
set timeout=11
set timeout=10
### 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, with Linux 2.6.32-9-generic" {
set recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 05bdb7ea-3226-465f-a143-d4d8a1ef968f
linux //vmlinuz-2.6.32-9-generic root=UUID=6148c119-8355-43e6-b25f-07e3920c54da ro quiet splash
initrd //initrd.img-2.6.32-9-generic
}
menuentry "Ubuntu, with Linux 2.6.32-9-generic (recovery mode)" {
set recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 05bdb7ea-3226-465f-a143-d4d8a1ef968f
linux //vmlinuz-2.6.32-9-generic root=UUID=6148c119-8355-43e6-b25f-07e3920c54da ro single
initrd //initrd.img-2.6.32-9-generic
}
menuentry "Ubuntu, with Linux 2.6.32-7-generic" {
set recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 05bdb7ea-3226-465f-a143-d4d8a1ef968f
linux //vmlinuz-2.6.32-7-generic root=UUID=6148c119-8355-43e6-b25f-07e3920c54da ro quiet splash
initrd //initrd.img-2.6.32-7-generic
}
menuentry "Ubuntu, with Linux 2.6.32-7-generic (recovery mode)" {
set recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 05bdb7ea-3226-465f-a143-d4d8a1ef968f
linux //vmlinuz-2.6.32-7-generic root=UUID=6148c119-8355-43e6-b25f-07e3920c54da ro single
initrd //initrd.img-2.6.32-7-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 05bdb7ea-3226-465f-a143-d4d8a1ef968f
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 05bdb7ea-3226-465f-a143-d4d8a1ef968f
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###
不好意思转到baidu上再贴下来格式就没了。。。
alick 于 2010-01-23 19:37:20发表:
6# pappercut
ubuntu应该也是用grub引导的吧,但是配置文件可能不一样。LZ找找/boot/grub里面有没有配置文件,
比如像grub.conf或者menu.lst的文件
pappercut 于 2010-01-23 08:31:12发表:
(6)m:b装了以后还是不行。。可能是vbox的事儿?
pappercut 于 2010-01-23 08:19:25发表:
5# alick
那个是fedora的方法阿,而且我的ubuntu这边根本就没有进grub的迹象。。。就是根本没有读秒的时间,直接进来就是一行启动参数,然后直接进最新的内核了
还是要感谢楼上各位^^尤其是alick几乎回答了我50%在这个论坛的问题5:ty(
我去试试2L的方法
alick 于 2010-01-22 22:49:20发表:
好像是grub配置文件/etc/grub.conf里把hidden一行最前面加上#就可以了
su198902 于 2010-01-22 19:50:27发表:
[attach]29293[/attach]
su198902 于 2010-01-22 19:49:27发表:
file:///home/chen/Desktop/screenshot1.jpg
su198902 于 2010-01-22 19:49:00发表:
安装StartUp-Manager