Clover, UEFI, etc

I am recently trying to switch from Chameleon (which has been my bootloader of choice for 6 years approximately) to Clover.

Turns out while some things are more clear others (which should be the easier ones) are more complex – or just my google-foo left me !

Anyway, while setting up the installer stick for Yosemite was rather simple in setting up, and the installation of Yosemite itself was flawless, getting Clover on the HD itself took my quite a while. And no ! I don’t want to multiboot Windows, Linux, Solaris and OS X ! I just have 1 HFS+ formatted Yosemite disk which I want to boot :).

Well turns out you have to format the EFI partitions 1st and install Clover into it, even if you only want to UEFI boot the HDD.

So first we find the HDD that has OS X installed on a GUID partition table, and look for the EFI partition. Consequently open terminal and type:

sudo -s
type password
diskutil list

So next apply a new filesystem to the EFI partition (be careful to choose the correct one)  and replace the X according to your disk setup. In terminal enter:

newfs_msdos -v EFI /dev/diskXsX

You will get some error about a non character device (which you can ignore):

newfs_msdos: warning: /dev/disk1s1 is not a character device 512 bytes per physical sector
/dev/disk1s1: 409160 sectors in 51145 FAT16 clusters (4096 bytes/cluster)
bps=512 spc=8 res=1 nft=2 rde=512 mid=0xf8 spf=200 spt=32 hds=32 hid=40 drv=0x80 bsec=409600

So if you want to mount it then this works as follows:

mkdir /Volumes/efi
sudo mount -t msdos /dev/diskXsX /Volumes/efi

And that’s it – if your board supports booting from SATA via UEFI. Some boards only support USB UEFI booting 😦