Q: update to Capitan corrupted bootcamp
Loner, (continuing from Re: Bootcamp gone haywire after Yosemite update)
I'm facing the same problem when I updated to OS X EI Capitan. Below is my setting
prashanths-MacBook-Pro:meanHelloWorld pranag$ sudo gdisk /dev/disk0
Password:
Sorry, try again.
Password:
GPT fdisk (gdisk) version 1.0.1
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
NOTE: Write test failed with error number 1. It will be impossible to save
changes to this disk's partition table!
You may need to deactivate System Integrity Protection to use this program. See
https://www.quora.com/How-do-I-turn-off-the-rootless-in-OS-X-El-Capitan-10-11
for more information.
Partition table scan:
MBR: hybrid
BSD: not present
APM: not present
GPT: present
Found valid GPT with hybrid MBR; using GPT.
Command (? for help): p
Disk /dev/disk0: 976773168 sectors, 465.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 0000136E-5E53-0000-413D-0000E64A0000
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 195508533 sectors (93.2 GiB)
Number Start (sector) End (sector) Size Code Name
1 40 409639 200.0 MiB EF00 EFI system partition
2 409640 291229631 138.7 GiB AF05 Macintosh HD
3 291229632 292499167 619.9 MiB AB00 Recovery HD
4 488007680 976773119 233.1 GiB 0700 BOOTCAMP
Command (? for help): d
Partition number (1-4): 4
Command (? for help): n
Partition number (4-128, default 4): 4
I ran the test Disk and it gives the below selections
Select a media (use Arrow keys, then press Enter):
Disk /dev/disk0 - 500 GB / 465 GiB (RO)
>Disk /dev/rdisk0 - 500 GB / 465 GiB (RO)
Disk /dev/rdisk1 - 148 GB / 138 GiB (RO)
I selected rdisk0
Below is what it shows
Write access for this media is not available.
TestDisk won't be able to modify it.
- No partition from this disk must be mounted:
Open the Disk Utility (In Finder -> Application -> Utility folder)
and press Unmount button for each volume from this disk
- This media may be physically write-protected, check the jumpers.
>[ Continue ] Continue even if write access isn't available
[ Quit ] Return to disk selection
What do I do?
MacBook Pro, iOS 9.1
Posted on Nov 29, 2015 9:06 AM
pranag wrote:
How do I go from here?
Do I use this command? do I have the correct numbers?
sudo gdisk /dev/disk0
p
d
4
n
4
292499456
+684273657
0700
p
w
y
You need to use a "+" sign to indicate offset, not absolute end position. This will rebuild only the GPT. You will also need to rebuild the MBR once the GPT is corrected.
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 Nov 29, 2015 12:03 PM





