# UEFI multi boot with Clover

## Recommended Posts

Your BIOS must have the option UEFI Boot and it must be enabled in order to install operating systems in UEFI mode.

Notice that when this option is enabled, it shows UEFI before the drive name.

OS X installation

You can make an installer or download one from my signature. You don't have to boot the OS X installer in UEFI mode, it's only needed in the following step, to install Clover.

IMPORTANT: to install Windows 7/8 in UEFI mode, the partition table must be pure GPT, it can't be hybrid MBR like used in old BIOS mode, so when you create the partitions in Disk Utility, do NOT change the Windows partition to MS-DOS (FAT), keep all partitions as Mac OS Extended (Journaled), you will change the other partition(s) format later.

Install OS X in the first partition.

If you have Windows pre-installed do not format the EFI partition (newfs_msdos), just mount it (mount_msdos).

Format a pen drive as FAT32 and install Clover in it.

You need at least the drivers FSInject, OsxFatBinaryDrv and VboxHfs (or HFSPlus) in the folder /EFI/CLOVER/drivers64UEFI (installed by default). Depending on BIOS you may need OsxLowMemFix (Insyde H2O), EmuVariableUefi (Phoenix UEFI) or OsxAptioFixDrv (all other).

Do not select the option "install for UEFI motherboards", it only works if the pen drive is partitioned in GUID. After installing, create the folder EFI/BOOT in the pen drive and copy the file EFI/CLOVER/CLOVERX64.efi to EFI/BOOT/BOOTX64.efi

Start the system using the pen drive to test UEFI boot.

Run the following commands in terminal, replacing X by the HD number.

To format the EFI partition as FAT32

diskutil list
sudo newfs_msdos -v EFI -F 32 /dev/diskXs1

To mount the EFI partition

mkdir /Volumes/EFI
sudo mount_msdos /dev/diskXs1 /Volumes/EFI

Create the folder EFI in the EFI partition.

Copy the folder EFI/CLOVER from pen drive to the folder EFI in EFI partition.

Boot from the pen drive again. In Clover menu, go to Clover Boot Options of SATA drive (usually 0x1F, 0x2) and select Add as UEFI boot option. Now you will be able to boot Clover from EFI partition without the pen drive, in UEFI mode.

Windows installation

To make an UEFI installer in USB, open Command Prompt as administrator and run the commands

diskpart
list disk
select disk X (replace X by the pen drive number)
clean
create partition primary
format fs=fat32 quick
active
assign
exit

Copy all files from the image (DVD) to the pen drive.

For Windows 7 you need to copy the folder efi\microsoft\boot to efi\boot (one level up), copy the file bootmgfw.efi to that folder and rename it to bootx64.efi

The file bootmgfw.efi is in the folder \1\Windows\Boot\EFI\ inside the file \sources\install.wim from DVD. Open install.wim with 7-Zip.

For Windows 8 the usual steps are enough, but it can't be an "AIO" (all in one) image, x86 and x64 (with efi\boot\bootia32.efi), it must be x64 only (with efi\boot\bootx64.efi).

Before installing Windows you need to change the partition format to NTFS. You can use gParted from a Linux live CD.

IMPORTANT: Windows installer formats and renumbers all partitions after the destination one, because it creates a reserved partition, so if you will install Linux, do it after installing Windows, or install Windows in the last partition.

If you use loader to activate Windows 7, you can inject SLIC table using Clover instead.

Rename the file NAME.BIN to SLIC.aml and put it in the folder EFI/CLOVER/ACPI/WINDOWS

Put the certificate in C:\ and run in Command Prompt (as administrator)

slmgr -ilc C:\NAME.xrm-ms

Pick a key

Run

slmgr -ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

BCD is installed in EFI/Microsoft in the EFI partition.

Linux installation

The only important detail is to install GRUB legacy in the Linux partition and not in MBR (for example, select /dev/sda5 and never /dev/sda).

The file grubx64.efi is installed in EFI/"distro name" in the EFI partition.

Donation with BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

Donated? Send me PM with files or use DSDT Patch Requests

##### Share on other sites

The USB raw images have an EFI partition with Clover, so you can format (or just mount) the EFI partition of your HD (replace X by the HD number)

diskutil list
sudo newfs_msdos -v EFI -F 32 /dev/disk[color=#FF0000]X[/color]s1
mkdir /Volumes/EFI
sudo mount_msdos /dev/disk[color=#FF0000]X[/color]s1 /Volumes/EFI

mount the EFI partition of the USB (replace Y by the USB number)

mkdir /Volumes/EFI1
sudo mount_msdos /dev/disk[color=#FF0000]Y[/color]s1 /Volumes/EFI1

and copy EFI folder from EFI1 to EFI.

Then

Boot from the pen drive again. In Clover menu, go to Clover Boot Options of SATA drive (usually 0x1F, 0x2) and select Add as UEFI boot option. Now you will be able to boot Clover from EFI partition without the pen drive, in UEFI mode.

Configure config.plist according to the wiki

After you configure config.plist for power management, you can remove Disabler.kext from EFI/CLOVER/kexts/10.X, as well as other kexts you don't need (or that you have installed in /System/Library/Extensions)

http://Olarila.com/forum/viewtopic.php?f=28&t=1703

Donation with BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

Donated? Send me PM with files or use DSDT Patch Requests

##### Share on other sites

i wonder how you write the coorect command for that : Copy the folder EFI/CLOVER from pen drive to the folder EFI in EFI partition.

how to do : Boot from the pen drive again. In Clover menu, go to Clover Boot Options and select Add as UEFI boot option.

if clover menu does not show , only with the text mode of chameleon bootloader or the gui mac os x [ even in safe mode ]

##### Share on other sites

This will not work if you are using Chameleon, obviously.

Donation with BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

Donated? Send me PM with files or use DSDT Patch Requests

##### Share on other sites

i tested the usb on two pcs and the one with the ati 3870 is not able to show clover .

that is why i ask with chameleon only .

may be with the use of ubuntu , at least the 13.1 , i can read the drive i formatted for mac os x 10.9 , something can be done to edit the boot ?

at least ubuntu is a very cool way to handle and delete files as well as do some backup may be .

##### Share on other sites

There's no sense in installing Clover to the HD if it does not work from USB.

Donation with BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

Donated? Send me PM with files or use DSDT Patch Requests

##### Share on other sites

as the guide says that you copy the whole efi , in my mind , it was also copying the text boot system .

will you make a guide for chameleon ? i used it as well as multishit 6 but boot was not working and the macos was corrupted...

##### Share on other sites

Chameleon is not an UEFI boot loader, it's not located in the EFI folder, it's the file "boot" in the root directory.

To install Chameleon you also need to write boot sectors, the easy way is just running the installer pkg

Complete post install instructions

http://Olarila.com/forum/viewtopic.php?f=28&t=1716

Donation with BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

Donated? Send me PM with files or use DSDT Patch Requests

##### Share on other sites

I still don't understand how to do it

##### Share on other sites

Thanks!

I've installed Mavericks and Clover in EFI partition.

However, I need to add "cpus=1" in boot args each time when I boot.

Any solution to permanently add "cpus=1" in boot args..?

Edited by Guest
##### Share on other sites

What should I do now? A same Mavericks install making all 3 partitions Mac OS Extended journaled?

Yes, it's in the opening post, you quoted it

IMPORTANT: to install Windows 7/8 in UEFI mode, the partition table must be pure GPT, it can't be hybrid MBR like used in old BIOS mode, so when you create the partitions in Disk Utility, do NOT change the Windows partition to MS-DOS (FAT), keep all partitions as Mac OS Extended (Journaled), you will change the other partition(s) format later.

What abt Windows? Now I connect bootable Win USB and BIOS doesn't pick it up. Whereas it picks Mavericks USB installer.

It's in the OP too

For Windows 8 the usual steps are enough, but it can't be an "AIO" (all in one) image, x86 and x64 (with efi\boot\bootia32.efi), it must be x64 only (with efi\boot\bootx64.efi).

Donation with BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

Donated? Send me PM with files or use DSDT Patch Requests

##### Share on other sites

Dear @pernacabeluda !!

You suggested in first post as follows:

"Before installing Windows you need to change the partition format to NTFS. You can use gParted from a Linux live CD"

I have installed OS X Mavericks successfully, thanks to your guide for that.

I have Linux Mint 15 Olivia live DVD and when I try to boot from it in order to run gparted to format my one partition to NTFS, it just does not boot.

plz guide me as to what I need to get Linux live DVD boot so that I can format one partiions to NTFS and install Windows on it.

Thanks!

##### Share on other sites

I have Win 8.1 x64 .iso image. I formatted my USB to FAT32 and wrote .iso image on it using Win 7 USB/DVD Tool but it could not boot as the Tool reformatted it to NTFS.

Then I copied contents of written image from USB to OS X partition, reformatted USB to FAT32 and copied contents form OS X partition to USB (just copied, not written). Now USB is in FAT32 format and contains all folders and files of .iso image and it clearly shows /efi/boot/bootx64.efi in it, but still it does not boot.

Pardon me if I am doing something stupid or annoying you and kindly guide me to complete my Windows installation.

Thanks!

##### Share on other sites

It should boot. It's probably something in your BIOS setup.

Donation with BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

Donated? Send me PM with files or use DSDT Patch Requests

##### Share on other sites

It should boot. It's probably something in your BIOS setup.

Here is pic of my BIOS:

Before installing OS X, I disabled Legacy Support (shown in pic) to boot in UEFI mode.

OS X installed successfully but BIOS has run away.

Now option to press "Esc" key to enter system set up does not appear.

Plz take a look at the pic and let me know if you have any suggestion for me!

Thanks!

PS: I am Googling as well, also posted a question on answerw.yahoo but no luck so far.

##### Share on other sites

I would try to install the boot of Clover

Installed on the usb I left the default

I created the folder EFI / BOOT and CLOVER/CLOVERX64.efi copied and renamed to EFI/BOOT/BOOTX64.efi

I've tried does not work, any advice.

thanks

I7 4770K - Z97-PRO Wifi (ac) - Intel HD4600

##### Share on other sites

Try to partition the USB as GUID and choose "install for UEFI motherboards". I did not try recent Clover versions.

Donation with BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

Donated? Send me PM with files or use DSDT Patch Requests

##### Share on other sites

I7 4770K - Z97-PRO Wifi (ac) - Intel HD4600

##### Share on other sites

I did what it said "Installation Failed"

I tried again as a guide but black screen

I7 4770K - Z97-PRO Wifi (ac) - Intel HD4600

##### Share on other sites

The pen drive must be partitioned as GUID.

Donation with BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

Donated? Send me PM with files or use DSDT Patch Requests

##### Share on other sites

It is the pen formatted Guid

I7 4770K - Z97-PRO Wifi (ac) - Intel HD4600

##### Share on other sites

Then I have no idea.

Donation with BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

Donated? Send me PM with files or use DSDT Patch Requests

##### Share on other sites

I read it many times but maybe I missed something

all what I did is this ,

burn the .raw to pen drive

setup my bios as it should

and boot from the pen drive ,

then disk utilities , format the hard disk as mac osx journaled

set the partition 1 and their format to mac os extended jornaled

then option set partition scheme to Guid partition table

Apply

>

install <<<< it return back to the clover main screen > that's all >

I need to put a boot in that hard disk ?>

I cant access it from windows 7 or copy those files to the boot partition ,,, coz it wont appear over there ,,

for example after finish its installation can I access it and put those file from clover menu sceen ?! from the terminal or from the utilities disk ?!

##### Share on other sites

hello

u make the install ?

if u make the install.. pc always need a boot loader to boot mac os x

from the usb pen or u need to install it in the hd

good hack

PB Easy Note TM 86 - i5 430 M - H55M - Ram - 6 GB - Alc272 - Radeon HD 5470 512 QE/CI

Lenovo G500 - i5 3230m - HM77 - Ram - 8 GB - Conexant audio - HD 4000

##### Share on other sites

Hey guys I have done the usb with Clover and the installer but I have some problems.

First, when I try to boot the installer from clover, do nothing, I can't start it. Clover work but the installer (installed with the terminal command in a different partition of clover) don't run. The usb is in Mbr and I do that following tutorials of Olarila.

Second, when I enable in secure mode uefi boot, I got an screen that said that the system found unauthorized changes on the firmware, operating system or uefi drivers.

My PC is a 3770k with an asus p8z77-v deluxe and GTX 670.

If I disables csm in bios the vga can't work...

Ideas?

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.