I was trying to install Linux on my MacBook for class when I bricked my computer, which now in an unbootable state.
I made my partition too small, so I was going to delete and create a larger one. However, Disk Utility did not allow me to delete the small partition. I followed the instructions from https://apple.stackexchange.com/a/238088/236252
However, not only was I still unable to delete it, but upon restarting I realized my primary partition (located on the same disk) changed into FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF, and I had no options to boot. (I am sure I performed the command on the correct disk and partition)
I saw some similar threads, but my main bootable drive is the one that got corrupt.
I don't want to lose any data. I'm not the most terminal savvy, so ANY help is appreciated, and I will kindly provide any additional information!
(Disk 0, partition 2 is my main partition, and that only one I care about)
Below are the results of $ diskutil list and $ gpt -r show disk0.
UPDATE: : I have followed @klanomath 's instructions. At the last step I received the following error:
Checking prerequisites Checking the partition list Checking for an EFI system partition Checking the EFI system partition's size Checking the EFI system partition's file system Problems were found with the partition map which might prevent booting Error: -69766: The partition map needs to be repaired because there's a problem with the EFI system partition's file system Underlying error: 8: POSIX reports: Exec format error
FINAL UPDATE: SUCCESS!
I just wanted thank @klanomath for helping me through this entire process. He spent 11 hours TeamViewing with me until not only my files were accessible, but until I could access my computer as could before this whole debacle (and this was after 5 hours of email correspondence).
To any future reader with this problem: PLEASE don't give up, it can be fixed!