You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

Boot camp lost after upgrading to Yosemite from mountain lion

User uploaded file

I lost my windows7 boot camp after I upgrade to Yosemite from mountain lion. When I press ALT when rebooting there is no more alternative to boot for window anymore. I did read some thread about this but my case is different since when I tried to type 3 steps(diskutil.......etc) 😕 as LonerT user answers it did not work. The attached files here are what I faced with. Please help. I have a lot of important files in windows

User uploaded fileUser uploaded fileUser uploaded file

MacBook Pro, OS X Yosemite (10.10), macbook pro

Posted on Nov 10, 2014 1:38 PM

Reply
Question marked as Top-ranking reply

Posted on Nov 10, 2014 2:14 PM

You have also caught the Yosemite bug.


1. Please post the output of sudo fdisk /dev/disk0

2. Text output of commands is a bit more helpful than screen images for calculations.

3. The gap between GPT#3 and GPT#4 is where your lost NTFS header lies.

4. Please download Testdisk and GPT Fdisk. Let me know if you have the links or you need them.

82 replies

Jan 21, 2015 5:45 AM in response to Loner T

Loner T wrote:


This is corrupted partition. Your list is the same as the previous list, which implies that you were looking at the results of the Deeper Search. Do 4 and 5 behave the same way as when you checked previously?


I Did not start the Deeper Search yet, the list is the result of quick search.

To start the Deeper Search, which line should I choose to continue?

Jan 21, 2015 1:52 PM in response to Loner T

Hello Loner T,

Hello Eugeniu_K,



Loner T as you can imagine, I have a similar situation with my notebook.

I tried to recover bootcamp, following your instructions but I think I missed something regarding numbers of sectors.

First I have to tell you that I extended Windos partition before upgrading Yosemite.

My problem look like this:


Mariuss-MacBook-Pro:~ mariusciobanu$ 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 685407680 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC

685817320 1269544 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

687086864 1576

687088440 289684695 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

976773135 32 Sec GPT table

976773167 1 Sec GPT header


Mariuss-MacBook-Pro:~ mariusciobanu$ sudo dd if=/dev/rdisk0s4 count=1 2>/dev/null | hexdump -C

00000000 00 4c 2b c1 66 41 3b c7 74 62 48 83 c2 02 66 8b |.L+.fA;.tbH...f.|

00000010 02 66 42 3b 04 02 74 ec b8 66 00 00 00 48 8b d1 |.fB;..t..f...H..|

00000020 66 39 01 75 1e 4c 8d 05 0c 0a 05 00 4c 2b c1 66 |f9.u.L......L+.f|

00000030 41 3b c7 74 41 48 83 c2 02 66 8b 02 66 42 3b 04 |A;.tAH...f..fB;.|

00000040 02 74 ec b8 30 00 00 00 66 39 01 75 31 48 8d 15 |.t..0...f9.u1H..|

00000050 20 fe 04 00 48 2b d1 66 41 3b c7 74 19 48 83 c1 | ...H+.fA;.t.H..|

00000060 02 66 8b 01 66 3b 04 11 74 ed eb 12 c6 84 24 90 |.f..f;..t.....$.|

00000070 00 00 00 01 eb 08 44 88 bc 24 90 00 00 00 41 3a |......D..$....A:|

00000080 df 48 8b cd 4d 89 7e 50 0f 94 c3 4d 89 7e 48 e8 |.H..M.~P...M.~H.|

00000090 c4 10 01 00 45 33 c9 48 8b d5 48 8b cf 4c 8b c0 |....E3.H..H..L..|

000000a0 88 5c 24 20 e8 af 25 00 00 48 8b 8f 88 00 00 00 |.\$ ..%..H......|

000000b0 48 8b f0 44 38 79 21 74 28 4c 39 bf 90 01 00 00 |H..D8y!t(L9.....|

000000c0 75 1f 4c 8b 87 18 01 00 00 45 39 78 04 74 12 48 |u.L......E9x.t.H|

000000d0 8b d5 48 8b cf e8 ea c9 00 00 48 89 87 90 01 00 |..H.......H.....|

000000e0 00 48 8b 97 90 01 00 00 4c 8b ac 24 98 00 00 00 |.H......L..$....|

000000f0 49 3b d7 74 27 49 8b 45 00 49 3b c7 75 0a 49 8b |I;.t'I.E.I;.u.I.|

00000100 cd e8 26 e2 00 00 eb 14 48 8b 48 38 49 3b cf 74 |..&.....H.H8I;.t|

00000110 07 e8 56 0d f8 ff eb 04 48 89 50 38 49 3b f7 75 |..V.....H.P8I;.u|

00000120 20 48 8d 15 68 0c 0d 00 48 8d 8c 24 90 00 00 00 | H..h...H..$....|

00000130 c7 84 24 90 00 00 00 01 00 00 00 e8 96 7c 03 00 |..$..........|..|

00000140 cc 48 8b 06 48 8b ce ff 90 b8 00 00 00 48 8b d0 |.H..H........H..|

00000150 49 3b c7 74 54 b9 72 00 00 00 66 39 08 75 1e 4c |I;.tT.r...f9.u.L|

00000160 8d 05 c2 07 05 00 4c 2b c0 66 41 3b cf 74 72 48 |......L+.fA;.trH|

00000170 83 c2 02 66 8b 0a 66 42 3b 0c 02 74 ec 49 3b c7 |...f..fB;..t.I;.|

00000180 74 27 b9 65 00 00 00 66 39 08 75 1d 48 8d 15 ad |t'.e...f9.u.H...|

00000190 07 05 00 48 2b d0 66 41 3b cf 74 4f 48 83 c0 02 |...H+.fA;.tOH...|

000001a0 66 8b 08 66 3b 0c 10 74 ed 4c 8d 05 70 5a 06 00 |f..f;..t.L..pZ..|

000001b0 41 b9 20 00 00 00 48 8b d6 48 8b cf e8 b7 ad 00 |A. ...H..H......|

000001c0 00 48 8d 15 c8 0b 0d 00 48 8d 8c 24 90 00 00 00 |.H......H..$....|

000001d0 c7 84 24 90 00 00 00 01 00 00 00 e8 f6 7b 03 00 |..$..........{..|

000001e0 cc 41 c7 46 10 04 00 00 00 eb 08 41 c7 46 10 02 |.A.F.......A.F..|

000001f0 00 00 00 48 8b 06 48 8d 15 bb ff 04 00 48 8b ce |...H..H......H..|

00000200



Mariuss-MacBook-Pro:~ mariusciobanu$ sudo fdisk /dev/disk0

Password:

Disk: /dev/disk0 geometry: 60801/255/63 [976773168 sectors]

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: 03 25 127 15 - 1023 254 63 [ 409640 - 685407680] XENIX /usr

3: 03 1023 254 63 - 1023 254 63 [ 685817320 - 1269544] XENIX /usr

*4: 03 1023 254 63 - 1023 254 63 [ 687088440 - 289684695] XENIX /usr

Mariuss-MacBook-Pro:~ mariusciobanu$ diskutil cs list

No CoreStorage logical volume groups found

Mariuss-MacBook-Pro:~ mariusciobanu$ sudo gpt -vv -r show /dev/disk0

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 685407680 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC

685817320 1269544 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

687086864 1576

687088440 289684695 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

976773135 32 Sec GPT table

976773167 1 Sec GPT header

Boot camp lost after upgrading to Yosemite from mountain lion

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