I made the choice to make a triple boot on my 2008 macbook 5,1 with mac OSX 10.6.8, elementary OS and Windows 7 (64bit). I ended up doing this without much knowledge of what would happen to my GPT/MBR.
The installation process I followed was very convoluted and involved swapping drives into my optical bay and virtual box (install order OS X, eOS, W7), but (luckily) the end result is that I now have three functioning installations that boot through rEFInd.
The problem - I'm not sure if this is working as well as it should. Before I installed W7 rEFInd detected OS X and the eOS grub loader correctly. After W7 (and a subsequent reinstall of rEFInd to correct rogue booting) rEFInd now provides many menu options:
- Mac OS (works properly)
- eOS (boots through EFI stub loader, was not present before W7 install, works properly)
- A linux entry (eOS on ext4) (used to boot to eOS through grub before W7, selecting this option now boots into W7 for some reason?)
- W7 entry (works properly)
On top of that to get everything booting I created a hybrid MBR, but I am unsure if I have set it up correctly as gdisk verify provides the following output:
$ sudo gdisk /dev/sda GPT fdisk (gdisk) version 1.0.1 Partition table scan: MBR: hybrid BSD: not present APM: not present GPT: present Found valid GPT with hybrid MBR; using GPT. Command (? for help): v Warning! Mismatched GPT and MBR partition! MBR partition 4, of type 0x0A, has no corresponding GPT partition! You may continue, but this condition might cause data loss in the future! Identified 1 problems! Command (? for help):
Moving into the recovery menu and typing o and p to get MBR and GPT lists the following:
Recovery/transformation command (? for help): o Disk size is 468862128 sectors (223.6 GiB) MBR disk identifier: 0x4F5D06CB MBR partitions: Number Boot Start Sector End Sector Status Code 1 1 409639 primary 0xEE 2 409640 137128391 primary 0xAF 3 * 284540928 468860927 primary 0x07 4 137128392 284540927 primary 0x0A Recovery/transformation command (? for help): p Disk /dev/sda: 468862128 sectors, 223.6 GiB Logical sector size: 512 bytes Disk identifier (GUID): AEF39373-7FA0-4FD9-A968-99C6D20E9C8C Partition table holds up to 128 entries First usable sector is 34, last usable sector is 468862094 Partitions will be aligned on 8-sector boundaries Total free space is 2765 sectors (1.3 MiB) Number Start (sector) End (sector) Size Code Name 1 40 409639 200.0 MiB EF00 EFI System Partition 2 409640 137128391 65.2 GiB AF00 Fry 3 137129984 266962943 61.9 GiB 8300 4 266962944 284540927 8.4 GiB 8200 5 284540928 468860927 87.9 GiB 0700 ROBOFRY
- GPT 1 is EFI under MBR 1
- GPT 2 is MacOS under MBR 2
- GPT 3 and 4 are Linux eOS and swap under MBR 4
- GPT 5 is W7 under MBR 3
- Did I accidentally destroy my grub bootloader forcing rEFInd to use the EFI stub loader? How can I repair the linux menu item in rEFInd to point back to grub instead of W7?
- Is my Hybrid MBR set up correctly?
- Edit: do I even need to use a hybrid MBR?