Missing Partition after Disk Repair
Today I did disk repair using recovery tool, but after doing that windows partition gone away!
Maysams-MacBook-Pro:~ maysam$ diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 385.8 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
4: Microsoft Basic Data 98.0 GB disk0s4
And after searching for topic here, I found this:
sudo fdisk -e /dev/disk0
p
setpid 4
07
flag 4
p
write
y
This helped me to bring back the partition, but Windows won't start, it says disk read error. Even I've tried Widnows Repair Tool but it could not fix it, because the partition won't show up there, it cannot recognise the bootcamp partition.
Maysams-MacBook-Pro:~ maysam$ sudo gpt -vv -r show /dev/disk0
Password:
gpt show: /dev/disk0: mediasize=500107862016; sectorsize=512; blocks=976773168
gpt show: /dev/disk0: Suspicious MBR at sector 0
gpt show: /dev/disk0: Pri GPT at sector 1
gpt show: /dev/disk0: Sec GPT at sector 976773167
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 753459152 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
753868792 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
755138328 30228712
785367040 191406080 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
976773120 15
976773135 32 Sec GPT table
976773167 1 Sec GPT header
How can I fix it?
MacBook Pro, OS X Yosemite (10.10), iPhone 6. iPod Nano 2nd Generation