Home

Awesome

CloverEFI-4MU

Introduction

This repo is actually just documentation about How to install Clover EFI Bootloader using manual methods under Linux (eg. Ubuntu). Clover binary used on this repo is similar to <b>Official GitHub</b> here; except additional configs, kexts, etc.

But if you prefer using simpler methods with automated (or guided) steps, I guess you use this clover-linux-installer script by m13253. DWYOR..!!! (Do With Your Own Risk).


What is Clover?

<img src="/extras/img/CloverEFI-Bootloader.png?raw=true" alt="Clover EFI Bootloader" align="right">

Clover is one of bootloaders developed by Slice, Apianti, BlackOSX, Dmazar, Blusseau, and other devs with great community for booting OS X, Windows and Linux on Mac or PC with UEFI / BIOS firmware.

Some of Clover features are:


Requirements

However, following this method you have to meet conditions below:


Before You Begin

  1. Clone or Download whole repo: $ git clone https://github.com/badruzeus/CloverEFI-4MU

  2. My Clover Themes collection: $ git clone https://github.com/badruzeus/MyCloverThemes (Optional). Go to docs for Theming how to

  3. Follow provided "Video Tutorial" below, or skip to "Manuall Installation" methods on next steps:

    CloverEFI-4MU

  4. If you're not sure; install it to EFI Partition on USB FlashDisk with GPT scheme. Using gParted create 200MB partition, Manage Flags as: boot,esp.


Manual Installation on GUID Partition Table (GPT)

Assummed "Target_Disk" is /dev/sda (Whole Disk) and "Target_Partition" is /dev/sda1 (EFI System Partition). <br>Check with Terminal: $ sudo blkid or sudo fdisk -l<br/>

  1. Set /dev/sda1 as Primary Boot Record / PBR (for Legacy and GPT)

    • $ cd ~/CloverEFI-4MU/BootSectors

    • $ sudo dd if="/dev/sda1" bs=512 count=1 >origPBR

    • $ sudo dd if="/dev/sda" bs=512 count=1 >origMBR

    • $ cp boot1f32 newPBR

    • $ cp origMBR newMBR

    • $ sudo dd if=newPBR of="/dev/sda1" bs=512 count=1

    • $ sudo dd if=newMBR of="/dev/sda" bs=512 count=1 conv=nocreat,notrunc

    • $ sudo dd if=origPBR of=newPBR skip=3 seek=3 bs=1 count=87 conv=notrunc

    • $ sudo dd if=boot0af of=newMBR bs=440 count=1 conv=notrunc

  2. Placing Clover on EFI System Partition (ESP) <br>(Please note that \EFI\BOOT dir is not always empty, some linux distros maybe placing grub, kernel, etc. here. If this is your case, just copy BOOTX64.efi file, not replacing a whole dir).<br/>

    a. Option 1 via <b>Command Line</b> // <i>Mounting EFI System Partition</i><br/>

    • $ mkdir ~/esp
    • $ sudo mount -t vfat /dev/sda1 ~/esp

    // <i>Copying Clover required files</i>

    • $ cd ~/CloverEFI-4MU
    • $ sudo cp boot ~/esp
    • $ sudo cp -r EFI/BOOT ~/esp/EFI
    • $ sudo cp -r EFI/CLOVER ~/esp/EFI

    b. Option 2 via <b>File Manager</b> (GUI)

    • Mount ESP as Option (1) first

    • Terminal: $ sudo [FileManager] // File manager could be nautilus, pcmanfm, thunar, etc.

    • Manually copy-paste required files as point (a), be careful!

    • Terminal: $ sudo umount ~/esp (if all have done).


Bugs & Troubleshooting


Credits

Apple | Canonical | Microsoft | Clover | cvad | fusion71au | InsanelyMac, Olarila and OSXLatitude Forum.

:: <i>Follow me on AppleLife / Facebook / InsanelyMac / MacRumors / Reddit / SourceForge / Youtube</i> ::

Bring me to Life: Donate