所以我嘗試在我的macbook pro上安裝ubuntu 14.04(完全取代OSX)。我已經安裝了改裝,但似乎沒有消失。每次啟動時,電腦都找不到任何作業系統。
我嘗試使用引導修復和所有可能的選項,但它從未修復引導。
我有以下分區:
/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/