I followed the strategy of Klanomath (see link) in order to recover my lost OSX (el Capitan) partition (MBR overwritten by bootcamp Windows). In this procedure you have to find the right boundaries of your partition. But when I got my boundaries and created my partition, disk0s2 did not want to mount. This means the boundaries are not good.
This is my situation at the moment:
CJs-MacBook-Pro:~ root# 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 495406233 2 GPT part - 53746F72-6167-11AA-AA11-00306543ECAC
495815873 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
497085409 302914591
800000000 100000000 4 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
900000000 1269536 5 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
901269536 75503599
976773135 32 Sec GPT table
976773167 1 Sec GPT header
CJs-MacBook-Pro:~ root# diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk0
1: EFI 209.7 MB disk0s1
2: Apple_CoreStorage 253.6 GB disk0s2
3: Apple_Boot 650.0 MB disk0s3
4: Apple_HFS TempSystem 51.2 GB disk0s4
5: Apple_Boot Recovery HD 650.0 MB disk0s5
CJs-MacBook-Pro:~ root#
The borders I found:
- 1st HFSJ: 249128179712/512 = block 486578476
- 2nd HFSJ: 253857728000/512 = block 495815875
Do you have any suggestions?