Dual Booting a Mac Mini
I have a 14-year old Mac Mini that served me well as my desktop for many years, and I wanted to get more use out of it by installing Linux. I have a Raspberry Pi server running Debian, but using it as a desktop involves moving video and keyboard cables around. It would be nice to have a dedicated Linux desktop on hand.
I was mentally prepared to completely wipe out the MacOS. I have good backups of everything on the Mini, so in theory I could rebuild it if my experiment failed and I wanted to restore the original machine.
But I was pleased and a little surprised to find out that the Mac Disk Manager can non-destructively resize partitions. In the olden days, disk partitioning was often a destructive operation. There was commercial software that could resize partitions, but it could still be risky. It was good to know I could keep the Mac partition around just in case.
Linux distribution
I mostly use Debian these days, so that was the first distro I considered. But I didn’t want to deal with a possible firmware upgrade mentioned in an installation guide. Linux Mint gets good reviews as a desktop, and it’s indirectly derived from Debian, so I decided to give it a try. I chose Mint with the XFCE desktop, to keep it lightweight.
Plan
- Download a Mint/XFCE image
- Burn it to a USB drive using the Raspberry Pi Imager (Etcher didn’t work for me)
- Clean up my files on the Mac and get rid of stuff I don’t need
- Use Disk Manager to shrink the Mac partition
- Boot from the USB drive
- Install Mint on the free partition
Partitioning
I ran into some problems with disk partitioning. That’s in part why I’m writing this, to document the solution.
I planned to use 250GB of the drive for Mint, and leave 750GB for MacOS. After deleting files, emptying Trash, and rebooting, I had plenty of space available. But when I tried to add a partition, Disk Manager reported that the APFS container could not be split. An Internet search suggested that Time Machine snapshots could be the problem.
To try and fix this, I turned off automatic Time Machine backups in Settings, and deleted all TimeMachine snapshots in Terminal. First I listed the snapshots:
tmutil listlocalsnapshots /
This returned a list like:
com.apple.TimeMachine.2025-11-10-161635.local
com.apple.TimeMachine.2026-08-11-104259.local
etc.
Then I deleted the snapshots:
sudo tmutil deletelocalsnapshots 2025-11-10-161635
etc.
(The command takes just the numeric part of the filename minus prefix and suffix)
That fixed the “could not be split” error. I added the partition, named it “Linux HD” and set the format to ExFat. Disk Manager started shrinking the Mac partition, but eventually failed with the message: APFS Container Resize error code is 49187.
At this point, I thought to turn off FileVault encryption. I left the machine alone for a day to let the decryption finish. It didn’t fix the problem, but I think it was prudent to do this anyway, since I don’t need disk encryption on the Mac or Linux side of this system.
More searching for ways to fix the resize error turned up the suggestion to boot into Recovery Mode and run fsck_apfs:
- Power off the machine
- Power it on while holding Command - R to boot into Recovery mode
- Go past the initial prompts to the menu, then open Terminal and run:
diskutil apfs listto find disk devices. - Unmount the volume:
diskutil unmountDisk /dev/disk2(“disk2” was the disk found with diskutil). - Run fsck:
fsck_apfs -y /dev/disk2
I got a warning from fsck: “overallocation detected”. I had seen this error earlier when first trying to partition the disk, but I hadn’t looked into it since it seemed like just a warning. Apparently I needed to fix it.
I ran fsck again, with -o to fix overallocation: fsck_apfs -oy /dev/disk2
This corrected the overallocation issue. One more run of fsck_apfs reported no errors.
I rebooted and tried shrinking the partition again. This time it worked!
Install Mint
The rest was straightforward. Power down, insert the USB drive, hold Option while powering up, and select the USB drive to boot from. After booting up, double click on the “Install Linux Mint” icon to install the OS. The process from this point on was similar to other Linux installations, and is well documented in the Mint installation guide.
That’s it! Now I have a modern Linux desktop on a reliable computer.