我最近在我的 MacBook Pro 9,2 上安装了 ubuntu 14.04,我将它与 Mac OS X 并排安装,并使用 rEFInd 启动到 ubuntu,然后我决定使用 Mac OS X 分区作为 ubuntu 中的主文件夹,所以我格式化了它并将我的主文件夹移动到新的格式化分区中,重新启动计算机后发现 rEFInd 加载器已使用分区格式化,我可以通过在闪存驱动器上安装 rEFInd 并从它启动来再次启动到 ubuntu,我曾尝试使用 install.sh 文件通过 ubuntu 再次安装 rEFInd,但也没有成功,它给了我以下消息:
Installing rEFInd on Linux....
ESP was found at /boot/efi using vfat
Found rEFInd installation in /boot/efi/EFI/refind; upgrading it.
Installing driver for ext4 (ext4_x64.efi)
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.
An existing rEFInd boot entry exists, but isn't set as the default boot
manager. The boot order is being adjusted to make rEFInd the default boot
manager. If this is NOT what you want, you should use efibootmgr to
manually adjust your EFI's boot order.
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 //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.
现在我正常启动 Mac 时看到的只有恢复系统,按 alt 时会出现 Windows 选项,但无法成功启动。请帮忙!抱歉我的英语不好
- 注意:我也尝试将文件名改为 bootx64.efi,但也没有用
答案1
好的,所以在我看来,我以错误的方式遵循了输出中的校正程序,这就是我所做的事情并且对我有用:
首先使用 install.sh 文件安装 rEFInd
其次将 refind 文件夹的所有内容复制到新创建的 boot 文件夹中,以下命令将执行此操作:
sudo cp -a /boot/efi/EFI/refind/. /boot/efi/EFI/boot/
第三,将 refind_x64.efi 二进制文件重命名为默认名称,如输出中建议的那样:
sudo cp /boot/efi/EFI/boot/refind_x64.efi /boot/efi/EFI/boot/bootx64.efi
最后一件事是将重新查找启动选项设为启动盘,这可以通过在计算机启动时按 alt 来显示可用的不同选项,然后在选择重新查找光盘时按 ctrl 来完成。