Fixing missing Bootcamp partition after Mavericks rewrote wrong GPT
Previously resized my boot camp partition (manually)
Installed Mavericks
Boot Camp disappeared
Disk0s4 is visible in Disk utility but reflects the OLD disk size (pre-resize) and additional space (available for OSX expansion) now appears in its place
[REDACTED] sudo gpt -r -vv show disk0
WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.
To proceed, enter your password, or type Ctrl-C to abort.
Password:
gpt show: disk0: mediasize=240057409536; sectorsize=512; blocks=468862128
gpt show: disk0: Suspicious MBR at sector 0
gpt show: disk0: Pri GPT at sector 1
gpt show: disk0: Sec GPT at sector 468862127
start size index contents
0 1 MBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 312500000 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
312909640 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
314179176 76558744
390737920 78123008 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
468860928 1167
468862095 32 Sec GPT table
468862127 1 Sec GPT header
[REDACTED] sudo fdisk /dev/disk0
Disk: /dev/disk0 geometry: 29185/255/63 [468862128 sectors]
Signature: 0xAA55
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
1: EE 1023 254 63 - 1023 254 63 [ 1 - 409639] <Unknown ID>
2: AF 1023 254 63 - 1023 254 63 [ 409640 - 312500000] HFS+
3: AB 1023 254 63 - 1023 254 63 [ 312909640 - 1269536] Darwin Boot
4: 0C 1023 254 63 - 1023 254 63 [ 390737920 - 78123008] Win95 FAT32L
[REDACTED ]
MacBook, OS X Mavericks (10.9)