如何设置引导加载程序,以便在 Windows 7/Ubuntu 11.04 的双引导中,Windows 作为标准启动而不是 Ubuntu?
Grub2 - 社区 Ubuntu 文档说明如下:
如果 /etc/default/grub 中设置了 DEFAULT=saved,则可以通过运行 sudo grub-set-default 来保存操作系统。如果还在 /etc/default/grub 中设置了 GRUB_SAVEDEFAULT=true,也可以保存它。在这种情况下,在从 GRUB 2 菜单手动选择新操作系统或执行 grub-set-default 命令之前,默认操作系统将保持不变。
我将行DEFAULT=saved
ANDGRUB_SAVEDEFAULT=true
放入/etc/default/grub
,然后运行sudo grub-set-default
. 这是输出:
$ sudo grub-set-default
entry not specified.
Usage: grub-set-default [OPTION] entry
Set the default boot entry for GRUB.
-h, --help print this message and exit
-v, --version print the version information and exit
--boot-directory=DIR expect GRUB images under the directory DIR/grub
instead of the /boot/grub directory
ENTRY is a …
Run Code Online (Sandbox Code Playgroud) 所以基本上我有一个相当泛滥的 Grub 引导加载程序,带有较旧的 linux 版本、3 个操作系统和 memtests。我想要的是只离开操作系统。我需要知道如何手动完成,并且我需要有人告诉我在发布新内核时我应该注意什么。提前致谢。