I'm following this question and trying to install Debian on my MacBook. I've lost that account so I couldn't accept that guy's answer (I'm sorry, I'll not loose this one).

So, I followed with his first recommendation, and I've found that my disk is in the MBR format (the disk management tool said "partition style: master boot record"). But the article does not explain how to identify if I'm running in a BIOS based computer or an EFI.

In my disk management tool I've found this:


As you can see, I have bootcamp, which is where my Windows is located, I have HD (A) which is where I used to store OS X but then I've formatted it with windows, and now I only store files. I've already free'd 27Gb to install Debian, but some things got me worried.

First of all, why HD(A) and my shrinked space (27gb) appears as an extended partition? Is it because there were already 3 partitions, and when windows created this new one, since MBR only supports 4 partitions, it created an extended one so I could break it down in many others? Will there be any problems to install linux inside this 'extended partition'?

The answer also tells me to verify how my disk is partioned. Well, shouldn't this link verify the partition, and not the boot mode?

If everything goes ok, I'll use just Debian and format the other partitions to install windows 10 in the future.

What does that first partition called "GPT protective partition" means? Does it means that I'm botting from EFI, since its called GPT? And that 620Mb partition, what does that mean?

If I'm on EFI, then I can be sure I'm running on hybrid MBR?

Sorry by all these questions, I'm really really confused. I've found information about GPT and MBR but I'm really afraid of killing my computer while trying to do this.

  • Try not to lose track of your account (register instead of posting as an unregistered user) so you can comment, benefit from reputation increases, and most importantly acknowledge those who have taken the time to help you like Rod Smith on that question. – Karan Apr 23 '15 at 8:23
  • @Karan yeah, I'm sorry for him, he really helped me and I couldn't acknowledge his answer :( – Rafaelo Miguelo Apr 23 '15 at 8:28
  • Yeah, and he's a real expert who's also the developer of rEFInd, gdisk etc. If you register you can then go to the contact page and select "I need to merge user profiles" to regain access to the other account. – Karan Apr 23 '15 at 8:31
  • The first partition in Disk Management says it's GPT. Where did you learn that you had MBR? – TheWanderer Apr 23 '15 at 13:52
  • @Zacharee1 it says here: imgur.com/MGomloj I think, then, that windows sees the disk as MBR because it's an hybrid MBR? Then how can I convert windows to normal MBR? – Rafaelo Miguelo Apr 23 '15 at 15:52


Your partitioning data is suspicious, and might indicate an extremely dangerous configuration. I can't be sure of that, but if my suspicions are correct, you could easily trash the whole disk the next time you try to make any changes to the partition table -- or maybe even just in normal use.

To figure out what's going on, you need to look at the disk using my gdisk utility. You can use it in any OS. Simply launch it on the disk, like this:

$ sudo gdisk /dev/sda
GPT fdisk (gdisk) version 1.0.0

Partition table scan:
  MBR: hybrid
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with hybrid MBR; using GPT.

Command (? for help): q

If the MBR: line reads hybrid, as in the example, then your disk is in an extremely dangerous state and it's imperative that you fix it immediately. If the MBR: line reads MBR only, then you simply have some leftover naming issues from a conversion of the disk from GPT to MBR, and nothing is really wrong. In this second case, you can ignore the rest of this answer; but if MBR: reads hybrid, read on....

The rest of this answer assumes that you've got a hybrid MBR with extended and logical partitions on the MBR side. This configuration is dangerous because, to the best of my knowledge, no partitioning tool supports it. Worse, logical partitions require extra data structures (called Extended Boot Records, or EBRs) that fall outside of the space allocated for the partitions they describe (but inside the extended partition), and tools that do work with hybrid MBRs don't have any way to track these partitions. This inconsistency is a recipe for disaster, since the EBRs might be moved (perhaps to inside some GPT partition that's not in the hybrid MBR) if you try to partition using MBR-only tools, and if you use GPT tools (like OS X's Disk Utility or gdisk), you'll probably end up losing your logical partition definitions entirely.

Backing up a bit, hybrid MBRs are useful on Macs because Windows sees them as ordinary MBR disks but OS X sees them as ordinary GPT disks. This enables OS X (which boots using EFI from GPT disks) and Windows (which, on a Mac, boots in BIOS/CSM/legacy mode from MBR disks) to coexist. The biggest problem with this setup is if you use the standard Windows tools to repartition the disk; the Windows tools will adjust the MBR data structures but ignore the GPT data structures. The GPT data structures, though, are the primary ones; the MBR data structures are intended to simply mirror some of what's in the GPT for the benefit of Windows. My suspicion is that you made this mistake and created logical partitions on a hybrid MBR disk.

There are two possible solutions, depending on what else is on the disk, besides your Windows installation:

Solution 1: Windows Only

If Windows is the only OS on the disk, then the solution is (relatively) easy:

  1. Use an MBR-only partitioning tool to delete the type-0xEE partition from the MBR. Relatively old versions of Linux's fdisk are good for this task, but new versions understand GPT and so will show the GPT side, not the MBR side, of the disk. Ubuntu through at least version 14.04 ships with the old fdisk, so you can use an Ubuntu 14.04 live image for this task. (I don't recall offhand when other distributions made the switch.)
  2. Launch FixParts (fixparts, part of the gdisk package in most Linux distributions) on the disk. It should note the presence of leftover GPT data and ask if it should be deleted. Let it do so, then quit.

This procedure should remove the GPT data, leaving the disk as MBR-only. The computer should continue to boot into Windows, but there's always a chance that something will go wrong and you'll have to re-install your Windows boot loader, or even restore all the data if something goes badly wrong, so be prepared with Windows recovery tools and a backup.

If everything goes right, you can then install Debian in BIOS/CSM/legacy mode. When you boot the Debian installer, be sure that the /sys/firmware/efi directory is not present. If it is, fiddle with your boot-time options to get it to boot in BIOS/CSM/legacy mode. When you install Debian in this way, it will treat the Mac like an ordinary BIOS-based PC and everything should then be fine.

Solution 2: Windows Plus OS X or Linux

If the disk currently holds OS X and/or some other Linux in addition to Windows, you'll have to consolidate your two (likely contradictory) partition tables into one consistent one. This is much harder and riskier than the preceding solution. To do it, you must:

  1. Figure out which partitions are valid, in both GPT and MBR.
    • Windows uses MBR, so identify your Windows partitions using MBR-only tools such as the default Windows partitioning tools or older versions of Linux's fdisk.
    • OS X and Linux both use GPT on hybrid MBR disks, so if you have OS X or Linux partitions on the disk, identify them using GPT-aware tools, such as gdisk or parted.
    • In all cases, record the start sector and end sector of your valid partitions. Unfortunately, a lot of tools don't provide data that's sector-precise. In Linux, fdisk, gdisk, and parted all do, although for fdisk you must ensure you don't use "CHS mode", and for parted, you must type unit s to set sector mode.
  2. Create a consistent set of GPT partitions. This may require deleting one or more partitions for MBR partitions that no longer exist and replacing them with the valid MBR partitions you identified in the previous step. Note that if your valid MBR partitions overlap valid GPT partitions, you're already in dire trouble. In this case, you should back up everything and start from scratch, or at least triage the disk to decide which partitions to delete and restore later.
  3. Use gdisk, gptsync, or some other tool that can create hybrid MBRs to create a fresh hybrid MBR that uses nothing but primary partitions to map the Windows partitions.

This procedure might render Windows unbootable, so you should be prepared with a Windows recovery disk. Installing Debian on your disk with a hybrid MBR might also wipe the hybrid MBR and/or render Windows unbootable, so you should be prepared to restore your hybrid MBR and/or run Windows recovery tools.

In principle, you should be able to install Debian in either BIOS/CSM/legacy or EFI boot modes. I prefer the latter for various reasons, but it's hard to get some distributions to install in this way on Macs. (I don't know offhand how the Debian installer works for this.)

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.