在第二个硬盘驱动器上安装 Kubuntu 后,它更改了我的主硬盘驱动器 GRUB 的引导顺序,此后我无法将其更改回来。
对 grub 配置文件 ( /etc/default/grub
) 进行的任何更改update-grub
均无效。
正确更改update-grub
文件/boot/grub/grub.cfg
,但不会修改/boot/efi/
目录中的任何文件,而这应该发生,因为我的 GRUB 的安装点是boot/efi
.
我以为这是由于write
权限,但我检查了,对这些文件root
有权限。write
命令的输出sudo update-grub
:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-33-generic
Found initrd image: /boot/initrd.img-4.15.0-33-generic
Found linux image: /boot/vmlinuz-4.15.0-32-generic
Found initrd image: /boot/initrd.img-4.15.0-32-generic
Found Ubuntu 18.04.1 LTS (18.04) on /dev/sdb2
Adding boot menu entry for EFI firmware configuration
done
Run Code Online (Sandbox Code Playgroud)
文件内容/etc/default/grub
:
GRUB_SAVEDEFAULT=true
GRUB_DEFAULT=saved
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release …
Run Code Online (Sandbox Code Playgroud)