NOTE: For those who don't know this, a dollar sign ($) indicates that you type the command into a Terminal window. You do not copy the dollar sign :-)
Prep Your Mac Hard Drive
Back your computer up.
No, really! Make sure you have a backup, and make sure to test that it works. This procedure has been tested multiple times, but there's still a chance something could go wrong and you could lose data. On macOS, Time Machine is a great option for backing your computer up.
Shrink your macOS partition to make room for elementary OS. At least 30 GB is a reasonable minimum.
If you plan on using elementary OS as your primary OS, you'll want to give it much more, of course. Once you decide what size you want to resize your macOS partition down to, you can resize it with this command: $ diskutil cs resizeStack / XXXg, where XXX is the desired number of GB your macOS partition will be resized down to.
For example, if your Mac has a 500 GB internal hard drive, you might decide to allocate 300 GB for macOS, and 200 GB for elementary OS. You'd then issue this command: $ diskutil cs resizeStack / 300g.
Shut off your Mac and plug in the USB flash drive you created with elementary OS on it.
Holding down the option key on your keyboard, press the power button to turn on your computer.
From the boot manager screen that appears, choose elementary OS.
After choosing to boot elementary OS, you'll be given a few options as to how to boot the installer. Choose Try Elementary OS.
Once elementary OS finishes booting up, open Terminal and run $ ubiquity -b. This will launch the graphical elementary OS installer. When the installer asks about partitioning, make sure you choose Something Else....
Note for advanced users: the -b flag tells the installer to install without installing the GRUB boot-loader. This guide makes use of EFI stub loading, which allows a capable boot manager (such as rEFInd, which we'll set up later) to launch the Linux kernel directly, without an intermediary boot-loader (e.g. GRUB).
You should see some free space at the end your hard drive partition list (/dev/sda), about the size you freed up when you shrunk your macOS partition. Choose this free space, and format it as Ext4 and set its mount point to /. Choose Apply, and finish installing elementary OS.
Install reFInd Boot Manager
Restart your computer and boot back into macOS. At this point, elementary OS is installed, but you can't boot into it yet, because you haven't installed a boot manager. That's the next step!
Download the rEFInd boot manager and unzip it. Drag the unzipped folder onto your desktop.
Turn off your Mac.
Boot into Recovery Mode by holding down ⌘ + R while turning on your Mac.
Once in Recovery Mode, open Disk Utility. Choose your macOS partition and click Mount in the toolbar to mount it.
Quit Disk Utility and open Terminal.
cd into the directory where you unzipped rEFInd, which will probably be something like /Volumes/Macintosh\ HD/Users/jane/Desktop/refind*, if your macOS username was jane.
Install rEFInd ($ ./refind-install)
Reboot your Mac.
You should now see the rEFInd menu, which options to boot elementary OS and macOS. Congrats! You're all set.
Sometimes Wi-Fi might not work out-of-the-box because the necessary driver isn't installed. In some cases, you'll be able to install them manually.
Somehow get a temporary internet connection, e.g. via your smartphone's USB or Bluetooth tethering function or a Thunderbolt to RJ45 adapter (Thunderbolt ethernet works well with 0.4.1 Loki)
Run $ sudo apt install bcmwl-kernel-source to install the driver and its dependencies.
It takes ~30 seconds for the rEFInd menu to show up.
This is a known compatibility issue with rEFInd and some Mac hardware models. If you experience this problem, try the following steps:
Mount your EFI System Partition (ESP), which is where rEFInd is installed. ($ sudo ./mountesp)
Rename the refind directory ($ mv /Volumes/ESP/EFI/refind /Volumes/ESP/EFI/BOOT)
Rename the refind EFI blob ($ mv /Volumes/ESP/EFI/BOOT/refind_x64.efi /Volumes/ESP/EFI/BOOT/bootx64.efi)
Reboot and see if your problem is fixed.
After booting installation USB screen remains black
If the screen remains black after booting from the installation USB, try the following steps:
When the boot menu with the elementary OS logo appears enter the boot menu
Change the boot parameters quiet splash to nomodeset and continue booting
请发表评论