Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Tutorial - How to triple boot OSX, Linux and Windows 8.1 with a shared Data Partition without any third party Win / OSX softwares

This is not a question, but rather a personal guide that has proved to be running successfully.


I would like to thank numerous sources, including Christopher Murphy's suggestions at:


Re: Repairing Boot Camp after creating new partition


Before proceeding, there are certain concepts needs to know:


Why Boot Camp does NOT allow further partitioning of drives after Windows has installed?


Answer: Because the way Apple configures the Mac to be recognized as non UEFI capable system on Windows.


Quote from Christopher Murphy based on the above line:


However, Windows on Macs right now use CSM-BIOS mode in Mac firmware that presents BIOS to Windows rather than EFI. Windows thinks it's on a BIOS computer, and therefore mandates the use of MBR for boot disks, rather than GPT. So that's why we have this hybrid MBR+GPT approach on Mac with Windows on it. You inherit the limitations of MBR, which is four primary partitions.


So what does it means?


It means that OSX + EFI + Recovery HD + Boot Camp partition = 4 primary partitions and thus any attempt to modify the disk will render booting issues of either system.


For more info on GPT (GUID Partition Table disks VS Master Boot Record or MBR in short, you may visit: http://msdn.microsoft.com/en-us/library/windows/hardware/dn640535%28v=vs.85%29.a spx)


So, how to overcome it?


The general guideline is to install ALL GPT ready OS first then create a Data partition, before installing Windows (Which is again, NOT supported GPT due to EFI configuration by Apple where end-users are not able to modify it).


Interestingly, since Mac Pro 2013 Late supports only Windows 8 and above, thus it is not known if this CSM-BIOS applies to it or not.


Do take note that GPT disks in Windows can only be booted when the system meets the 2 requirements:


http://msdn.microsoft.com/en-us/library/windows/hardware/dn640535%28v=vs.85%29.a spx#gpt_faq_win7_boot


1) Windows x64 version (Which is a must for newer Macs. If you cannot go to Boot Camp 5, then you need Windows 7 x86 or 32bit version)


2) UEFI system. However, Windows sees all Macs (With the possibility of Mac Pro 2013 Late is an exception. To be determined) as BIOS, or rather NON-UEFI system.


In short, booting on GPT disks is not possible for Mac in Windows.


Summary,


It is tested that a combination of the following will not work:


- OSX + Windows + Linux


- Windows + OSX + Linux


- Windows + Linux + OSX


Usually it can create the system un-bootable or OSX refused to install due to the system does not recognize such partitions and / or Disk Utility refused to format a free space. An example screen-shot is provided below:


The error message is shown as

Title: "Failed to erase volume" Message: "Failed to wipe volume, as an error occurred: MediaKit has reported that the device does not have enough free space to execute the requested operations."

User uploaded file



The second thing is about the preparations we need.


1) 1X Windows 7 or 8 DVD or USB thumbdrive


1A) If you uses a DVD to install, you will need another thumbdrive to load the BootCamp drivers for Windows as well as may requires an external DVD drive for newer Macs


2) 1X Linux DVD of your choice. Personally I choose Fedora 20.


So ready? Let's go.


1. Using Disk Utility, shrink the OSX's partition size to what is needed. For me, I give OSX 150GB. Do NOT create any new partition.


Disk Utility should see something like below whereby only OSX partition is left with desired disk space. The remaining space are to be unused disk space for the moment.


User uploaded file



Note: Click on the top most item that should start with the size of your HDD / SSD. Then clicked on "Partition" and specify the desired OSX size. Hit "Apply" after that.


2: Download Boot Camp drivers only via Boot Camp Assistant. The USB thumbdrive shall be used later after Linux's installation.


Boot Camp Assistant should see this:


I have only selected "Download latest Windows Support Files from Apple"

User uploaded file


3. Insert Linux DVD, reboot Mac into EFI mode (The left most first "EFI mode").


Note 1: Before rebooting, please plugged in an Ethernet adapter because Wi-Fi drivers is not installed.


Note 2: For Thunderbolt adapters, it must be plugged in before reboot as hot-swapping is not supported under Linux. More on the tips at the end of this article.


Note 3: Press and hold "Option" after the screen turns black. Release Option key after you see the image as below:

User uploaded file

MacBook Pro with Retina display, OS X Mavericks (10.9.4)

Posted on Sep 1, 2014 9:24 AM

Reply
18 replies

Mar 25, 2016 3:11 AM in response to Loner T

I did it 🙂

Actually creating an hybrid mbr wasn't working, since Windows would recognize the disk as a GPT disk and wouldn't install if I did so.

What I did, after installing OS X and Linux, was:


1) Open terminal, execute command: sudo gdisk /dev/disk0

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 protective MBR; using GPT.


Command (? for help):

2) Press 'r', then 'p'

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

1 40 409639 200.0 MiB EF00 EFI System Partition

2 409640 781659639 372.5 GiB AF00 Macintosh HD

3 781660160 783757311 1024.0 MiB 8300 boot

4 783757312 787951615 2.0 GiB 8200 swap

5 787951616 851275775 30.2 GiB 8300 kali

3) Delete the 4rth partition (swap) and recreate it. This will not actually delete the partition itself, just its sector indexes.

By deleting it, the MBR partitions are deleted too. You can check them by pressing 'o'

Recovery/transformation command (? for help): o


Disk size is 977105060 sectors (465.9 GiB)

MBR disk identifier: 0x00000000

MBR partitions:


Number Boot Start Sector End Sector Status Code

1 1 977105059 primary 0xEE

4) As you can see, there is no MBR data for OSX or Linux, but that's not a problem since they work with GPT.

5) Commit the changes with 'w'


So now we only have 1 MBR partition basically, and we could install windows right?

Well, we need to do something first. I found the solution here: http://superuser.com/questions/508026/windows-detects-gpt-disk-as-mbr-in-efi-boo t

Basically Windows won't recognize an hybrid partition, so we need to change it to a protective one. Just press 'x', in gdisk to enter the expert options, then 'n' to create a new protective MBR (see link for more details).

You can check the new disk status on gdisk:

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: protective

BSD: not present

APM: not present

GPT: present


Found valid GPT with protective MBR; using GPT.


Command (? for help):


And voilà! You're free to install Windows. By doing that, the boot sequence won't count anymore RefIND. Just boot into OS X after Windows in installed and re-install RefIND too.


There you have you're triple boot mac!

Tutorial - How to triple boot OSX, Linux and Windows 8.1 with a shared Data Partition without any third party Win / OSX softwares

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.