I wrote it when an acquaintance asked me to teach me how to dual boot on a mac. I wrote an article because it was a big deal.
Download rEFInd and place it in any directory.
~ / Downloads / refind-bin-0.11.4 /.
To install rEFInd, first start your mac in recovery mode (hold down cmd + R)
After booting into recovery mode, open a terminal and run
--Tips: There are restrictions on what you can do with sudo privileges, and this is a command that removes those restrictions.
When run, it will display
Succesfully disabled System Intergrity Protection..
Then start your mac and change to the directory where you downloaded rEFInd.
[email protected] ~/Downloads/refind-bin-0.11.4 $ ls -al ~/Downloads/refind-bin-0.11.4 total 472 [email protected] 17 tikuwa staff 544 11 12 2018 ./ drwx------+ 53 tikuwa staff 1696 2 21 12:13 ../ [email protected] 1 tikuwa staff 35147 11 29 2015 COPYING.txt [email protected] 1 tikuwa staff 4891 8 7 2017 CREDITS.txt [email protected] 1 tikuwa staff 2204 11 29 2015 LICENSE.txt [email protected] 1 tikuwa staff 99811 11 12 2018 NEWS.txt [email protected] 1 tikuwa staff 4010 5 25 2017 README.txt [email protected] 5 tikuwa staff 160 11 29 2015 banners/ [email protected] 5 tikuwa staff 160 10 22 2018 docs/ [email protected] 18 tikuwa staff 576 7 22 2018 fonts/ [email protected] 22 tikuwa staff 704 1 20 2016 keys/ [email protected] 1 tikuwa staff 2436 7 22 2018 mkrlconf* [email protected] 1 tikuwa staff 2564 8 24 2018 mountesp* [email protected] 1 tikuwa staff 10362 10 23 2018 mvrEFInd* [email protected] 13 tikuwa staff 416 11 12 2018 rEFInd/ [email protected] 1 tikuwa staff 56558 11 12 2018 rEFInd-install* [email protected] 1 tikuwa staff 7173 4 23 2016 rEFInd-mkdefault*
sudo ./rEFInd-install in that directory and reboot. If rEFInd starts, it's successful.
[email protected] ~/Downloads/refind-bin-0.11.4 $ sudo ./refind-install [ruby-2.6.3p62] Password: ShimSource is none Installing rEFInd on OS X.... Installing rEFInd to the partition mounted at /Volumes/ESP Found rEFInd installation in /Volumes/ESP/EFI/rEFInd; upgrading it. Found suspected Linux partition(s); installing ext4fs driver. 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.
Please prepare a USB flash memory. It depends on the OS you install, but ideally it should be at least 8GB. This time, install Ubuntu.
Download the Ubuntu DVD image. After the download is complete, place it in a convenient location.
~ / Downloads /.
Then download balenaetcher.
You can install it with
brew cask install balenaetcher.
Start balenaetcher and select an image with
Select image. Then select the installation media with
Select target. Finally, select
Flash! To start the installation.
To install Linux, you need two partitions, one for the
/ and one for the Swap area.
The partition used for
/ works if it is 10GB or more, but it is better to set it to 100GB or more because it will be installed.
Swap space should be about twice as much as RAM.
With the media created in step 3 stuck, restart your mac and start rEFInd. When rEFInd starts, you can select the installation media. Then follow the instructions on the screen to install.
After installing Linux, the boot loader used will be changed to GRUB for Linux. So run
Once that's done, reboot into recovery mode and then run
csrutil enable to boot your mac.
--Tips: This command can be used without any problem, but it is better to execute it for security reasons.
You can skip this step without any problems, so skip it if you don't mind.
First, go to
/ Volume and run
sudo mkdir efi.
sudo mount -t msdos / dev / disk0s1 ./efi.
Resource busyis displayed, execute
diskutil unmount / dev / disk0s1, and then execute
sudo mount -t msdos / dev / disk0s1 ./efiagain.
Once mounted, go to ʻEFI
inside ʻefi and remove ʻUBUNTU`.
Then reboot and make sure it is deleted.
Search for "rEFInd themes" and download your favorite theme. This time, we will use "rEFInd minimal".
/ Volumes / efi / EFI / refind and create a directory called
themes. Put the downloaded theme in it and name it
/ Volumes / efi / EFI / refind with a text editor and add ʻinclude themes / rEFInd-minimal / theme.conf`.
When you're done, reboot and make sure it's reflected.