We are going to
1. recreate the missing GPT 2 entry.
2. delete GPT 4.
3. create a new GPT 4 (Shared?). This is not your Bootcamp as you can tell by the start/end disk addresses.
4. create a new GPT 5 (BOOTCAMP). This is the bootable entry in your MBR as shown by the start/end disk addresses.
Your MBR will be untouched leaving Windows bootable.
You need to use the following steps. If you see any error messages during the following steps, please stop and post back here with the error message. The following steps have values from your GPT and MBR output (please verify for any typing errors). The text in parentheses is for informational purpose to describe theaction being taken. Gdisk has one-character commands except when entering numbers.
Rebuild GPT entries using start/end disk addresses
- P (print the full list of parts)
- N (new part)
- 2 (part 2 - OS X)
- 409640 ( - Start offset in sectors or the start point for OSX part)
- 195715463 ( - End offset)
- AF00 (HFS+ part type)
- D (delete)
- 4 (part 4 - old Bootcamp)
- N (new part)
- 4 ( Shared part)
- 196986880 ( - Start offset in sectors or the start point for Shared part)
- 390836223 ( - End offset)
- 0700 (Microsoft Basic Data)
- N (new part)
- 5 ( Bootcamp part)
- 390836224 ( - Start offset in sectors or the start point for Bootcamp part)
- 976773119 ( - End offset)
- 0700 (Microsoft Basic Data)
- P (print list of all parts just to see what changes will be made)
- W (Write the new GPT)
- Y (Yes! really write the new GPT)
This will delete and re-write the GPT partition info for /dev/disk0s2, /dev/disk0s4 and /dev/disk0s5.
You should now be able to see OSX and boot into it. Once you are able to verify OSX we can do the next step.