Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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

Posted on Apr 1, 2015 6:53 AM

Reply
5 replies

Apr 1, 2015 12:10 PM in response to Loner T

Command (? for help): p

Disk /dev/disk0: 976773168 sectors, 465.8 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): DE3B5C4D-2B77-482A-B5E3-00407C468D3C

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 976773134

Partitions will be aligned on 8-sector boundaries

Total free space is 30228733 sectors (14.4 GiB)


Number Start (sector) End (sector) Size Code Name

1 40 409639 200.0 MiB EF00 EFI System Partition

2 409640 753868791 359.3 GiB AF00 Macintosh HD

3 753868792 755138327 619.9 MiB AB00 Recovery HD

4 785367040 976773119 91.3 GiB 0700 BOOTCAMP

Missing Partition after Disk Repair

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.