ubuntu 10.10显示grub菜单[转]
2011-05-11 14:14
204 查看
安装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
}
3.sudo update-grub
重启试试。
最后一步是必须的。
原文来自:http://blogold.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
}
3.sudo update-grub
重启试试。
最后一步是必须的。
原文来自:http://blogold.chinaunix.net/u2/61800/showart_2371499.html
最后一步是我实践得来的,必须得要加上去才能有效
相关文章推荐
- ubuntu 10.10显示grub菜单
- ubuntu 10.10显示grub菜单
- ubuntu 10.04显示grub菜单
- ubuntu16.10 设置grub菜单的默认等待时间,开机时显示详细的引导信息
- 嵌入式 显示grub菜单(ubuntu 12.04)
- 显示grub菜单(ubuntu 12.04) - Ubuntu不显示grub
- 单系统Ubuntu显示Grub菜单
- ubuntu:显示grub菜单(ubuntu 12.04)
- ubuntu10.04编译内核不显示grub菜单解决
- Ubuntu liveCD修复Grub菜单不显示
- win7 ubuntu10.10 重装win7 丢失grub菜单问题解决方法
- ubuntu10.04显示grub菜单
- Ubuntu14.04开机显示grub选择菜单
- grub2配置显示系统选择菜单(ubuntu 14.04)
- grub菜单加密 、 Tab如何补齐或显示出所有选项
- Ubuntu无法启动,显示grub
- 替换Ubuntu的grub启动菜单为SUSE式
- win8和ubuntu双系统修改Grub菜单顺序
- ubuntu13.04升级到ubuntu13.10 ZendStudio 或者ecplise 出现 菜单不显示的解决方法
- 修改ubuntu grub启动菜单的顺序