A. We need to disable SIP.
1. Boot into Local Recovery (Command+R).
2. Start Utilities -> Terminal.
3. Type csrutil disable in Terminal and press Enter/Return.
4. Type csrutil status.
5. Boot normally, and type csrutil status to confirm that all individual entries are still disabled.
B. Rebuild non-standard MBR.
The following steps are non-standard because there is a third user-visible partition. Typically, there are two such partitions in a normal configuration on a single-disk Mac with OS X and Bootcamp. This is fragile and lack of proper backups can lead to potential data loss. Download GPT Fdisk from http://sourceforge.net/projects/gptfdisk/ and install it on the OS X side. The following steps are executed when booted in OS X. If the 79G is converted to Free Space, these numbers (3 4 5) will change back to (2 3 4).
Rebuild MBR to match the new GPT information thus resetting the Hybrid MBR. Use defaults for other questions (like partition codes). The only values that need modifications are the Boot flags and step 10. Accept all other defaults that Gdisk offers. Please see thesample Q&A as an example. These steps can be repeated if you make a mistake before you get to Step 12, otherwise start from Step 1 for these steps. Step 6 has numbers which are typed with a space between the numbers. Please see the sample Q&A before you execute these steps.
- Sudo gdisk /dev/rdisk0
- P (Print list of parts)
- R (Recover)
- O (print current Hybrid MBR)
- H (chooses Hybrid)
- Partitions numbers to be hybridized: 3 4 5
- Y (Good for GRUB question)
- N (part 3 boot flag)
- N (part 4 boot flag)
- Y (part 5 boot flag make NTFS bootable partition)
- O (print current Hybrid MBR)
- W (Write the new MBR)
- Y (Yes! write the new MBR)
- Reboot
Here is sample Q&A for this section. Please notice the Press Enter/Return. Accept defaults offered by Gdisk.
Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N): Y
Creating entry for GPT partition #3 (MBR partition #2)
Enter an MBR hex code (default AF or AB): Press Enter/Return
Set the bootable flag? (Y/N): N
Creating entry for GPT partition #4 (MBR partition #3)
Enter an MBR hex code (default AB or 0B or 0C): Press Enter/Return
Set the bootable flag? (Y/N): N
Creating entry for GPT partition #5 (MBR partition #4)
Enter an MBR hex code (default 07): Press Enter/Return
Set the bootable flag? (Y/N): Y