Introduction¶
This page explains how to remove Linux from your Mac. It shouldn't matter what distro you are using.
Removing Linux partitions¶
You may want to do this from macOS Recovery as you will be resizing (expanding) your startup disk, although you don't need to.
- In macOS open Disk Utility
- Click "View" then "Show all devices"
- Select your Apple SSD
- Click "Partition". If it suggests adding volumes, don't.
- Select your Linux partition, and click
-
to remove it. Your macOS partition should expand to fill the space that Linux was in. - Click apply.
- Disk Utility will remove your Linux partition and expand your macOS partition. This may take a while, but do not interrupt this process. While it does this, consider the fact that you didn't need admin to remove your Linux partition.
Removing the Linux boot-loader¶
If using a separate EFI partition¶
Follow the same steps to remove the seperate EFI partition as you followed to remove the Linux partition.
If using the EFI partition already available in your Mac.¶
- In macOS run
sudo diskutil mount disk0s1
, which mounts your EFI System Partition. - There will now be an EFI disk visible in Finder, open it and go into the EFI folder (within the EFI disk).
- Remove any folders other than Apple, Boot, or Microsoft.
- Enter the Boot folder and remove
bootx64.efi
. - If you have Windows installed with Bootcamp, Enter Microsoft folder and then the Boot folder inside the Microsoft folder and copy
bootmgfw.efi
. Paste it in that Boot folder in the EFI folder of the EFI disk from where you had deletedbootx64.efi
. Now rename the newly copiedbootmgfw.efi
tobootx64.efi
. Be careful not to delete the Windows bootloader.
Enable Secure Boot (Optional)¶
- Boot to macOS Recovery by holding
⌘-R
as you turn your Mac on. - Enable Secure Boot as described here.