每次我安装一个新的 Linux 内核时,它都会留在 grub_config 中,每次都会使引导菜单变长。
我知道我可以手动搜索已安装的软件包并删除它们。
Ubuntu 是否提供了更简单的方法来清理它们或防止它们显示在引导列表中?
我安装了 Windows 7,它吃了 Ubuntu 的启动文件。启动计算机时,它现在直接进入 Windows,而没有给我启动 Ubuntu 的选项。
我怎样才能找回 Ubuntu?
我在共享机器上安装了 Windows 7 和 Ubuntu。因为很多非开发人员都使用 Windows,所以我想更改引导顺序,让他们更容易使用。
目前,引导顺序如下所示:
/dev/sda6如何更改默认顺序以使 Windows 7 位于列表顶部?
/dev/sda6我的系统不是双启动的,我在“金属上”运行标准的 Ubuntu 桌面系统(我认为在 VM 中运行它是一样的)。
c启动时按下不会导致 GRUB 菜单出现(我相信它适用于双启动系统)。
如何让 GRUB 菜单在单引导系统上显示?
如何设置引导加载程序,以便在 Windows 7/Ubuntu 11.04 的双引导中,Windows 作为标准启动而不是 Ubuntu?
在 Ubuntu 12.04(或更高版本)中,如何设置 GRUB 时间和默认操作系统(我在启动时看到的),因为我是双启动 Windows(7/8)和 Ubuntu(12.04 或更高版本)?
我预装了 Windows 8,然后我用 Ubuntu 安装了 GRUB。Ubuntu 不是我的菜,所以现在我想将它与 GRUB 一起删除。据我所知,使用 UEFI,GRUB 不会覆盖 EFI 分区中的 Windows 引导加载程序,而是存储在其他地方。我将如何删除 GRUB 并让我的 PC 使用 Windows 引导加载程序?需要注意的是,我在安装 Ubuntu 时创建了一个单独的 /boot 分区。
跑步sudo apt-get -f install说The link /vmlinuz.old is a damaged link和:
you may need to re-run your boot loader[grub]
Run Code Online (Sandbox Code Playgroud)
这是完整的输出:
user@chrubuntu:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-3.13.0-32 linux-headers-3.13.0-32-generic
linux-image-3.13.0-32-generic linux-image-extra-3.13.0-32-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
user@chrubuntu:~$ sudo apt-get autoremove
Reading package lists... Done …Run Code Online (Sandbox Code Playgroud) Grub2 - 社区 Ubuntu 文档说明如下:
如果 /etc/default/grub 中设置了 DEFAULT=saved,则可以通过运行 sudo grub-set-default 来保存操作系统。如果还在 /etc/default/grub 中设置了 GRUB_SAVEDEFAULT=true,也可以保存它。在这种情况下,在从 GRUB 2 菜单手动选择新操作系统或执行 grub-set-default 命令之前,默认操作系统将保持不变。
我将行DEFAULT=savedANDGRUB_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) grub2 ×10
boot ×5
dual-boot ×4
kernel ×3
bootloader ×2
windows ×2
apt ×1
boot-repair ×1
cleanup ×1
menu ×1