a mismatch between the mbr and gpt partition maps is not supported

I tried installing OS X El Capitan over my OS Yosemite.

At restart, during the installation process, I got this message:

"A mismatch between the mbr and gpt partition maps is not supported."


I was left with restarting the Macbook, but I always get this error message at startup and I can no longer use OS X.


Note: I use bootcamp with Windows 10.

Accepted Reply

Found a solution that worked for me:


Yes. First, download gdisk (URL in the OP) and run the installer package. Then run gdisk from a terminal window and run the v (verify command). If verify indicates no problems, then you're good to go and can just type "q" to quit. However, if it shows something like this, then you have the problem:


sudo gdisk /dev/disk0

Command (? for help): v


Warning! Mismatched GPT and MBR partition! MBR partition 4, of type 0x07, has no corresponding GPT partition! You may continue, but this condition might cause data loss in the future!

Identified 1 problems!


Next, display the MBR partition table and make note of the start and end sectors for your BOOTCAMP partition. This should be partition 4 unless you've added additional partition(s), which is not officially supported by Boot Camp. It should show something like this:


Command (? for help): r

Recovery/transformation command (? for help): o


Disk size is 1953525168 sectors (931.5 GiB)

MBR disk identifier: 0x7C170CB2

MBR partitions:


Number Boot Start Sector End Sector Status Code

1 1 409639 primary 0xEE

2 409640 975693095 primary 0xAF

3 975693096 976962631 primary 0xAB

4 * 976963584 1952806911 primary 0x07


Next, display the GPT partition table information. Compare the start and end sectors for partition 4 to the MBR partition 4 start and end sectors. Most likely the start sectors will match, but the end sectors will be different.


Recovery/transformation command (? for help): m

Command (? for help): p


Number Start (sector) End (sector) Size Code Name

1 40 409639 200.0 MiB EF00 EFI System Partition

2 409640 975693095 465.1 GiB AF00 Customer

3 975693096 976962631 619.9 MiB AB00 Recovery HD

4 976963584 1953523711 465.7 GiB 0700 BOOTCAMP


Next, delete the GPT partition 4. (Note: this does not delete the actual partition from disk. It only deletes gdisk's in-memory representation of the GPT).


Command (? for help): d

Partition number (1-4): 4


Now, create a new partition 4 using the start and end sector values from the MBR partition 4.


Command (? for help): n

Partition number (4-128, default 4): 4

First sector (34-1953525134, default = 976962632) or {+-}size{KMGTP}: 976963584

Last sector (976963584-1953525134, default = 1953525134) or {+-}size{KMGTP}: 1952806911

Current type is 'Apple HFS/HFS+'

Hex code or GUID (L to show codes, Enter = AF00): 0700

Changed type of partition to 'Microsoft basic data'


Now, change the name of the new partition 4 to BOOTCAMP:


Command (? for help): c

Partition number (1-4): 4

Enter name: BOOTCAMP


Run the verify command. It should report no problems. If it still reports a problem, quit (q command) and start over.


Command (? for help): v


If everything checks out, write new partition table to disk and exit.


Command (? for help): w


Reboot and test your dual boot setup to verify all is working correctly.

Replies

Haven't found the reason on mine yet, but I can only log on in safe mode. Regular boot, screen goes crazy then I get a message saying the system restarted due to an error. Then I get the power on/off symbol.

Same issue here on an Early 2013 rMBP. During the installation process it warned me about an MBR/GPT partition conflict, but installation seemed to continue. Now, I get a kernal panic roughly 75% of the way through the boot process, and can only start in safe mode.


I'm removing my Boot Camp partition and will re-attempt the install to see if that resolves the issue.

I managed to recover to OS X Yosemite by deleting the OS X El Capitan installation folder.

Has anyone found a solution for this error?

I also got this error trying to install over Yosemite, with a win 7 bootcamp.


i Luckyly have gotten my normal instal back after i made a health check with diskutillity with came with an error but no surlution.

Found a solution that worked for me:


Yes. First, download gdisk (URL in the OP) and run the installer package. Then run gdisk from a terminal window and run the v (verify command). If verify indicates no problems, then you're good to go and can just type "q" to quit. However, if it shows something like this, then you have the problem:


sudo gdisk /dev/disk0

Command (? for help): v


Warning! Mismatched GPT and MBR partition! MBR partition 4, of type 0x07, has no corresponding GPT partition! You may continue, but this condition might cause data loss in the future!

Identified 1 problems!


Next, display the MBR partition table and make note of the start and end sectors for your BOOTCAMP partition. This should be partition 4 unless you've added additional partition(s), which is not officially supported by Boot Camp. It should show something like this:


Command (? for help): r

Recovery/transformation command (? for help): o


Disk size is 1953525168 sectors (931.5 GiB)

MBR disk identifier: 0x7C170CB2

MBR partitions:


Number Boot Start Sector End Sector Status Code

1 1 409639 primary 0xEE

2 409640 975693095 primary 0xAF

3 975693096 976962631 primary 0xAB

4 * 976963584 1952806911 primary 0x07


Next, display the GPT partition table information. Compare the start and end sectors for partition 4 to the MBR partition 4 start and end sectors. Most likely the start sectors will match, but the end sectors will be different.


Recovery/transformation command (? for help): m

Command (? for help): p


Number Start (sector) End (sector) Size Code Name

1 40 409639 200.0 MiB EF00 EFI System Partition

2 409640 975693095 465.1 GiB AF00 Customer

3 975693096 976962631 619.9 MiB AB00 Recovery HD

4 976963584 1953523711 465.7 GiB 0700 BOOTCAMP


Next, delete the GPT partition 4. (Note: this does not delete the actual partition from disk. It only deletes gdisk's in-memory representation of the GPT).


Command (? for help): d

Partition number (1-4): 4


Now, create a new partition 4 using the start and end sector values from the MBR partition 4.


Command (? for help): n

Partition number (4-128, default 4): 4

First sector (34-1953525134, default = 976962632) or {+-}size{KMGTP}: 976963584

Last sector (976963584-1953525134, default = 1953525134) or {+-}size{KMGTP}: 1952806911

Current type is 'Apple HFS/HFS+'

Hex code or GUID (L to show codes, Enter = AF00): 0700

Changed type of partition to 'Microsoft basic data'


Now, change the name of the new partition 4 to BOOTCAMP:


Command (? for help): c

Partition number (1-4): 4

Enter name: BOOTCAMP


Run the verify command. It should report no problems. If it still reports a problem, quit (q command) and start over.


Command (? for help): v


If everything checks out, write new partition table to disk and exit.


Command (? for help): w


Reboot and test your dual boot setup to verify all is working correctly.

Found a solution that worked for me:


Yes. First, download gdisk (URL in the OP) and run the installer package. Then run gdisk from a terminal window and run the v (verify command). If verify indicates no problems, then you're good to go and can just type "q" to quit. However, if it shows something like this, then you have the problem:


sudo gdisk /dev/disk0

Command (? for help): v


Warning! Mismatched GPT and MBR partition! MBR partition 4, of type 0x07, has no corresponding GPT partition! You may continue, but this condition might cause data loss in the future!

Identified 1 problems!


Next, display the MBR partition table and make note of the start and end sectors for your BOOTCAMP partition. This should be partition 4 unless you've added additional partition(s), which is not officially supported by Boot Camp. It should show something like this:


Command (? for help): r

Recovery/transformation command (? for help): o


Disk size is 1953525168 sectors (931.5 GiB)

MBR disk identifier: 0x7C170CB2

MBR partitions:


Number Boot Start Sector End Sector Status Code

1 1 409639 primary 0xEE

2 409640 975693095 primary 0xAF

3 975693096 976962631 primary 0xAB

4 * 976963584 1952806911 primary 0x07


Next, display the GPT partition table information. Compare the start and end sectors for partition 4 to the MBR partition 4 start and end sectors. Most likely the start sectors will match, but the end sectors will be different.


Recovery/transformation command (? for help): m

Command (? for help): p


Number Start (sector) End (sector) Size Code Name

1 40 409639 200.0 MiB EF00 EFI System Partition

2 409640 975693095 465.1 GiB AF00 Customer

3 975693096 976962631 619.9 MiB AB00 Recovery HD

4 976963584 1953523711 465.7 GiB 0700 BOOTCAMP


Next, delete the GPT partition 4. (Note: this does not delete the actual partition from disk. It only deletes gdisk's in-memory representation of the GPT).


Command (? for help): d

Partition number (1-4): 4


Now, create a new partition 4 using the start and end sector values from the MBR partition 4.


Command (? for help): n

Partition number (4-128, default 4): 4

First sector (34-1953525134, default = 976962632) or {+-}size{KMGTP}: 976963584

Last sector (976963584-1953525134, default = 1953525134) or {+-}size{KMGTP}: 1952806911

Current type is 'Apple HFS/HFS+'

Hex code or GUID (L to show codes, Enter = AF00): 0700

Changed type of partition to 'Microsoft basic data'


Now, change the name of the new partition 4 to BOOTCAMP:


Command (? for help): c

Partition number (1-4): 4

Enter name: BOOTCAMP


Run the verify command. It should report no problems. If it still reports a problem, quit (q command) and start over.


Command (? for help): v


If everything checks out, write new partition table to disk and exit.


Command (? for help): w


Reboot and test your dual boot setup to verify all is working correctly.

how? from where?

Thank you for this solution.

In my case, I was not abble to reboot on Mac OSX. Using the option button on boot, my choices was between the installer and windows.

- so I boot on windows,

- download the gdisk for mac (http://sourceforge.net/projects/gptfdisk/files/gptfdisk/1.0.0/gdisk-binaries/gdisk-1.0.0.pkg/download) on my C:\ drive

- reboot on the installer and let it crash

- on the menu bar, launched the terminal

- install gdisk :

# installer -pkg /Volumes/BOOTCAMP/gdisk-1.0.0.pkg /Volumes/Macintosh\ HD

- chroot :

# mount -t devfs none /Volumes/Macintosh\ HD/dev

# chroot /Volumes/Macintosh\ HD

- run gdisk

# gdisk /dev/disk0


And follow your steps.

Probably there is a way to reboot on mac os x after the crash but I don't know it and my first idea was the chroot.

The "installer -pkg /Volumes/BOOTCAMP/gdisk-1.0.0.pkg /Volumes/Macintosh\ HD" line was missing "-target", so it should be:


installer -pkg /Volumes/<LOCATION>/gdisk-1.0.0.pkg -target /Volumes/Macintosh\ HD


Otherwise, thank you KDParker& Frantz. I have now fixed the MBR/GPT and I've begun the re-install of OSX again. Hopefully this time it will work.

I don't see how you can use gdisk. I've downloaded and it states it is not compatible with my OS version. You have a different link.


Interesting when I reboot and use to see volumes, BootCamp is present. However, it is locked. I cannot do anything with it right now and it's distressing.

I am getting the message that gdisk is not compatible; it's the latest release as far as I can see.

I too have a problem trying to upgrade to Yosemite. Tried doing this but when I got MBR table it showed 3 MBR partitions and the GPT table showed 4, the 4th one being BOOTCAMP. What do I do if I don't have same number of partitions in MBR and GPT tables?

I have the same issue. Gdisk seems to be unusable on El Capitan. The installation fails. How are others doing this?