我有一个双启动 ubuntu 和 Windows 8。Ubuntu 是默认启动和倒计时的操作系统,如果我之前没有更改,请选择默认启动的操作系统。当我在 ubuntu 和 windows 8 之间订购时自动隐藏倒计时,然后,我必须按 Enter 键才能从任何突出显示的操作系统启动而没有时间限制。我的问题是:如何始终禁用倒计时并选择哪个操作系统启动时用完/向下箭头键自己,直到我不选择也不按回车键,冻结在 grub 菜单上。任何想法都是我的荣幸
注意:/etc/default/grub
我的 ubuntu 中没有文件。
编辑:我重新安装了 grub ( sudo apt-get --reinstall install grub2 grub-pc
),现在我有了一个/etc/default/grub
文件,但倒计时并没有因为这些变化而停止:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT="-1"
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
Run Code Online (Sandbox Code Playgroud)
我删除双引号GRUB_TIMEOUT="-1"
围绕-1
它会自动添加到它并保存,然后运行sudo update-grub
我得到以下警告:
Warning: Setting GRUB_TIMEOUT to a non-zero value when
GRUB_HIDDEN_TIMEOUT is set is no longer supporte
Run Code Online (Sandbox Code Playgroud)
Nul*_*ter 10
获取 grub 文件 /etc/default/grub
sudo apt-get install grub2 grub-pc
然后运行
sudo update-grub
现在/etc/default/grub
使用您最喜欢的编辑器打开。
(您可能需要 sudo 权限!)
并将此字段设置-1
为无限期等待!
GRUB_TIMEOUT=-1
您可以尝试将以下两行注释掉
# GRUB_HIDDEN_TIMEOUT=0
# GRUB_HIDDEN_TIMEOUT_QUIET=true
Run Code Online (Sandbox Code Playgroud)
现在再次运行
sudo update-grub
你就完成了!希望这可以帮助!
归档时间: |
|
查看次数: |
23215 次 |
最近记录: |