Context
I must say that I have been quite unhappy with my old Mac Book Pro (mid 2012) for almost a year now. IIRC, I got it early 2013 and it served me well during my PhD but now it is kind of slow 🐢 and often behaves weirdly on boot. Last weekend fir instance, I got a nasty black screen on boot 😱. Turns out it happens frequently and there are no less than four different solutions to this issue 😱 (in my case, emptying the PRAM did the job)… Windows, MacOS, blue screen, black screen, yunno… I found having these issues actually rather worrisome because I care about my computer, I update it frequently and I’m actually capable of solving this kind of issues, so WTF? This whole situation makes me wonder what people unable to deal with this kind of problem would do… My guess is they would go to an fancy Apple store to either get it fixed 💰 or get a new shinny Mac 💰💰💰! Anyway, as the time went on, I started to feel frustrated and as I was not a big fan of MacOS Mojave (it brings nothing I need and I haven’t noted any improvement). Given this I decided:
- to get rid of Mojave and clean install High Sierra on one partition;
- to install Ubuntu 18.04 on a second one.
Clean install MacOS High Sierra
This is a two steps procedure detailed in several posts (e.g. here and there):
create a bootable installer (the easiest way is to use a USB stick) which requires to download the installer for High Sierra and use the ‘createinstallmedia’ command in a terminal;
use the bootable installer, i.e. rebooting the Mac while holding the Option key (
alt
) and then boot on the installer which guides you through all the steps.
Note that as I wanted to create a second partition with Ubuntu I had to use
Disk Utility
to partition the hard drive (NB this requires to select Show All Devices
in
the View
menu in Disk Utility in order to select the hard drive – not a
container). Afterwards I installed Homebrew and a couple of
of software for the time being, i.e. I opened the terminal and entered:
|
|
I couldn’t resist to install SteamOS
and OpenEmu 😆 even though I’m not spending much
time on them (brew cask install steam openemu
).
After this, the first part was completed ✅.
Dual boot MacOS/Ubuntu
There are several blog posts/tutorials covering this, see for instance the post on Lifewire. In a nutshell, the installation of Ubuntu requires to:
create a bootable installer for Ubuntu 18.04 - Bionic Beaver;
use the bootable installer;
I actually tried to create a bootable installer on my Debian computer but MacOS
was not capable of recognizing the installer (did not try to solve this issue,
that just irritates me). So I did it on my freshly MacOS High Sierra partition,
i.e. after I downloaded the Ubuntu desktop
image, I used the dd
command to create
the installer on my USB stick. Note that I got the right location, disk1
,
using diskutil list
in a terminal (I would have used lsblk
on Debian). So
here is what I did:
|
|
where <disk?>
was replaced by disk1
in my case. For the records, I would have done the following on Debian:
|
|
where <sda?>
would have been sda1
(again, in my case). Once the Ubuntu
installer created I rebooted and held alt
to launch the Ubuntu installer. The
tricky part was to find the right partition so I used the partition manager to select the right partition (for me it was sda4
) and I needed to first remove it with -
to turn it into free space which I used to install Ubuntu. Once done, I installed several packages:
|
|
and below are a couple of characteristics of my MacBookPro returned by inxi on my Ubuntu partition:
|
|
When I first rebooted my Mac, I was confused because Ubuntu was directly
launched and I cannot select the MacOS partition. After a couple of minutes I
figured out that all I had to do now is to hold alt
to access the Startup
Manager (as I did above to access the
installers) and select the right partition! I actually like it this way, it’s
kind of a hidden partition!