Linux / Hybrid MBR Setup Broke Boot Camp
So I’m in desperate need of guru advice. There used to be two operating systems on my 2017 iMac 5K: macOS Big Sur and Windows 10. After I installed Linux Mint, Windows 10 wouldn’t boot anymore. The Windows shortcut I was presented with upon pressing and holding the Alt key would get me GRUB, which would only boot Linux as it couldn’t find the Windows bootloader anymore. I mounted the EFI partition in macOS, and it turned out the bootloader was indeed gone, so I deleted the Windows partition using Boot Camp Assistant, and GRUB disappeared. The machine only booted macOS now.
Then I re-partitioned the disk in Boot Camp Assistant, and began installing Windows 10 from scratch. However, upon rebooting, the computer booted back into… Linux and not into the Windows instal shell. Selecting Windows from the boot menu would still get me GRUB, and removing the Ubuntu folder from the EFI resulted in the Windows shortcut booting straight to macOS.
I think my issue may be related to this one here: https://discussions.apple.com/thread/6511286 , yet I can't quite make heads or tails of it. Could anyone please explain what I should do in order to have all three systems up and running on the same drive? Here's the diskutil read-out:
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_APFS Container disk2 142.0 GB disk0s2
3: Microsoft Basic Data OSXRESERVED 10.0 GB disk0s3
4: Microsoft Basic Data BOOTCAMP 65.1 GB disk0s4
5: Linux Filesystem 33.6 GB disk0s5
/dev/disk2 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +142.0 GB disk2
Physical Store disk0s2
1: APFS Volume Macintosh HD 15.3 GB disk2s1
2: APFS Snapshot com.apple.os.update-... 15.3 GB disk2s1s1
3: APFS Volume Preboot 313.6 MB disk2s2
4: APFS Volume Recovery 625.7 MB disk2s3
5: APFS Volume VM 1.1 MB disk2s4
6: APFS Volume Macintosh HD - Data 111.1 GB disk2s5
Many thanks in advance,
Alex