I got the same problem. I tried your step by step and got an error at the end.
MacBook-Pro-de-Antoine:~ antoinerivard$ csrutil status
System Integrity Protection status: enabled.
MacBook-Pro-de-Antoine:~ antoinerivard$ sudo gdisk / dev/rdisk0
Password:
GPT fdisk (gdisk) version 1.0.1
Usage: gdisk [-l] device_file
MacBook-Pro-de-Antoine:~ antoinerivard$ p
-bash: p: command not found
MacBook-Pro-de-Antoine:~ antoinerivard$ Sudo gdisk /dev/rdisk0
GPT fdisk (gdisk) version 1.0.1
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
NOTE: Write test failed with error number 1. It will be impossible to save
changes to this disk's partition table!
You may need to deactivate System Integrity Protection to use this program. See
https://www.quora.com/How-do-I-turn-off-the-rootless-in-OS-X-El-Capitan-10-11
for more information.
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help): p
Disk /dev/rdisk0: 977105060 sectors, 465.9 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 0BD1259A-903C-4656-966F-B0C23658D73F
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 977105026
Partitions will be aligned on 8-sector boundaries
Total free space is 262281 sectors (128.1 MiB)
Number Start (sector) End (sector) Size Code Name
1 40 409639 200.0 MiB EF00 EFI System Partition
2 409640 762128383 363.2 GiB AF00 Mac Antoine
3 762128384 763397927 619.9 MiB AB00 Recovery HD
4 763397928 781531135 8.6 GiB AF00 Sans titre
5 781793280 977104895 93.1 GiB 0700 BOOTCAMP
Command (? for help): r
Recovery/transformation command (? for help): o
Disk size is 977105060 sectors (465.9 GiB)
MBR disk identifier: 0xC27FC94D
MBR partitions:
Number Boot Start Sector End Sector Status Code
1 1 977105059 primary 0xEE
Recovery/transformation command (? for help): h
WARNING! Hybrid MBRs are flaky and dangerous! If you decide not to use one,
just hit the Enter key at the below prompt and your MBR partition table will
be untouched.
Type from one to three GPT partition numbers, separated by spaces, to be
added to the hybrid MBR, in sequence: 3 4 5
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 AB):
Set the bootable flag? (Y/N): n
Creating entry for GPT partition #4 (MBR partition #3)
Enter an MBR hex code (default AF):
Set the bootable flag? (Y/N): n
Creating entry for GPT partition #5 (MBR partition #4)
Enter an MBR hex code (default 07):
Set the bootable flag? (Y/N): y
Recovery/transformation command (? for help): o
Disk size is 977105060 sectors (465.9 GiB)
MBR disk identifier: 0xC27FC94D
MBR partitions:
Number Boot Start Sector End Sector Status Code
1 1 762128383 primary 0xEE
2 762128384 763397927 primary 0xAB
3 763397928 781531135 primary 0xAF
4 * 781793280 977104895 primary 0x07
Recovery/transformation command (? for help): w
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!
Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/rdisk0.
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Unable to open device '/dev/rdisk0' for writing! Errno is 1! Aborting write!
When I went in Terminal in recovery mode, I type csrutil disable, but wasn't working.
Can you help me?
Thx