所以我尝试在我的 MacBook Pro 上安装 ubuntu 14.04(完全替代 OSX)。我安装了 refit,但它似乎消失了。每次我启动时,PC 都找不到任何操作系统。
我尝试使用所有可能的选项进行启动修复,但仍然无法修复启动问题。
我有以下分区:
/dev/sda1 : EFI boot
/dev/sda2 : /
/dev/sda3 : swap
我尝试使用该--root
选项安装 refind,但是没有用,下面是输出:
root@ubuntu:/usr/share/refind# mkdir /media/boot
root@ubuntu:/usr/share/refind# mount /dev/sda1 /media/boot/
root@ubuntu:/usr/share/refind# ./install.sh --root /media/boot/
Installing rEFInd on Linux....
ESP was found at /media/boot using vfat
Found rEFInd installation in /media/boot/EFI/refind; upgrading it.
Copied rEFInd binary files
Notice: Backed up existing icons directory as icons-backup.
Existing refind.conf file found; copying sample file as refind.conf-sample
to avoid overwriting your customizations.
Fatal: Couldn't open either sysfs or procfs directories for accessing EFI variables.
Try 'modprobe efivars' as root.
Installing it!
ALERT: There were problems running the efibootmgr program! You may need to
rename the refind_x64.efi binary to the default name (EFI/boot/bootx64.efi
on x86-64 systems or EFI/boot/bootia32.efi on x86 systems) to have it run!
Existing /media/boot//boot/refind_linux.conf found; not overwriting.
ALERT:
Installation has completed, but problems were detected. Review the output for
error messages and take corrective measures as necessary. You may need to
re-run this script or install manually before rEFInd will work.
root@ubuntu:/usr/share/refind#
跑步modprobe efivars
并没有改变任何事情。
所以现在我有点迷茫:从 liveCD 发布此信息,不太明白为什么 MBP 没有正确拾取 EFI 启动。
答案1
已经修好了!
在阅读更多错误之后,我看到了这一点:
ALERT: There were problems running the efibootmgr program! You may need to
rename the refind_x64.efi binary to the default name (EFI/boot/bootx64.efi
on x86-64 systems or EFI/boot/bootia32.efi on x86 systems) to have it run!
所以我检查了该/EFI/
文件夹,但没有发现boot
其中的文件夹。
# mkdir /media/boot/EFI/boot
# cp /media/boot/EFI/refind/refind_x64.efi /media/boot/EFI/boot/bootx64.efi
这有效!refind 有点坏了(没有图标),但我可以正常启动。
要恢复图标并使重新查找正常工作:
# cp -R /media/boot/EFI/refind/* /media/boot/EFI/boot/