Install OS X from SD Card
Installing macOS on an external SD card can be a lifesaver when you want to run Apple's operating system on non-compatible devices or create a portable Mac. While Apple doesn't officially support this practice, it's possible with a little technical know-how. Let's dive into the process, step-by-step.
Before we begin, ensure you're comfortable with navigating your computer's file system and understand the risks involved. Back up your data and understand that your SD card's lifespan may be impacted due to excessive reading and writing.
Preparation
First, gather your tools. You'll need an SD card (at least 8GB, though 16GB or 32GB is recommended), a USB flash drive (at least 16GB), and a compatible Mac or Mac clone. Additionally, download and install a partitioning tool like CleanLINE or GPT fdisk.
Next, select the macOS version you want to install. The latest version doesn't always play nice with this method, so consider using an older version compatible with your hardware.
Preparing the SD Card
Format your SD card using Disk Utility. Connect it to your Mac, open Disk Utility, select the SD card in the sidebar, and click "Erase". Choose a name, format as "Mac OS Extended (Journaled)", and scheme as "GUID Partition Map". Click "Erase" to confirm.
Now, open Terminal and run this command to create a Recovery HD partition: `sudo asr restore --source /dev/disk0s2 --target /dev/diskXs2 --noprompt` (replace 'disk0s2' with yourSD card's identifier).
Creating the Installer
Open the App Store and download the macOS installer. Once downloaded, right-click the installer in your Applications folder and select "Show Package Contents". Navigate to Contents/SharedSupport/ and copy the InstallESD.dmg file to your USB flash drive.
Now, use the partitioning tool to convert the InstallESD.dmg file from read-only to write-enabled. This allows us to modify the installer.
Installing macOS
Connect both the SD card and USB flash drive to your Mac or Mac clone. Open Disk Utility, select the USB drive containing the modified installer, and convert it to a disk image with no partition map. Then, convert the SD card to a single, FAT partition.
Finally, open Terminal and run the command `sudo bless --mount /Volumes/your Installer --folder /Volumes/your Installer/usr/standalone/i386/boot.efi --verbose` to create a bootloader on your SD card.
Running macOS
With both your SD card and Mac/clone booted in Recovery Mode (hold down Command (⌘) + R during startup), enter `bless --mount /Volumes/your Installer --folder /Volumes/your Installer/usr/standalone/i386/boot.efi --verbose` in Terminal. Then, reboot and hold down Option (⌥) during startup to boot from your SD card.
From here, you can proceed with the usual macOS installation process. Enjoy your portable Mac!
Remember, this process voids Apple's warranty and is considered by Apple to be against their End User License Agreement (EULA). Use this knowledge responsibly and at your own risk. If you face any issues, consult Apple's official support channels.