Q: Bootcamp Disappeared After new iOS Update
Just come to use Windows again, and it seems that the boot partition has disappeared after updating to the latest iOS.
Jamess-MBP:~ jamessimpson$ diskutil list /dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *251.0 GB disk0 1: EFI EFI 209.7 MB disk0s1 2: Apple_CoreStorage Macintosh HD 210.1 GB disk0s2 3: Apple_Boot Recovery HD 650.0 MB disk0s3 4: Microsoft Basic Data BOOTCAMP 20.0 GB disk0s4 /dev/disk1 (internal, virtual): #: TYPE NAME SIZE IDENTIFIER 0: Apple_HFS Macintosh HD +209.8 GB disk1 Logical Volume on disk0s2 99A6AC9D-698D-4CD2-8130-BE4566B3CFCD Unlocked Encrypted Jamess-MBP:~ jamessimpson$ sudo fdisk /dev/disk0s4 Disk: /dev/disk0s4 geometry: 2431/255/63 [39061504 sectors] Signature: 0xAA55 Starting Ending #: id cyl hd sec - cyl hd sec [ start - size] ------------------------------------------------------------------------ 1: 4F 335 10 2 - 327 84 13 [1936269394 - 1836016416] QNX 4.2 Ter 2: 73 371 114 37 - 256 101 36 [1917848077 - 544437093] <Unknown ID> 3: 2B 364 116 50 - 372 65 44 [1818575915 - 544175136] <Unknown ID> 4: 61 372 101 51 - 269 114 52 [2844524554 - 54974] SpeedStor Jamess-MBP:~ jamessimpson$ sudo gpt -v -r show /dev/disk0s4 gpt show: /dev/disk0s4: mediasize=19999490048; sectorsize=512; blocks=39061504 gpt show: unable to open device '/dev/disk0s4': Undefined error: 0 Jamess-MBP:~ jamessimpson$ sudo gpt -v -r show /dev/disk0 gpt show: /dev/disk0: mediasize=251000193024; sectorsize=512; blocks=490234752 gpt show: /dev/disk0: Suspicious MBR at sector 0 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 410429680 2 GPT part - 53746F72-6167-11AA-AA11-00306543ECAC 410839320 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC 412108856 39063496 451172352 39061504 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 490233856 863 490234719 32 Sec GPT table 490234751 1 Sec GPT header
MacBook Pro with Retina display, OS X El Capitan (10.11.3)
Posted on Mar 7, 2016 11:27 AM
Install GPT Fdisk (aka gdisk). 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. Please notice the'+' sign in step 8 (this is called offset notation). The text in parentheses is for informational purpose to describe the action being taken. Gdisk has one-character commands except when entering numbers.
Rebuild GPT4 using start/end offsets
- Sudo gdisk /dev/rdisk0
- P (print the full list of parts)
- D (delete)
- 4 (part 4)
- N (new part)
- 4 (part 4)
- 416886784 ( - Start offset in sectors or the start point for Bootcamp part)
- +73347065 ( - Size offset, as opposed to End offset)
- 0700 (Windows part type)
- P (print list of all parts just to see what changes will be made)
- W (Write the new GPT)
- 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. Please see the sample Q&A as an example. These steps can be repeated if you make a mistake before you get to Step 12, otherwise start from Step 1 for these steps. Step 6 has numbers which are typed with a space between the numbers. Please see the sample Q&A before you execute these steps.
- Sudo gdisk /dev/rdisk0
- P (Print list of parts)
- R (Recover)
- O (print current Hybrid MBR)
- H (chooses Hybrid)
- Partitions numbers to be hybridized: 2 3 4
- Y (Good for GRUB question)
- N (part 2 boot flag)
- N (part 3 boot flag)
- Y (part 4 boot flag make NTFS bootable partition)
- O (print current Hybrid MBR)
- W (Write the new MBR)
- Y (Yes! write the new MBR)
- 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.
Posted on Mar 12, 2016 7:12 AM

