This is continuation from my previous question "I removed the rEFInd and rEFIt boot managers and now I've lost Windows Bootcamp from the Mac Startup Manager", where I now can boot Windows from the Mac Startup Manager.
I heard some people had success with installing Ubuntu and using grub on a Mac. The problem is, I ignored the vast majority of people who said it caused issues, and didn't install rEFInd first.
Now when I boot the computer, I get the grub boot menu, with options for Xubuntu and Windows bootloader. Xubuntu obviously works, Windows doesn't (I just get a black screen and have to hold the power button to shutdown). I can access the Mac side by pressing escape on grub and typing
I wanted to test if some software would run better on Linux; it doesn't, so I'm happy to remove the linux partition and go back to how it was with Mac and Windows.
I just wanted to check if it's ok to remove the Linux partition from the Mac side. The linux partition is where I installed both Xubuntu and the grub bootloader. Will this return everything back to normal, Windows also?
I'm using a 2019 iMac running MacOS 11.6.1.
EDIT (added details):
My output for
/dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *1.0 TB disk0 1: EFI EFI 209.7 MB disk0s1 2: Apple_APFS Container disk2 843.0 GB disk0s2 3: Microsoft Basic Data 35.0 GB disk0s3 4: Microsoft Basic Data BOOTCAMP 122.0 GB disk0s4 /dev/disk1 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *28.0 GB disk1 1: EFI EFI 314.6 MB disk1s1 2: Apple_APFS Container disk2 27.6 GB disk1s2 /dev/disk2 (synthesized): #: TYPE NAME SIZE IDENTIFIER 0: APFS Container Scheme - +870.5 GB disk2 Physical Stores disk1s2, disk0s2 1: APFS Volume Macintosh HD 20.3 GB disk2s1 2: APFS Snapshot com.apple.os.update-... 20.3 GB disk2s1s1 3: APFS Volume Macintosh HD - Data 708.5 GB disk2s2 4: APFS Volume Preboot 397.5 MB disk2s3 5: APFS Volume Recovery 626.4 MB disk2s4 6: APFS Volume VM 2.1 GB disk2s5
When I run
sudo mkdir /Volumes/efi and
sudo mount -t msdos /dev/disk1s1 /Volumes/efi
The EFI folder has
ubuntu folders inside.
I imagine the Windows boot files are gone? That's not a problem, I have a Windows 10 ISO and know how to replace them. My issue is that I want to know I'm not going to do something wrong and lose access to the Mac or lose the default Apple bootloader by removing the Xubuntu partition (/dev/disk0s3) or by deleting the
ubuntu boot folder.