Windows portion disappeared after updating to El Captain
I updated to El Capitan 10.11.1 and my windows 7 partition was no longer available. I followed the instructions provided by others in other threads but I have come up on a problem.I get a line that says;
GPT partition #4 does not exist or is too big; skipping.
Unused partition space(s) found. Use one to protect more partitions? (Y/N):
I don't know where to go from here. Any help would be awesome. Thanks
I followed the steps that Loner T posted in another thread;
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)
- 509906944 ( - Start offset in sectors or the start point for Bootcamp part)
- +115234809 ( - 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 thesample 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.
The first part worked fine, but when I got the the second part (rewriting the GPT partition) it wants to skip partition 4 and use one to protect more partitions. Anyway to fix this? When I finished the first part, I accidentally closed the terminal window, so I don't have the terminal log for it.
Amy-McCallums-MacBook-Pro:~ amym$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *320.1 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_CoreStorage Macintosh HD 260.0 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
/dev/disk1 (internal, virtual):
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS Macintosh HD +259.6 GB disk1
Logical Volume on disk0s2
3D9C724C-CCED-4C21-83CD-421473313648
Unencrypted
Amy-McCallums-MacBook-Pro:~ amym$ diskutil cs list
CoreStorage logical volume groups (1 found)
|
+-- Logical Volume Group 38E5FB14-BDF8-4EE3-8EF9-54DCC3C280B2
=========================================================
Name: Macintosh HD
Status: Online
Size: 259999997952 B (260.0 GB)
Free Space: 18948096 B (18.9 MB)
|
+-< Physical Volume 863B5F1B-95E4-4246-B596-380BF70AE238
| ----------------------------------------------------
| Index: 0
| Disk: disk0s2
| Status: Online
| Size: 259999997952 B (260.0 GB)
|
+-> Logical Volume Family 629683C2-D6A0-44AA-B605-89C042EF02F7
----------------------------------------------------------
Encryption Type: None
|
+-> Logical Volume 3D9C724C-CCED-4C21-83CD-421473313648
---------------------------------------------------
Disk: disk1
Status: Online
Size (Total): 259628728320 B (259.6 GB)
Revertible: Yes (no decryption required)
LV Name: Macintosh HD
Volume Name: Macintosh HD
Content Hint: Apple_HFS
Amy-McCallums-MacBook-Pro:~ amym$ sudo gpt -vv -r show /dev/disk0
Password:
gpt show: /dev/disk0: mediasize=320072933376; sectorsize=512; blocks=625142448
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 625142447
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 507812496 2 GPT part - 53746F72-6167-11AA-AA11-00306543ECAC
508222136 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
509491672 115650743
625142415 32 Sec GPT table
625142447 1 Sec GPT header
Amy-McCallums-MacBook-Pro:~ amym$ Sudo gdisk /dev/rdisk0
GPT fdisk (gdisk) version 1.0.1
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
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/rdisk0: 625142448 sectors, 298.1 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 00002861-323A-0000-4466-0000973F0000
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 625142414
Partitions will be aligned on 8-sector boundaries
Total free space is 115650749 sectors (55.1 GiB)
Number Start (sector) End (sector) Size Code Name
1 40 409639 200.0 MiB EF00 EFI system partition
2 409640 508222135 242.1 GiB AF05 Macintosh HD
3 508222136 509491671 619.9 MiB AB00 Recovery HD
Command (? for help): r
Recovery/transformation command (? for help): o
Disk size is 625142448 sectors (298.1 GiB)
MBR disk identifier: 0x000019D8
MBR partitions:
Number Boot Start Sector End Sector Status Code
1 1 409639 primary 0xEE
2 409640 508222135 primary 0xAC
3 508222136 509491671 primary 0xAB
Recovery/transformation command (? for help): h
WARNING! Hybrid MBRs are flaky and dangerous! If you decide not to use one,
just hit the Enter key at the below prompt and your MBR partition table will
be untouched.
Type from one to three GPT partition numbers, separated by spaces, to be
added to the hybrid MBR, in sequence: 2 3 4
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):
Set the bootable flag? (Y/N): n
Creating entry for GPT partition #3 (MBR partition #3)
Enter an MBR hex code (default AB):
Set the bootable flag? (Y/N): n
GPT partition #4 does not exist or is too big; skipping.
Unused partition space(s) found. Use one to protect more partitions? (Y/N):
Any help would be greatly appreciated. If it makes a difference, before I had updated to El Capitan, I had changed the partition size of the windows partition.
OSX El Capitan 10.11.1
MacBook Pro 13 inch, early 2011
MacBook Pro (13-inch Early 2011), OS X El Capitan (10.11.1)