I know that it is possible to tri-boot a Macbook Pro with OS X, Windows, and Linux, giving each OS one partition. However (and I know I am probably a little crazy for suggesting this), is it possible to quad-boot one with OS X, Windows, and two kinds of Linux? (The two kinds of Linux in question would probably be Arch and either Ubuntu or Fedora.) From what I have read, it seems like the hybrid MBR/GPT combination required for multi-booting means that you are limited to a maximum of four partitions, one of which is used by the Macbook as an "EFI system partition," and this scheme would require at least five (probably six or seven, if I wanted a swap partition and/or shared storage). Has anyone attempted this before?

link|improve this question
I really have to ask... Why on earth would you want to even try? With today's virtualization abilities, multibooting is a thing of the past. – Majenko Mar 19 '11 at 20:41
I gonna have to agree with Matt. Dual booting with Windows, maybe, but a VM should be more than enough for whatever you need Linux for. Plus, you may (I say may) be able to run the same VM from both Windows and Mac OS. – MBraedley Mar 19 '11 at 21:03
Only Windows needs to be on a hybrid (so it sees mbr) and real partition, everything else can be on GPT and logical. You may be able to share swap files (as it is just virtual memory, meant to be lost on shutdown IIUC. Please document what you do, it's an interesting topic so rarely done. – tobylane Mar 19 '11 at 22:12
The Linux installations can share a swap partition. They could also potentially share a /home partition (although some applications and/or desktop environments might not like that so much). Another option is to have a large shared storage partition for the Linuxen with home directories and other data directories stored on it via mount --bind. – Patches Mar 19 '11 at 23:06
@Matt/MBraedley: I actually plan to use Linux for most of my programming, and having it close to the metaphorical metal would be better. (Exactly why I need two Linuxen...well, that's a bit personal and not concrete yet.) Virtualization is cool, but it's also slower (I know, not by much) and doesn't provide direct hardware access. – LeafStorm Mar 20 '11 at 0:50
feedback

1 Answer

As far as I understand (I've never owned any Apple hardware, though), recent Macbooks run EFI and natively boot from a disk with a GPT. A hybrid MBR is then installed to dual boot Windows, which has inadequate support for GPTs.

Linux supports GPTs well, and though it is commonly booted from the hybrid MBR on Macbooks, there is no reason it could not be booted natively from the GPT. As far as I can tell, this is described for Ubuntu in this wiki, it is likely accomplished somewhat differently for other distros.

The three-OS limit (or whatever) could only stem from the limited number of partitions possible in a hybrid MBR (two or three, depending on whether you use one or two protective partitions), where at least one is required for each OS booted from the MBR and possibly one for a bootloader or something (OSs booted from the EFI should not need an entry in the MBR iirc. I don't claim intimate knowlege of Macos, though).

However, (Linux) OSs booted from EFI would not be part in the limitations of the MBR. You should be able to create very many GPT partitions and boot a different OS from each as easily as you can install a single OS that way.

Other notes:

You could boot any number of Linuxen with only two partitions, one boot partition with kernels and initramfsen and one with an LVM.

Anything above will at the very least require a lot of fiddling with Macos's bootloader (assuming it has one) and a generic bootloader (probably GRUB or eLILO).

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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