ubuntu 10.10显示grub菜单
2014-01-26 18:21
323 查看
安装ubuntu10.10后,如果机器上只有一个系统,默认grub菜单是不会显示的,如果想要显示,按如下步骤操作:
1.把/etc/default/grub文件中的GRUB_HIDDEN_TIMEOUT=0的0改为大于0的数字,比如5;
2.把/etc/grub.d/30_os-prober文件中的所有set timeout=0的0改为10,如下:
adjust_timeout () {
if [ "x${found_other_os}" = "x" ] ; then
if [ "x${GRUB_HIDDEN_TIMEOUT}" != "x" ] ; then
if [ "x${GRUB_HIDDEN_TIMEOUT_QUIET}" = "xtrue" ] ; then
verbose=
else
verbose=" --verbose"
fi
if [ "x${GRUB_HIDDEN_TIMEOUT}" = "x0" ] ; then
cat <<EOF
if [ /${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=10
fi
else
if sleep$verbose --interruptible 3 ; then
set timeout=10
fi
fi
fi
EOF
else
cat << EOF
if [ /${timeout} != -1 ]; then
if sleep$verbose --interruptible ${GRUB_HIDDEN_TIMEOUT} ; then
set timeout=10
fi
fi
EOF
fi
fi
fi
}
来自:http://blog.chinaunix.net/u2/61800/showart_2371499.html
1.把/etc/default/grub文件中的GRUB_HIDDEN_TIMEOUT=0的0改为大于0的数字,比如5;
2.把/etc/grub.d/30_os-prober文件中的所有set timeout=0的0改为10,如下:
adjust_timeout () {
if [ "x${found_other_os}" = "x" ] ; then
if [ "x${GRUB_HIDDEN_TIMEOUT}" != "x" ] ; then
if [ "x${GRUB_HIDDEN_TIMEOUT_QUIET}" = "xtrue" ] ; then
verbose=
else
verbose=" --verbose"
fi
if [ "x${GRUB_HIDDEN_TIMEOUT}" = "x0" ] ; then
cat <<EOF
if [ /${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=10
fi
else
if sleep$verbose --interruptible 3 ; then
set timeout=10
fi
fi
fi
EOF
else
cat << EOF
if [ /${timeout} != -1 ]; then
if sleep$verbose --interruptible ${GRUB_HIDDEN_TIMEOUT} ; then
set timeout=10
fi
fi
EOF
fi
fi
fi
}
来自:http://blog.chinaunix.net/u2/61800/showart_2371499.html
相关文章推荐
- ubuntu 10.10显示grub菜单
- ubuntu 10.10显示grub菜单[转]
- ubuntu 10.04显示grub菜单
- Ubuntu14.04开机显示grub选择菜单
- 嵌入式 显示grub菜单(ubuntu 12.04)
- 单系统Ubuntu显示Grub菜单
- 显示grub菜单(ubuntu 12.04) - Ubuntu不显示grub
- ubuntu10.04编译内核不显示grub菜单解决
- ubuntu:显示grub菜单(ubuntu 12.04)
- ubuntu16.10 设置grub菜单的默认等待时间,开机时显示详细的引导信息
- win7 ubuntu10.10 重装win7 丢失grub菜单问题解决方法
- Ubuntu liveCD修复Grub菜单不显示
- ubuntu10.04显示grub菜单
- win7和ubuntu双系统,先进入windows启动项选择菜单,然后进入ubuntu的grub的引导方法
- ubuntu的grub引导菜单一闪而过,无法操作
- Ubuntu 16.04下IntelliJ IDEA菜单显示乱码的问题解决
- 替换Ubuntu的grub启动菜单为SUSE式
- Ubuntu下Eclipse菜单不显示图标的解决
- Ubuntu grub系统引导菜单错误
- ubuntu10.10 和win7双系统 ,进不了系统 ,grub失效