***SOME FORUM UPDATES IN THE NEXT DAYS***SOME LOGIN BUGS, JUST WAIT FINISH OF THE UPDATE AND MIGRATE PROCESS***

-->Donations via PayPal [External Link Removed for Guests] :guitar
-->Installation/Post Installation Tutorial [Local Link Removed for Guests]
-->Useful Links [Local Link Removed for Guests]
-->Olarila Images - Updated images [Local Link Removed for Guests]
-->Guides and Tutorials [Local Link Removed for Guests]
-->Clover Folder for All Chipsets [Local Link Removed for Guests]
-->DSDT Patch Requests [Local Link Removed for Guests]

UEFI multi boot with Clover

User avatar
pernacabeluda
Olarila Staff
Olarila Staff
Posts: 4896
Joined: 22 Oct 2012, 01:35

UEFI multi boot with Clover

Post by pernacabeluda »

Este tópico em português
[Local Link Removed for Guests]


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

Image

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

Image


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).

If you used the raw image, you can just copy Clover from the pen drive to the HD
[Local Link Removed for Guests]

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

[External Link Removed for Guests]

You need at least the drivers FSInject, OsxFatBinaryDrv and VboxHfs (or [Local Link Removed for Guests]) 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.

I recommend reading this topic for more information
[External Link Removed for Guests]


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 [External Link Removed for Guests].

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.

Download SLIC 2.1 binary and certificate

[External Link Removed for Guests]

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)

Code: [Local Link Removed for Guests]

slmgr -ilc C:\NAME.xrm-ms
Pick a key

[External Link Removed for Guests]

Run

Code: [Local Link Removed for Guests]

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.
Last edited by pernacabeluda on 24 Oct 2013, 19:55, edited 1 time in total.
User avatar
pernacabeluda
Olarila Staff
Olarila Staff
Posts: 4896
Joined: 22 Oct 2012, 01:35

Re: UEFI multi boot with Clover

Post by pernacabeluda »

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/diskXs1 mkdir /Volumes/EFI sudo mount_msdos /dev/diskXs1 /Volumes/EFI
mount the EFI partition of the USB (replace Y by the USB number)
mkdir /Volumes/EFI1 sudo mount_msdos /dev/diskYs1 /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

[External Link Removed for Guests]

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)

[Local Link Removed for Guests]
grml4d
Posts: 16
Joined: 04 Nov 2013, 18:27
CPU: I5 430M
Motherboard: IMPIP-M5
GPU: GT 230M

Re: UEFI multi boot with Clover

Post by grml4d »

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 ]
User avatar
pernacabeluda
Olarila Staff
Olarila Staff
Posts: 4896
Joined: 22 Oct 2012, 01:35

Re: UEFI multi boot with Clover

Post by pernacabeluda »

This will not work if you are using Chameleon, obviously.
grml4d
Posts: 16
Joined: 04 Nov 2013, 18:27
CPU: I5 430M
Motherboard: IMPIP-M5
GPU: GT 230M

Re: UEFI multi boot with Clover

Post by grml4d »

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 .
User avatar
pernacabeluda
Olarila Staff
Olarila Staff
Posts: 4896
Joined: 22 Oct 2012, 01:35

Re: UEFI multi boot with Clover

Post by pernacabeluda »

There's no sense in installing Clover to the HD if it does not work from USB.
grml4d
Posts: 16
Joined: 04 Nov 2013, 18:27
CPU: I5 430M
Motherboard: IMPIP-M5
GPU: GT 230M

Re: UEFI multi boot with Clover

Post by grml4d »

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...
User avatar
pernacabeluda
Olarila Staff
Olarila Staff
Posts: 4896
Joined: 22 Oct 2012, 01:35

Re: UEFI multi boot with Clover

Post by pernacabeluda »

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

[External Link Removed for Guests]

Complete post install instructions

[Local Link Removed for Guests]
ABD EL HAMEED
Posts: 5
Joined: 11 Nov 2013, 17:13
CPU: i5 3570k
Motherboard: GA-Z77X-D3H
GPU: GTX 760

Re: UEFI multi boot with Clover

Post by ABD EL HAMEED »

I still don't understand how to do it
musadiqmanas
Posts: 29
Joined: 05 Nov 2013, 11:34
CPU: Intel Core i3 2.4GHz
Motherboard: Dont know
GPU: Dont know

Re: UEFI multi boot with Clover

Post by musadiqmanas »

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..?
Last edited by musadiqmanas on 19 Nov 2013, 08:04, edited 1 time in total.
User avatar
pernacabeluda
Olarila Staff
Olarila Staff
Posts: 4896
Joined: 22 Oct 2012, 01:35

Re: UEFI multi boot with Clover

Post by pernacabeluda »

musadiqmanas wrote: 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.
musadiqmanas wrote: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).
musadiqmanas
Posts: 29
Joined: 05 Nov 2013, 11:34
CPU: Intel Core i3 2.4GHz
Motherboard: Dont know
GPU: Dont know

Re: UEFI multi boot with Clover

Post by musadiqmanas »

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!
musadiqmanas
Posts: 29
Joined: 05 Nov 2013, 11:34
CPU: Intel Core i3 2.4GHz
Motherboard: Dont know
GPU: Dont know

Re: UEFI multi boot with Clover

Post by musadiqmanas »

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!
User avatar
pernacabeluda
Olarila Staff
Olarila Staff
Posts: 4896
Joined: 22 Oct 2012, 01:35

Re: UEFI multi boot with Clover

Post by pernacabeluda »

It should boot. It's probably something in your BIOS setup.
musadiqmanas
Posts: 29
Joined: 05 Nov 2013, 11:34
CPU: Intel Core i3 2.4GHz
Motherboard: Dont know
GPU: Dont know

Re: UEFI multi boot with Clover

Post by musadiqmanas »

pernacabeluda wrote:It should boot. It's probably something in your BIOS setup.
Here is pic of my BIOS:
[External Link Removed for Guests]

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.
User avatar
iFabio
Geek
Geek
Posts: 131
Joined: 10 Sep 2011, 07:50
CPU: Intel I7 4770K
Motherboard: Asus Z97 Pro [Wifi ac]
GPU: HD 4600

Re: UEFI multi boot with Clover

Post by iFabio »

I would try to install the boot of Clover
FAT32 formatted usb, downloaded Clover r2352
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
User avatar
pernacabeluda
Olarila Staff
Olarila Staff
Posts: 4896
Joined: 22 Oct 2012, 01:35

Re: UEFI multi boot with Clover

Post by pernacabeluda »

Try to partition the USB as GUID and choose "install for UEFI motherboards". I did not try recent Clover versions.
User avatar
iFabio
Geek
Geek
Posts: 131
Joined: 10 Sep 2011, 07:50
CPU: Intel I7 4770K
Motherboard: Asus Z97 Pro [Wifi ac]
GPU: HD 4600

Re: UEFI multi boot with Clover

Post by iFabio »

Ok, I feel your advice. Thanks
User avatar
iFabio
Geek
Geek
Posts: 131
Joined: 10 Sep 2011, 07:50
CPU: Intel I7 4770K
Motherboard: Asus Z97 Pro [Wifi ac]
GPU: HD 4600

Re: UEFI multi boot with Clover

Post by iFabio »

I did what it said "Installation Failed"
I tried again as a guide but black screen
advice
User avatar
pernacabeluda
Olarila Staff
Olarila Staff
Posts: 4896
Joined: 22 Oct 2012, 01:35

Re: UEFI multi boot with Clover

Post by pernacabeluda »

The pen drive must be partitioned as GUID.
Post Reply

Return to “Guides and tutorials”