I have a dual boot - Ubuntu 16.04 in my Macbook Pro. I updated my macOS from Yosemite to Big Sur and the rEFInd boot menu is gone. So, I am not able to login to my Ubuntu, where I have all my files. Many blogs ask me to reinstall rEFInd, which requires booting to macOS recovery mode to disable SIP. But, I do not have the firmware password to do so. Is it possible to restore the boot menu any other way? Or, is there any way to access my Ubuntu files? Please help!
62 Answers
One possible solution would be to reinstall Yosemite. You can then bless rEFInd. There are different ways to accomplish this. Below are the steps to one such way. Basically, you will be making a image of a Yosemite install in a virtual machine. Next, you will restore Yosemite to a new partition on your internal drive.
Make sure File Sharing is enabled for Big Sur. See the
Sharingpane of theSystem Preferencesapplication.Download Yosemite from the Apple website How to get old versions of macOS. The file
InstallMacOSX.dmgshould download yourDownloadsfolder.Open the
InstallMacOSX.dmgfile and install theInstall OS X Yosemiteapplication to theApplicationsfolder.Download VMware Fusion Player. This is a free product.
Install VMware Fusion Player
Install Yosemite in a virtual machine. Open the
VMware Fusionapplication and create a new virtual machine. Drag and drop theInstall OS X Yosemiteapplication from theApplicationsfolder to theVMware Fusionapplication window shown below.Complete the installation of Yosemite.
Once booted to Yosemite, open the
Disk Utilityapplication and create a second partition. The new partition should to be at least 8 GB in size. Below is what I chose.When finished, quit the
Disk Utilityapplication.Open a
Terminalapplication window and enter the command shown below.diskutil rename disk0s2 MyYosemite sudo nvram "recovery-boot-mode=unused"Close all
Finderapplication windows, quit all applications and restart the virtual machine. The machine will boot to OS X Recovery.Open the
Disk Utilityapplication and highlight theMyYosemitevolume. SelectNew Imageand enter the following in the popup window, then select theSavebutton.When finished, highlight the
MyYosemite.dmgfile, then selectImages>Scan Image for Restorefrom the menu bar. When finish, restart the virtual machine. The machine will boot to Yosemite.Connect to the Big Sur host and transfer the
MyYosemite.dmgfile from theMyBackupvolume to yourDownloadsfolder on the host.Close all
Finderapplication windows, quit all applications and shutdown the virtual machine.If necessary, delete the virtual machine to make more space available.
Quit the
VMware Fusionapplication.Download the latest rEFInd. Currently this is version 0.12.0. The
refind-bin-0.12.0folder should be created in yourDownloadsfolder.Open a
Terminalapplication window and enter the command below. Basically, the APFS container is being shrunk by 25 GB to make a new partition for the Yosemite volume.diskutil apfs resizecontainer disk0s2 140.8G jhfs+ NewVolume 0Next, enter the commands below to install the Yosemite volume in the new partition.
cd ~/Downloads diskutil unmount disk0s3 sudo asr restore --source MyYosemite.dmg --target /dev/disk0s3 --erase diskutil mount disk0s3Finally, enter the commands below to transfer the
rEFInddownload to the Yosemite volume.xattr -rd com.apple.quarantine refind-bin-0.12.0 mv refind-bin-0.12.0 /Volumes/MyYosemite/Users/SharedWhen finished close all
Finderapplication windows and quit all applications.Select to restart to
MyYosemitefrom theStartup Diskpane of theSystem Preferencesapplication.Once booted to Yosemite, either bless or reinstall
rEFInd. If reinstalling, you might want to first backup therefind.conffile, although therEFIndinstaller will probably rename the existingrefind.conffile torefind.conf-sample.I believe reinstalling is the safer alternative.
If
rEFIndwas installed using the default options, then the commands below will blessrEFInd.sudo diskutil mount disk0s1 sudo bless --mount /Volumes/EFI --setBoot --file /Volumes/EFI/EFI/refind/refind_x64.efi --shortform diskutil unmount disk0s1The command below will reinstall
rEFIndusing the default options.sudo /Users/Shared/refind-bin-0.12.0
If you have any questions, post a comment.
I'm not sure if the lack of firmware password will stop you booting from a Ubuntu USB stick. If you can boot with a Ubuntu disk, you should be able to get around the Mac SIP securite by using the efibootmgr command to list out the efi boot option and then set the refind as the default option.