This question already has an answer here:
I was trying to install Kali linux in a dual boot fashion when I accidentally ended up install a terminal only version of Debian as a second partition. So I decided to retry, which meant I needed to delete the Debian partition. When I tried to in Disk Utility, it gave me errors, so I booted into internet recovery mode and removed the partitions there. I then proceeded in clicking the Apple Logo and selecting the choose boot partition thing. It showed nothing. At first I panicked, thinking I had somehow deleted all of my data. I tried creating a second partition, so I could install Mac OS there and then fix my mac from there. I clicked on the create partition, waited 3ish hours while I went out, came back and it said preparing to partition. So I rebooted and saw that the partition type was: FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFF. So I installed Mac OS X onto a painfully slow flash drive (15-20MB/s) and then looked up my problem. I found other solution people had created only they were specific to the exact case. I do not know what the partition type is supposed to be so here is my info: /dev/disk1 is the USB flash drive that is running MAC OS X so I can use my laptop.
sh-3.2# diskutil list /dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *500.3 GB disk0 1: EFI NO NAME 209.7 MB disk0s1 2: FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF 450.1 GB disk0s2 /dev/disk1 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *31.4 GB disk1 1: EFI EFI 209.7 MB disk1s1 2: Apple_HFS Fixer OS 30.5 GB disk1s2 3: Apple_Boot Recovery HD 650.0 MB disk1s3
And here is some more:
sh-3.2# gpt -r show /dev/disk0 start size index contents 0 1 PMBR 1 1 Pri GPT header 2 32 Pri GPT table 34 6 40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B 409640 879039128 2 GPT part - FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF 879448768 97656259 977105027 32 Sec GPT table 977105059 1 Sec GPT header
How can I mount this partition again? Which command should I use?