sudo fdisk -e /dev/disk0
Password:
fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory
Enter 'help' for information
fdisk: 1> p
Disk: /dev/disk0 geometry: 91201/255/63 [1465149168 sectors]
Offset: 0 Signature: 0xAA55
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
1: EE 0 0 2 - 25 127 14 [ 1 - 409639] <Unknown ID>
2: AF 25 127 15 - 1023 254 63 [ 409640 - 585937496] HFS+
3: 07 1023 254 63 - 1023 254 63 [ 586348544 - 585674752] HPFS/QNX/AUX
*4: EF 1023 254 63 - 1023 254 63 [1172285440 - 409600] <Unknown ID>
fdisk: 1> setpid 3
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
3: 07 1023 254 63 - 1023 254 63 [ 586348544 - 585674752] HPFS/QNX/AUX
Partition id ('0' to disable) [0 - FF]: [7] (? for help) 07
fdisk: 1> flag 3
Partition 3 marked active.
fdisk:*1> p
Disk: /dev/disk0 geometry: 91201/255/63 [1465149168 sectors]
Offset: 0 Signature: 0xAA55
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
1: EE 0 0 2 - 25 127 14 [ 1 - 409639] <Unknown ID>
2: AF 25 127 15 - 1023 254 63 [ 409640 - 585937496] HFS+
*3: 07 1023 254 63 - 1023 254 63 [ 586348544 - 585674752] HPFS/QNX/AUX
4: EF 1023 254 63 - 1023 254 63 [1172285440 - 409600] <Unknown ID>
fdisk:*1> e 4
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
4: EF 1023 254 63 - 1023 254 63 [1172285440 - 409600] <Unknown ID>
Partition id ('0' to disable) [0 - FF]: [EF] (? for help)
Do you wish to edit in CHS mode? [n] n
Partition offset [0 - 1465149168]: [1172023296] 1172285440
Partition size [1 - 292863728]: [292863728] 292861952
fdisk:*1> w
Device could not be accessed exclusively.
A reboot will be needed for changes to take effect. OK? [n]