Installing only Linux on a mac and in case, go back to macOS
I have this mid 2011 iMac 21.5″ Core i5 on which I would like to install Linux (Debian) as the only OS, so I’d like to throw away the entire macOS installation. The web is full of tutorials for doing this, so, I think, this will be an «easy» step. My problem is: what if in future I want to go back on macOS (e.g for selling the computer)? I wonder if «OS X Recovery» (CMD + R) will work after the full Linux installation because I’ll no longer be able to download macOS from Mac App Store and I have no installation CD. The best solution I think could be: keep the recovery partition and install Linux on the rest of the disk, but can this be done? How?
I know nothing about macos(or apple in general) but don’t they use keys for there software (like windows?)
Because I thought it would be easier erase all, install only Linux (as if it was a «normal» pc) and not waste any more space. Anyway, I don’t like the idea of having an unused operating system on my computer.
3 Answers 3
Might want to use backup software for your personal files first.
- Buy a flash drive, 8 GB or larger, for this purpose.
- Download macOS Sierra from the App Store.
- Plug in the flash drive and rename it to «SierraInstallation» for the purpose of matching the command below in step five.
- Open Terminal or iTerm2 .
- Execute, all on one line: sudo «/Applications/Install macOS Sierra.app/Contents/Resources/createinstallmedia —volume /Volumes/SierraInstallation —applicationpath /Applications/Install macOS Sierra.app —nointeraction»
- When the command has been completed, eject the flash drive and keep it to reinstall later.
- Proceed to the Linux installation, no need to keep any partitions.
- Plug in the flash drive to the Mac.
- Reboot the Mac and hold the Option key.
- Choose «Install macOS Sierra» from the boot options.
You might also want to keep a ZIP file of /Applications/Install macOS Sierra.app/ on another storage device, backup drive or what have you, in case you lose the flash drive or some other problem.
Basically this process will create a macOS bootable USB right? And step 5 can only be done from macOS?
In order to save money I could use a pen drive that I already have, with «dd» I could create an img of the bootable usb and save it on my backup hard drive and then restore it if in future I will need, could work?
All right, thank you very much, I think I’m going to make this bootable macOS usb in order to keep a kind of «installation CD».
@Wildcard Why not? As far as I know, dd performs a block-by-block copy so, it doesn’t care about which OS formatted that drive. Am I wrong?
@MarcoLucidi, only if both drives are completely inactive while you make the copy. Don’t try using dd to copy from the drive you’ve booted from. See here for more details.
I was trying to install Debian on a mac mini this weekend (and failed because of lack of wifi firmware), but was able to successfully restore back to macOS.
Even though the Debian installer had partitioned the entire drive, when I restarted and held down the Option key, the recovery partition was still available, and I was able to boot to it and restore from a Time Machine backup I had previously made.
This would be great. May I ask you if you had issues with the boot of the installer and later the actual OS? Did you use rEFInd or something like that?
Had no issues with the Debian installer (booted from USB after holding down Opt key), and install worked fine except that I had no internet connection when done, but Debian was running. Apparently I need some non-free firmware to make wifi work on the mac mini, and that wasn’t on the installer I had. Will try again soon with another version of the debian installer that includes the needed firmware.
Great to hear that! Well, if you have another pc, I think you could easily download the missing firmware and install it from a pen drive. Fortunately I will be able to connect the computer through an ethernet cable during the installation, hoping it will work «out of the box».
From my viewpoint as a professional system administrator, the only proper solution is to make a full bootable backup clone of your entire hard drive before you install Linux.
As far as I know, there is only one piece of software available that will dependably make a bootable backup of a macOS computer. That is CarbonCopyCloner.
It’s paid software (which I find well worth the price), but it has a full-featured time-limited trial. So for a one-time full backup, you won’t need to pay anything.
CarbonCopyCloner also creates a recovery partition on your backup drive, if you ask it to. (And it will probably prompt you to do so even if you don’t ask it to, but you can decline if you don’t want a recovery partition. I don’t know why you would decline.)
As long as you can still option-boot to choose a boot partition during startup after your Linux install, you should still be able to boot from the external drive, into macOS. Then you can use CarbonCopyCloner again (either within the trial period or by buying a copy) to restore macOS to your internal hard drive.
Install Linux on Mac:
How to Install Linux on Mac
If you’re one of the PC enthusiasts that naturally want the best of each world, you may have experienced the craving for Linux software without necessarily throwing your MacBook out the window. MacOS is great, especially for video editing, and your MacBook has amazing battery life.
But you also want to experiment and use the open-source operating system alongside OS X. This means that getting a separate, cheaper laptop is out of the question. The only viable option may be to install Linux on Mac.
Why you might want to install Linux on your Mac
MacOS may be one of the most innovative operating systems, coupled with premium hardware and specs, but it may not be perfect for some of your needs. Some applications provide better results if rendered from another operating system, such as Linux. You may find that you need to install and run Linux on Mac.
Here are some reasons you might want to install Linux on your Mac:
- To satisfy your curiosity: Out of curiosity, you may want to find out what would happen if you had Linux running alongside your most recent version of macOS. You want to find out if it may perform any better on a Mac, or whether it would open up a new world of possibilities to you.
- Have everything on one laptop: You want to utilize the power of two operating systems, but don’t want to spend extra cash on a separate device. The solution is to install Linux on Mac, and run it alongside macOS X. It makes things a bit easier for you since all you need is a single device.
- Better security: One thing about the Linux software is that it has no room for malware. This means that you will never have to worry about viruses finding their way into its shell and crashing the system, as is often the case for other operating systems, especially Windows.
- Easy customization: Because of its flexibility, Linux allows the kind of customization you will never find on Mac OS or Windows. This is because, unlike Windows and Mac OS, Linux is open-source. You can edit or change code to have it exactly as you wish.
How to install Linux on your Mac
It’s possible to get the best of both Mac OS and Linux, but you need to learn how to install Linux on Mac. If you aren’t a tech geek, or aren’t good at hacking, you will need the assistance of reliable and efficient software, such as Parallels Desktop.
Here is how to install Linux on Mac using the Parallels Desktop software:
- Download a set of Linux virtual machines from the main installation Assistant Menu.
- Choose your preferred Linux distribution and download it.
- Once downloaded, you can install and begin running Linux on your Mac.
The process will be longer and more complicated if you have no virtual desktop, such as Parallels Desktop. This is because you will need to create a bootable Linux USB drive, which you will then plug into your Mac to initiate the installation process. You will need a USB mouse and keyboard because Linux may not recognize the drivers on your MacBook. When the process is over, restart your Mac, and hold down the Option key. Choose Linux OS from the menu to start using it.
Conclusion
If you want to have the best of both Mac OS and Linux on your MacBook, you will have to install and run Linux on your Mac. The fastest way to install Linux on Mac is through the use of reliable virtual desktop software, such as Parallels. Click here to learn more about Parallels Desktop.