以下是我的系统上带有外部 (/dev/sdb) 和内部 (/dev/sda) SSD 的 update-grub 的输出。有人知道为什么我看到每个启动操作系统的两个副本吗?或者如何重新开始?
root@hp:~# update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.13.0-22-generic
Found initrd image: /boot/initrd.img-5.13.0-22-generic
Found linux image: /boot/vmlinuz-5.13.0-19-generic
Found initrd image: /boot/initrd.img-5.13.0-19-generic
Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
Found Manjaro Linux (21.2.0) on /dev/sda6
Found Manjaro Linux (21.2.0) on /dev/sdb2
Found Ubuntu MATE 21.10 (21.10) on /dev/sdb3
Found Manjaro Linux (21.2.0) on /dev/sdb5
Found UbuntuImp 21.10 (21.10) on /dev/sdb6
=?why 2nd pass?=> Adding boot menu entry for UEFI Firmware Settings
Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
Found Manjaro Linux (21.2.0) on /dev/sda6
Found Manjaro Linux (21.2.0) on /dev/sdb2
Found Ubuntu MATE 21.10 (21.10) on /dev/sdb3
Found Manjaro Linux (21.2.0) on /dev/sdb5
Found UbuntuImp 21.10 (21.10) on /dev/sdb6
Adding boot menu entry for UEFI Firmware Settings
done
答案1
对我来说,解决方案是将 /etc/grub.d 中的所有内容替换为来自另一个类似发行版的更多普通项目。我一定是在那里改变了一些东西,导致 os-prober 触发了两次。