I was dual booting debian alongside MacOS. Debian hasn't been bootable for some time (unknown reason) so I decided to remove the leftover linux partions and resize my main MacOS parition to fill the empty space. One of the linux drives I could remove, the other I couldn't. After restarting the Mac it boots straight into grub rescue which i'm guessing is leftover from the linux install and now won't boot into MacOS, and no recent backup ofcourse.
I've checked for startup disks in Internet Recovery and nothing is listed.
I then looked at the partitions by using Internet Recovery and run
fdisk /dev/disk1 and
gpt -r show /dev/disk1. Here are the follwoing outputs:
I'm under the impression that i've got to change the GUID of the main MacOS partition which is currently showing no volume type or
FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF and delete the linux swap partition. Which I think I can do with the commands listed here, here and here, but i'd rather proceed with caution and check-in with people in the know before trying.
I believe the filesystem is HPFS and i'm using filevault, if that's relevent. If you need a hexdump please let me know, I believe I can use
vis -c to get a dump within Internet Recovery.