我在我的 macbook pro 2012 上安装了 ubuntu,双启动,使用 refind。
Ubuntu 覆盖了 refind,并且 efibootmgr 给了我奇怪的输入,包括旧的东西(比如 kali,但我已经删除并擦除了分区)
Timeout: 5 seconds
BootOrder: 0000,0002,0004,0003,0080,0001
Boot0000* ubuntu
Boot0001* 瑰污Ȩ
Boot0002* 瑰污Ȩ
Boot0003* kali
Boot0004* Ð瑰污Ȩ
Boot0080* Mac OS X
Boot0081* Mac OS X
BootFFFF*
我该如何清理它?我只想要:refind(安装在 mac 上),然后是 macos 和 ubuntu linux。
而已
答案1
我刚刚遇到了完全相同的问题。对我有用的方法是删除中文字符启动项并手动重新添加 refind 作为启动项。
以下是我使用的命令。
efibootmgr -v
#at this point, check the numbers of the boot entries.
sudo efibootmgr -b 0001 -B
sudo efibootmgr -b 0002 -B
sudo efibootmgr -b 0004 -B
#remove all of the Chinese character boot options. For you the boot numbers appear to be 0001, 0002, and 0004.
sudo nautilus /boot/efi
#this helped me determine the file path for refind on my system. In my case it was /boot/efi/EFI/refind/refind_x64.efi
df -h
#view all of your system partitions. You need to determine which partition on your system corresponds to /boot/efi
sudo efibootmgr -c -d /dev/sda -p 1 -L refind -l /EFI/refind/refind_x64.efi
#you can type "man efibootmgr" for more information. You need to determine which partition on your system corresponds to /boot/efi and put the number of that partition after the -p option.
efibootmgr -v
#at this point, check the numbers of the boot entries. In my case refind was 0000 and ubuntu was 0001.
sudo efibootmgr -o 0000,0001
有关详细信息,请参阅:For more information, see: https://www.linuxbabe.com/command-line/how-to-use-linux-efibootmgr-examples