Preface: I know there are lots of other questions about this on here, but they do not exactly match my situation and/or I do not have the technical knowledge to apply the answers to my situation. Thank you in advance for any help!
I have a Macbook Pro (Late 2011), running High Sierra. I partitioned the harddrive to install Linux. I later uninstalled Linux, and I seemingly did it in a bad way! My main volume now is unbootable, and it does not show up in the startup manager. I'm also not able to boot from Recovery, so to get to the terminal I've booted from a UBS flash drive with a MacOS installer on it.
I followed the steps from answers to similar questions on here, and I got to the step where I remove the volume with the gpt command, but then couldn't get any further. So the main partition doesn't show up on the diskutil list anymore (shown below).
Here is some relevant information from the terminal. For convenience of viewing, I've also included photos of these outputs (below).
[-bash-3.2# diskutil list disk0
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *750.2 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS 650.0 MB disk0s3
3: Microsoft Basic Data 74.3 GB disk0s4
[-bash-3.2# gpt -r show disk0
gpt show: disk0: Suspicious MBR at sector 0
start size index contents
0 1 MBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-BA4B-00A0C93EC93B
409640 1318255112 2 MBR part 218 [no contents because I removed this one]
1318664752 1269536 3 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
1319934288 1712
1319936000 145210938 4 GPT part - EBD0A0A2-B9E5-4433-B7C0-6886B72699C7
1465146938 2197
1465149135 32 Sec GPT table
1465149167 1 Sec GPT header
The answer at this question has been the most helpful to me so far. However, I do not have an additional mac to do the hex dump that the answer calls for. If needed, I can borrow one from a friend, but I don't own one.
Any help would be greatly appreciated!
Output of the commands export LC_CTYPE="ASCII"
and dd if=/dev/disk0s2 bs=1 count=64 | vis -c;echo
:
64+0 records in
64+0 records out
64 bytes transferred in 0.377151secs (170 bytes/sec)
\M-6\0\^S\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\^B\0\0\0\0\0\0\0\0\0\0\0\0\0\0