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 missing after upgrade

Odd that I waited so long to upgrade and Apple still hasn't fixed this. I wasn't even aware of this being an issue until I decided to use up my bandwidth and download the upgrade. Any help on how to get my Windows Back? A few work utilities are PC only.


MyMac:~ MyMac$ diskutil list

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *750.2 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_CoreStorage 719.0 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

4: Microsoft Basic Data 20.3 GB disk0s4

/dev/disk1

#: TYPE NAME SIZE IDENTIFIER

0: Apple_HFS My Pro *718.6 GB disk1

Logical Volume on disk0s2

B1482D1B-4399-47EA-8174-8D36F1B49DCF

Unlocked Encrypted

MyMac:~ MyMac$ diskutil cs list

CoreStorage logical volume groups (1 found)

|

+-- Logical Volume Group EAB54317-E0B3-40F2-8582-D28246F7C5DA

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

Name: My Pro

Status: Online

Size: 718999998464 B (719.0 GB)

Free Space: 18960384 B (19.0 MB)

|

+-< Physical Volume 2277B92E-D7C8-4D20-86A6-44F1C27576FA

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

| Index: 0

| Disk: disk0s2

| Status: Online

| Size: 718999998464 B (719.0 GB)

|

+-> Logical Volume Family 63BCADCB-5D17-4C81-B3BC-742C9BC311FB

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

Encryption Status: Unlocked

Encryption Type: AES-XTS

Conversion Status: Complete

Conversion Direction: -none-

Has Encrypted Extents: Yes

Fully Secure: Yes

Passphrase Required: Yes

|

+-> Logical Volume B1482D1B-4399-47EA-8174-8D36F1B49DCF

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

Disk: disk1

Status: Online

Size (Total): 718628716544 B (718.6 GB)

Conversion Progress: -none-

Revertible: Yes (unlock and decryption required)

LV Name: My Pro

Volume Name: My Pro

Content Hint: Apple_HFS

Posted on Apr 27, 2015 6:40 PM

Reply
25 replies

Apr 28, 2015 7:13 PM in response to 1011iData

THANK YOU FOR YOUR HELP!


MyMac:~ MyMac$ sudo gpt -vv -r show /dev/disk0

gpt show: /dev/disk0: mediasize=750156374016; sectorsize=512; blocks=1465149168

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 1465149167

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

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

1405976048 19532304

1425508352 39639040 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

1465147392 1743

1465149135 32 Sec GPT table

1465149167 1 Sec GPT header



MyMac:~ MyMac$ sudo fdisk /dev/disk0

Disk: /dev/disk0 geometry: 91201/255/63 [1465149168 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 - 1404296872] <Unknown ID>

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

4: 0C 1023 254 63 - 1023 254 63 [1425508352 - 39639040] Win95 FAT32L

Apr 28, 2015 7:44 PM in response to 1011iData

The gap between GPT3 and GPT4 is where a lost NTFS header is sitting.


Please download the following two utilities


Testdisk is available at http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step.

GPT Fdisk is available at http://sourceforge.net/projects/gptfdisk/.


Start Terminal from Applications -Utilities -> Terminal and run Testdisk from the directory where it is downloaded. For example, I have it in the Downloads directory,


ls ~/Downloads/testdisk-7.0-WIP/testdisk

/Users/MyName/Downloads/testdisk-7.0-WIP/testdisk


and I run it as

sudo ~/Downloads/testdisk-7.0-WIP/testdisk /dev/rdisk0


You should see a UI similar to https://imgur.com/a/PjmnK .

Apr 30, 2015 4:10 PM in response to Loner T

I tried to follow the images on https://imgur.com/a/PjmnK -


After it took almost 24 hours to do a scan, I got to the 'Deeper Search'. That ran another 24 hours... after that, I continued until I got back to what looks like the main menu. I went to disk utility and saw disk0s4 - So I rebooted the computer and held the option key down to try to boot to windows. No windows partition found.


Did I do something wrong? or am I out of luck?




Thanks again. iD

Apr 30, 2015 5:19 PM in response to 1011iData

Testdisk allows you to inspect partitions that are recoverable. It does not fix any issues. Once you finish Deeper Search, the list of partitions need to be inspected using 'P - List Files' option to check if any of the partitions listed may be viable and contain the correct Windows header. Unfortunately, you will have to get to this list, before any further recovery is possible. Can you post a screen shot of the list of partitions as displayed after the Deeper Search completes? Please stop at this point and post back here.

May 1, 2015 5:37 PM in response to Loner T

Hey Loner T.


Thanks for your continued support...


xxxxxxxxxxxxxxxxxxxxxxx

FIRST SCREEEN

xxxxxxxxxxxxxxxxxxxxxxx

User uploaded file

I Pressed Enter to Continue

xxxxxxxxxxxxxxxxxxxxxxx

Second Screen

xxxxxxxxxxxxxxxxxxxxxxx

User uploaded file

I can scroll between the EFI, MS Data, and Mac HFS. The very last line changes for each one I select - I included in brackets above.


Which one do I select and what do I press?



iD

May 1, 2015 6:28 PM in response to 1011iData

Your GPT3 (aka Recovery HD) ends at 1405976048 . The other clue is the gap is 19532304 and 39639040 which adds up to 59171344 sectors (one sector is 512-bytes each) and the two MS Data entries are 59170809. I suggest you select the second MS Data entry and enter 'P' to list files.


Here is a table which lays the numbers out.


User uploaded file

May 2, 2015 5:46 AM in response to 1011iData

Leave your Testdisk display and start a new Terminal Window. You need to use the following steps.


If you see any error messages during the following steps, please stop and post back here with the error message. The following steps have values from your Testdisk output (and you can verify) in Steps 7 and 8.


Rebuild GPT4 using start/end offsets


  1. Sudo gdisk /dev/rdisk0
  2. P (print the full list of parts)
  3. D (delete)
  4. 4 (part 4)
  5. N (new part)
  6. 4 (part 4)
  7. 1405976048 - Start offset in bytes (start point for Bootcamp part)
  8. +59170809 (Size offset as opposed to End offset)
  9. 0700 (Windows part type)
  10. P (print list of all parts just to see what changes will be made)
  11. W (Write the new GPT)
  12. Y (Yes! really write the new GPT)

This will delete and re-write the GPT partition info for /dev/disk0s4.


Rebuild MBR to match the new GPT information thus resetting the Hybrid MBR. Use defaults for other questions (like partition codes). The only values that need modifications are the Boot flags and step 10. Accept all other defaults that Gdisk offers.

  1. Sudo gdisk /dev/disk0
  2. P (Print list of parts)
  3. R (Recover)
  4. H (chooses Hybrid)
  5. O (print current Hybrid MBR)
  6. Partitions numbers to be hybridized: 2 3 4
  7. Y (Good for GRUB question)
  8. N (part 2 boot flag)
  9. N (part 3 boot flag)
  10. Y (part 4 boot flag make NTFS bootable partition)
  11. O (print current Hybrid MBR)
  12. W (Write the new MBR)
  13. Y (Yes! write the new MBR)
  14. Reboot


Here is sample Q&A for this section. Please notice the Press Enter/Return.


Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N): Y


Creating entry for GPT partition #2 (MBR partition #2)

Enter an MBR hex code (default AF): Press Enter/Return

Set the bootable flag? (Y/N): N


Creating entry for GPT partition #3 (MBR partition #3)

Enter an MBR hex code (default AB): Press Enter/Return

Set the bootable flag? (Y/N): N


Creating entry for GPT partition #4 (MBR partition #4)

Enter an MBR hex code (default 07): Press Enter/Return

Set the bootable flag? (Y/N): Y


Test 1 - Does Bootcamp Volume show up in Finder?

Test 2 - Can you see files in Bootcamp Volume?

Test 3 - Can you select Bootcamp in System Preferences -> Startup Disk?

Test 4 - If Test 3 is successful, select Bootcamp and Click Restart.

May 2, 2015 7:24 PM in response to Loner T

gpt show: /dev/disk0: mediasize=750156374016; sectorsize=512; blocks=1465149168

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 1465149167

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

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

1405976048 59170809 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

1465146857 2278

1465149135 32 Sec GPT table

1465149167 1 Sec GPT header





---------




Disk: /dev/disk0 geometry: 91201/255/63 [1465149168 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: AF 25 127 15 - 1023 254 63 [ 409640 - 1404296872] HFS+

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

*4: 07 1023 254 63 - 1023 254 63 [1405976048 - 59170809] HPFS/QNX/AUX

Boot Camp missing after upgrade

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