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

Bootcamp disk0s4 gone after Yosemite update

Hey everybody. Got a question for Loner_T.


I'm in the same boat, changed my BootCamp partition size and ended up not being able to boot it anymore since upgrading to Yosemite.


I'd like to know if I should go with the testdisk, GDT fdisk, gdisk solution or not. I'm stuck at actually identifying the correct start/end of my BC partition and I'm really looking to redo the whole partition and reinstall Windows 7. Btw, if I recover the partition, will I not have the same problem when I upgrade from Yosemite to the next OS X iteration?


Here's what I have so far:


MacBook-Pro-de-Michel:~ MB$ diskutil list

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *256.1 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_CoreStorage 150.5 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

4: Microsoft Basic Data 75.0 GB disk0s4

/dev/disk1

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *500.1 GB disk1

1: EFI EFI 209.7 MB disk1s1

2: Apple_HFS Macintosh HD 499.2 GB disk1s2

/dev/disk2

#: TYPE NAME SIZE IDENTIFIER

0: Apple_HFSX Intel SSD *150.2 GB disk2

Logical Volume on disk0s2

61D35AC9-DB5E-4E37-8540-F570E91DD3E2

Unencrypted

MacBook-Pro-de-Michel:~ MB$ diskutil cs list

CoreStorage logical volume groups (1 found)

|

+-- Logical Volume Group C666E211-D5E4-4B60-9D48-1C40DC8F333D

=========================================================

Name: Intel SSD

Status: Online

Size: 150549417984 B (150.5 GB)

Free Space: 18993152 B (19.0 MB)

|

+-< Physical Volume E7EF901D-7E54-49D8-8E26-334A69FF9FFC

| ----------------------------------------------------

| Index: 0

| Disk: disk0s2

| Status: Online

| Size: 150549417984 B (150.5 GB)

|

+-> Logical Volume Family 179EF81A-41F0-47D9-A480-256644BBEE18

----------------------------------------------------------

Encryption Status: Unlocked

Encryption Type: None

Conversion Status: NoConversion

Conversion Direction: -none-

Has Encrypted Extents: No

Fully Secure: No

Passphrase Required: No

|

+-> Logical Volume 61D35AC9-DB5E-4E37-8540-F570E91DD3E2

---------------------------------------------------

Disk: disk2

Status: Online

Size (Total): 150178103296 B (150.2 GB)

Conversion Progress: -none-

Revertible: Yes (no decryption required)

LV Name: Intel SSD

Volume Name: Intel SSD

Content Hint: Apple_HFSX

MacBook-Pro-de-Michel:~ MB$ sudo fdisk /dev/devdisk0

Password:

fdisk: /dev/devdisk0: No such file or directory

MacBook-Pro-de-Michel:~ MB$ sudo fdisk /dev/disk0

Disk: /dev/disk0 geometry: 31130/255/63 [500118192 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: AC 1023 254 63 - 1023 254 63 [ 409640 - 294041832] <Unknown ID>

3: AB 1023 254 63 - 1023 254 63 [ 294451472 - 1269536] Darwin Boot

*4: 07 1023 254 63 - 1023 254 63 [ 353634304 - 146483200] HPFS/QNX/AUX

MacBook-Pro-de-Michel:~ MB$ sudo gpt -vv -r show /dev/disk0

gpt show: /dev/disk0: mediasize=256060514304; sectorsize=512; blocks=500118192

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 500118191

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 294041832 2 GPT part - 53746F72-6167-11AA-AA11-00306543ECAC

294451472 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

295721008 57913296

353634304 146483200 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

500117504 655

500118159 32 Sec GPT table

500118191 1 Sec GPT header

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

00000000 a0 b5 69 e9 6b e0 af 8f 71 55 59 c9 e2 4f ab 1b |..i.k...qUY..O..|

00000010 3e cc 0c f9 66 6b cc ca ca 9a 99 2f 17 15 35 8b |>...fk...../..5.|

00000020 fe cd 9f 0e f4 e1 a5 85 90 59 8a f8 59 a3 55 2b |.........Y..Y.U+|

00000030 27 ff bb 2d 83 85 55 8a 8b e4 a2 13 52 85 f1 e2 |'..-..U.....R...|

00000040 5e d0 de 47 73 12 94 94 b0 cd a5 ba a3 6e 22 88 |^..Gs........n".|

00000050 1f 80 86 7c d5 ca 45 22 67 ff 0f c2 5b e3 ed ea |...|..E"g...[...|

00000060 cc 3b 3a b0 42 85 30 a6 fb ed 49 c6 2b 60 ef 70 |.;:.B.0...I.+`.p|

00000070 ee f5 8f c3 49 09 7b 9a 6a 0b 7f ac 02 ed 4b d0 |....I.{.j.....K.|

00000080 15 b0 4c d8 dd 64 d9 f6 26 11 c4 17 10 a3 5c 33 |..L..d..&.....\3|

00000090 69 fc 8b 79 af cf 1c 72 04 f4 88 85 4a 54 2a 0c |i..y...r....JT*.|

000000a0 bc f6 cf eb 6b ea 89 76 44 ff d5 75 ab 64 f1 d6 |....k..vD..u.d..|

000000b0 01 89 37 4c 2e 02 fb 87 52 7b 8d a5 44 60 db d2 |..7L....R{..D`..|

000000c0 6e 72 f7 18 93 e8 9f 91 b2 42 4c 1a 37 b7 b5 e4 |nr.......BL.7...|

000000d0 db a1 3d 20 3e 40 2c 3b ca 5d 1a af 09 fc 23 b3 |..= >@,;.]....#.|

000000e0 a8 1a e4 af 90 a1 1f c5 7c 8b a5 67 3f 4e 97 02 |........|..g?N..|

000000f0 fa 3b 3a 94 24 71 dc be 87 1c 5f 8e 02 d8 17 7c |.;:.$q...._....||

00000100 1c 42 85 e2 b8 e8 37 64 eb 67 41 3a 7b 80 85 96 |.B....7d.gA:{...|

00000110 65 62 fe 6c 45 96 65 fd 76 60 df 60 bf 10 1f 12 |eb.lE.e.v`.`....|

00000120 71 9b 16 2e 71 bc 15 d4 4f d0 8b 7f ec ac 17 f1 |q...q...O.......|

00000130 bb 0f fe 3c ed b3 cc 88 f5 cd 3c f6 95 76 a2 88 |...<......<..v..|

00000140 bf f8 c8 e2 00 c3 13 df cd bf 4c 59 81 dd bc 21 |..........LY...!|

00000150 fc 3f ff ff 2f 4c 99 2c 2e 0e 8d f2 45 e6 92 6e |.?../L.,....E..n|

00000160 6e 01 fa 7f b1 18 2b 13 c4 d8 7b d6 64 fe 7e 08 |n.....+...{.d.~.|

00000170 e8 cf cb 2a d4 1d 71 9c a4 60 b2 46 e9 ae d3 ef |...*..q..`.F....|

00000180 63 45 97 f8 d2 8b 7f 28 fc 6e a4 de 25 f2 97 03 |cE.....(.n..%...|

00000190 7f fb 04 cd ca a5 7a a4 4a 80 6f 16 76 60 32 41 |......z.J.o.v`2A|

000001a0 c5 a4 bf cd 7d 34 77 11 2a a5 10 cd ba 99 28 88 |....}4w.*.....(.|

000001b0 75 6f 88 fa f9 0b 28 3f 54 a4 8a 92 c4 5e 5e e0 |uo....(?T....^^.|

000001c0 92 cf a3 00 ff fc 72 dc 63 40 c6 65 3d 12 bd 96 |......r.c@.e=...|

000001d0 ce ad 06 f6 06 aa ee 9f 62 34 f3 e9 57 2a 53 d4 |........b4..W*S.|

000001e0 46 a4 0b b1 ee 6e 31 8a 67 a0 39 55 57 41 f9 ab |F....n1.g.9UWA..|

000001f0 65 15 65 42 fe 91 9b 9c 4e 64 c5 3d a2 7e ad b6 |e.eB....Nd.=.~..|

00000200


The highlighted partition is the one where my Windows 7 files are:

User uploaded file

Now, I've read some threads that you posted on, but I'm still unsure what I should input in GDT fdisk and gdisk.


Thanks.

MacBook Pro (15-inch Mid 2012), OS X Yosemite (10.10.1)

Posted on Dec 16, 2014 10:59 AM

Reply
Question marked as Best reply

Posted on Dec 16, 2014 11:55 AM

1. Use Testdisk to locate the 'lost' NTFS header in the gap between GPT3 and GPT4.

2. Once located, GPT4 is deleted/recreated using GPT Fdisk (aka gdisk).

3. The gap between GPT3 and GPT4 seems to indicate a resized Windows partition using either a third-party tool, or Disk Utility and GPT/MBR manipulation.

4. The Gap + GPT4 are 204396496 sectors (roughly 102+GB).

5. Windows resizing is not recommended/supported by BCA when using the Hybrid MBR method (pure EFI/GPT are resizeable and are support on 2013+ Macs).

6. Yosemite causes problems, because there is a deleted NTFS header prior to resizing, and a new one. It uses the older version and causes a gap and causes problems. If you do not resize Windows, once it is fixed now, future versions will respect the current configuration since GPT and MBR will be in sync. It is difficult to predict what Apple BC engineers will do next in BC. There is enough feedback from myself alone on the subject. 😉

33 replies

Dec 18, 2014 1:43 PM in response to Tyysker

There is a different method which may work better.


1. Using http://windows.microsoft.com/en-us/windows7/create-a-system-repair-disc, create a System Repair Disk. It requires a blank DVD.

2. Use http://windows.microsoft.com/en-us/windows/what-are-system-recovery-options#what -are-system-recovery-options=windows-7 to run Startup Repair from the DVD created in Step 1.

Dec 19, 2014 5:44 AM in response to Loner T

I loaded System Recovery Tools and selected Command prompt and those where my inputs from X drive:


c:

bootrec /fixmbr

Operation completed succesfully.

bootrec /fix boot

Operation completed succesfully.


Restarted. Selected Windows to boot. Saw the Windows boot screen.


I still think that it would have taken 30 mins if we had done it by chat/ventrilo. I'm glad you were there and very helpful.


The only thing that I still need to do is to recreate my OS X recovery partition. I do this by holding Command+R key during boot, right?

Dec 19, 2014 5:55 AM in response to Tyysker

Tyysker wrote:


The only thing that I still need to do is to recreate my OS X recovery partition. I do this by holding Command+R key during boot, right?

We left your Recovery HD untouched. If Command+R while powering up brings up Recovery without a spinning globe, it is local Recovery. If you see a spinning globe, then your Recovery HD is not working and it is falling back to Internet Recovery. Please check.

Dec 19, 2014 6:02 AM in response to Loner T

Loner T wrote:

We left your Recovery HD untouched. If Command+R while powering up brings up Recovery without a spinning globe, it is local Recovery. If you see a spinning globe, then your Recovery HD is not working and it is falling back to Internet Recovery. Please check.


I wrote that because I used to see the Recovery partition when holding Option-key and now only OS X and Windows appear.


I check that out and post back.

Dec 19, 2014 11:07 AM in response to Loner T

Loner T wrote:

We left your Recovery HD untouched. If Command+R while powering up brings up Recovery without a spinning globe, it is local Recovery. If you see a spinning globe, then your Recovery HD is not working and it is falling back to Internet Recovery. Please check.


I checked the Recovery partition by holding Command+R. There was no spinning globe and noticed that my Recovery partition is 1.29 GB, although I cannot see it in the booting screen when holding Option-key or in OS X Disc Utility.

Dec 19, 2014 1:53 PM in response to Tyysker

Tyysker wrote:


I checked the Recovery partition by holding Command+R. There was no spinning globe and noticed that my Recovery partition is 1.29 GB, although I cannot see it in the booting screen when holding Option-key or in OS X Disc Utility.

The size is incorrect and points to a Netboot (aka Internet Recovery). Your Recovery HD is 650MB as shown by the output of diskutil list ? If the Recovery HD is being lost as part of this exercise, that is not good. Do you get the same OSX version as currently installed on your internal disk? If Recovery offers you a version of OSX that is not your current version, there is an issue that I need to figure out.


If you have a good backup of OSX and Windows, can you try to re-install OSX?

Dec 19, 2014 5:28 PM in response to Loner T

I re-checked and saw that the Recovery HD has a disk drive with a globe on it. I also confirmed that if I reinstall OS X, it will be Yosemite, which is my current version.


Another thing also is that I think that my original BC partition was 75 GB instead of 104 GB. My SSD has 256 GB, so my 2 partitions are 150.55 GB for OS X and 104.65 GB for BC. With a 650 MB recovery partition, it seems to total 256 GB. Still, I think I should be able to see it.

Bootcamp disk0s4 gone after Yosemite update

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