iMac 27-inch Late 2012 - Deleted everything by accident: Mac partition AND recovery
Hello all,
I was trying to install Bootcamp on my iMac 27inch Late 2012, and everything was successful until I got to the Windows Installation Setup after restarting the computer. It gave me the error that the disk format for the BOOTCAMP drive was MBR but Windows could only be installed on GPT disks. I researched this and thought I had found a fix by formatting the Bootcamp partition, and I had done so. Afterwards, just to check if it still worked, I restarted the iMac and pressed Alt. Usually, when I do this, it shows the boot-order screen, and it shows Macintosh HD and Recovery, along with the Windows and EFI Boot partition.
NOW, however, the Macintosh HD and Recovery drives do not show up, and I fear that I may have accidentally formatted the ENTIRE drive. The only boot options that show up are Windows and EFI Boot.
How do I fix this problem and restore MacOS? For now all I want to do is restore the OS and the recovery mode.
I originally had MacOS Mojave on a 1TB hard drive (not SSD).
Thanks
iMac, macOS Mojave (10.14), null