this is the output of the first part:
GPT fdisk (gdisk) version 1.0.1
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Partition table scan:
MBR: hybrid
BSD: not present
APM: not present
GPT: present
Found valid GPT with hybrid MBR; using GPT.
Command (? for help): P
Disk /dev/rdisk0: 1465149168 sectors, 698.6 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): BE924D70-1CD5-4EDB-9B44-947B2100D347
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1465149134
Partitions will be aligned on 8-sector boundaries
Total free space is 539884660 sectors (257.4 GiB)
Number Start (sector) End (sector) Size Code Name
1 40 409639 200.0 MiB EF00 EFI System
2 409640 538608447 256.6 GiB AF00 Apple HFS/HFS+
3 538608448 539877983 619.9 MiB AB00 Recovery HD
4 539879424 925265920 183.8 GiB 0700 Microsoft basic data
Command (? for help): D
Partition number (1-4): 4
Command (? for help): N
Partition number (4-128, default 4): 6
First sector (34-1465149134, default = 539877984) or {+-}size{KMGTP}: 539879424
Last sector (539879424-1465149134, default = 1465149134) or {+-}size{KMGTP}: +925265920
Current type is 'Apple HFS/HFS+'
Hex code or GUID (L to show codes, Enter = AF00): 0700
Changed type of partition to 'Microsoft basic data'
Command (? for help): P
Disk /dev/rdisk0: 1465149168 sectors, 698.6 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): BE924D70-1CD5-4EDB-9B44-947B2100D347
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1465149134
Partitions will be aligned on 8-sector boundaries
Total free space is 5237 sectors (2.6 MiB)
Number Start (sector) End (sector) Size Code Name
1 40 409639 200.0 MiB EF00 EFI System
2 409640 538608447 256.6 GiB AF00 Apple HFS/HFS+
3 538608448 539877983 619.9 MiB AB00 Recovery HD
6 539879424 1465145343 441.2 GiB 0700 Microsoft basic data
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!
Warning: The kernel may continue to use old or deleted partitions.
You should reboot or remove the drive.
The operation has completed successfully.