I installed GNU/Linux Kali on my Early-2015 MacBook Pro (Mojave) by following the instructions on the Kali official website for dual boot. Linux runs fine but it boots by default. When I went to boot into Macintosh HD from the boot menu, I noticed my new Linux OS was not showing, so I held off on changing macOS to default.
The steps I followed for the installation were:
- Resize 500 GB partition to 450 GB with
diskutil apfs resizeContainer
- Download contents of kali-linux-2020.4-live-amd64.iso and burn into USB drive with
dd
- Boot into boot menu (hold down option key during power-on)
- Boot from USB
- Follow installation instructions (Guided – use the largest continuous free space)
Any ideas what could be wrong?
Listed disks in case that helps:
~$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.3 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 450.1 GB disk0s2
3: Linux Filesystem 48.9 GB disk0s3
4: Linux Swap 1.0 GB disk0s4
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +450.1 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 268.7 GB disk1s1
2: APFS Volume Preboot 46.0 MB disk1s2
3: APFS Volume Recovery 510.4 MB disk1s3
4: APFS Volume VM 1.1 GB disk1s4
Best Answer
There are two methods which can be used when an installed Linux does not appear in the Mac Startup Manager. (The OP refers to the Mac Startup Manager as the "boot menu".)
In the case of Kali Linux, the steps to implement Method 1 are given below.
Boot to macOS.
Mount the EFI volume. Open a Terminal application window and enter the command given below.
Create folders, copy files and rename files. Enter the following commands in the Terminal application window.
Unmount the EFI volume. Enter the command given below.
The steps to implement Method 2 are given below.
Boot to macOS.
Use Safari to download rEFInd. Be default, the download should automatically unzip to the
~/Downloads/refind-bin-0.12.0
folder.Mount the EFI volume. Open a Terminal application window and enter the command given below.
Create folders, copy files and rename files. Enter the following commands in the Terminal application window.
Edit rEFInd configuration file. Enter the following command in the Terminal application window.
Add the following text to the end of the file. When finished press control+X key combination to save the modified buffer and exit the editor.
Change the label which will appear on the Mac Startup Manager display. Enter the command given below.
(Optional.) Install a Kali icon to appear on the Mac Startup Manager display. Use Safari to download Mac icns. Enter the following commands to install the icon.
Remove the
._*
files. Enter the command given below.Unmount the EFI volume. Enter the command given below.
I should point out that the Offensive Security macOS/Kali dual boot installation instructions replaced the Mac Startup Manager with the rEFInd Startup Manager. The installation procedure outlined by the OP seems to followed those of Offensive Security, but did not finish with the installation of rEFInd. The OP might consider continuing the installation by starting with the instructions in the section titled "Installing rEFInd using Kali Linux".