UEFI multi boot with Clover

UEFI multi boot with Clover

Postby pernacabeluda » 10 Jun 2013, 18:52

Este tópico em português
http://olarila.com/forum/viewtopic.php?f=3&t=2831


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
http://olarila.com/forum/viewtopic.php?f=28&t=3405&p=33648#p33648

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

http://sourceforge.net/projects/cloverefiboot/

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
Code: Select all
diskutil list
sudo newfs_msdos -v EFI -F 32 /dev/diskXs1

To mount the EFI partition
Code: Select all
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
http://www.projectosx.com/forum/index.php?showtopic=2428


Windows installation

To make an UEFI installer in USB, open Command Prompt as administrator and run the commands
Code: Select all
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.

Download SLIC 2.1 binary and certificate

http://forums.mydigitallife.info/threads/5952-Win-7-amp-Server-08-R2-SLIC-2-1-Bin-Collection?p=514521&viewfull=1#post514521

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: Select all
slmgr -ilc C:\NAME.xrm-ms

Pick a key

http://forums.mydigitallife.info/threads/10370-Windows-7-OEM-SLP-Key-Collection

Run
Code: Select all
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, 20:55, edited 1 time in total.
User avatar
pernacabeluda
Senior
 
Posts: 4671
Joined: 22 Oct 2012, 02:35

Re: UEFI multi boot with Clover

Postby pernacabeluda » 24 Oct 2013, 20:53

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)
Code: Select all
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)
Code: Select all
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

http://clover-wiki.zetam.org/Configuration

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
User avatar
pernacabeluda
Senior
 
Posts: 4671
Joined: 22 Oct 2012, 02:35

Re: UEFI multi boot with Clover

Postby grml4d » 06 Nov 2013, 17:58

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 ]
grml4d
 
Posts: 16
Joined: 04 Nov 2013, 19:27
CPU: I5 430M
Motherboard: IMPIP-M5
GPU: GT 230M

Re: UEFI multi boot with Clover

Postby pernacabeluda » 06 Nov 2013, 18:23

This will not work if you are using Chameleon, obviously.
User avatar
pernacabeluda
Senior
 
Posts: 4671
Joined: 22 Oct 2012, 02:35

Re: UEFI multi boot with Clover

Postby grml4d » 06 Nov 2013, 19:44

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 .
grml4d
 
Posts: 16
Joined: 04 Nov 2013, 19:27
CPU: I5 430M
Motherboard: IMPIP-M5
GPU: GT 230M

Re: UEFI multi boot with Clover

Postby pernacabeluda » 06 Nov 2013, 19:45

There's no sense in installing Clover to the HD if it does not work from USB.
User avatar
pernacabeluda
Senior
 
Posts: 4671
Joined: 22 Oct 2012, 02:35

Re: UEFI multi boot with Clover

Postby grml4d » 07 Nov 2013, 08:26

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 multibeast 6 but boot was not working and the macos was corrupted...
grml4d
 
Posts: 16
Joined: 04 Nov 2013, 19:27
CPU: I5 430M
Motherboard: IMPIP-M5
GPU: GT 230M

Re: UEFI multi boot with Clover

Postby pernacabeluda » 07 Nov 2013, 12:59

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

http://www.insanelymac.com/forum/files/file/59-chameleon-22-svn/

Complete post install instructions

http://olarila.com/forum/viewtopic.php?f=28&t=1716
User avatar
pernacabeluda
Senior
 
Posts: 4671
Joined: 22 Oct 2012, 02:35

Re: UEFI multi boot with Clover

Postby ABD EL HAMEED » 11 Nov 2013, 18:49

I still don't understand how to do it
ABD EL HAMEED
 
Posts: 5
Joined: 11 Nov 2013, 18:13
CPU: i5 3570k
Motherboard: GA-Z77X-D3H
GPU: GTX 760

Re: UEFI multi boot with Clover

Postby musadiqmanas » 17 Nov 2013, 16:42

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, 09:04, edited 1 time in total.
musadiqmanas
 
Posts: 29
Joined: 05 Nov 2013, 12:34
CPU: Intel Core i3 2.4GHz
Motherboard: Dont know
GPU: Dont know

Next

Return to Guides and tutorials

Who is online

Users browsing this forum: No registered users and 2 guests