After resizing my HFS partition (to solve a case sensitive/insensitive problem) I found out my BOOTCAMP partition was no longer accessible. As I navigate the web, I found out this is a common issue and there are several pages describing possible solutions.
Most of them begin by asking the user to analyse the output from the following commands:
sudo gpt -r -vv show disk0
gpt show: disk0: mediasize=750156374016; sectorsize=512; blocks=1465149168
gpt show: disk0: PMBR at sector 0
gpt show: disk0: Pri GPT at sector 1
gpt show: disk0: Sec GPT at sector 1465149167
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 1063995800 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
1064405440 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
1065674976 1269536 4 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
1066944512 398202880 5 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
1465147392 1743
1465149135 32 Sec GPT table
1465149167 1 Sec GPT header
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 - 1465149167] <Unknown ID>
2: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
diskutil list
dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *750.2 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 544.8 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
4: Apple_Boot 650.0 MB disk0s4
5: Microsoft Basic Data BOOTCAMP 203.9 GB disk0s5
My question is, how can fdisk and gpt show different partition configurations?
Also do you think my BOOTCAMP partition is recoverable?
My laptop is an early 2011 Macbook Pro (quad i7) running El Capitan and Windows 10 64bit in bootcamp (upgraded from windows 7).
The procedure that led to this state was:
- Resize Macintosh HFS+ partition to half its size
- Created a new HFS+ non case sensitive partition between the original and bootcamp.
- Mirrored the original partition to the new one.
- Formatted the original partition case insensitive.
- Mirrored the new partition to the original one.
- Deleted the new partition.
- Resized the original HFS partition to occupy the whole space.
Thanks in advance for your help.