MacBook Pro に Linux をインストール - ブートが壊れる

MacBook Pro に Linux をインストール - ブートが壊れる

そこで、MacBook Pro に Ubuntu 14.04 をインストールしようとしました (OSX を完全に置き換えます)。Refit をインストールしましたが、消えてしまったようです。また、起動するたびに、PC は OS を見つけることができません。

可能なすべてのオプションを使用してブート修復を使用しようとしましたが、ブートは修復されませんでした。

次のパーティションがあります:

/dev/sda1 : EFI boot
/dev/sda2 : /
/dev/sda3 : swap

オプションを使用して refind をインストールしようとしました--rootが、機能しませんでした。出力は次のとおりです。

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も何も変わりませんでした。

それで、今私はちょっと困惑しています。ライブ CD からこれを投稿していますが、なぜ 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/

関連情報