I have found a way to boot from grub4dos to Clover (and then UEFI boot).
No utilities are required (other than a recent version 2013/2014 of grub4dos).
Here is a menu.lst - it assumes you have a FAT32 grub4dos USB drive which has grub4dos MBR bootcode installed.
iftitle [cat --locate="FAT32" --length=10 --skip=0x50 ()+1 > nul] Run Clover UEFI Boot Menu\n Run this if you wish to use Clover to UEFI boot set CL=0 ## boot7 is default boot file cat --locate="BOOT7" --length=10 --skip=0x58 ()+1 > nul && set /a CL=%CL%+1 > nul if "%CL%"=="1" echo Information: Clover is already installed to the PBR ## configfile /menu.lst echo ffffffffff > (md)0x350+1 dd if=(hd0,0)+1 of=(md)0x350+1 > nul dd if=()/clover/boot1f32alt7 of=(md)0x350+1 skip=87 seek=87 bs=1 > nul dd if=()/clover/boot1f32alt7 of=(md)0x350+1 count=3 bs=1 > nul #cat --hex (md)0x350+1 && pause if not "%CL%"=="1" cat --locate="SYSLINUX" --length=10 --skip=0x2 ()+1 > nul && pause PROBLEM: SYSLINUX PBR DETECTED - Cannot install Clover to PBR... && configfile /menu.lst if not "%CL%"=="1" dd if=(md)0x350+1 of=(hd0,0)+1 > nul && pause --wait=2 PBR updated with Clover boot code chainloader /clover/boot0md || chainloader /clover/boot0ss || chainloader /clover/boot0af # User can press 2 for 3 for 32-bit UEFI, 6 for 64-bit UEFI or 1 for Chameleon - within 2 seconds # boot0md gives a boot0 message and is slower - boot0ss is silent with no message
Full details in my blog post here.
The code still needs tidying up, but I thought I would post to get comments. Using this you can UEFI boot directly from grub4dos.
I created the boot1f32alt7 file myself - it is not a standard Clover file (the standard boot1f32alt file loads the file \boot which we cannot have if the Windows \BOOT folder is in the same partition).
The dd code could probably be simplified to directly patch the PBR, but I wanted to be able to check it first before I allowed it to patch the PBR!
[Edit] improved code - use dd if=()/clover/boot1f32alt7 of=(md)0x350+1 skip=90 seek=90 bs=1 > nul
to allow syslinux to be re-installed - see end of this thread for details[/Edit]
Attached Files
Edited by steve6375, 10 December 2017 - 09:48 AM.