fusion71au Posted December 25, 2015 Share Posted December 25, 2015 Manually install Clover for UEFI booting and configure boot priority with EasyUEFI in Windows This tutorial will show how to manually install Clover in the EFI system partition of a pre-existing install of UEFI Windows. In the process, you will also learn how to mount the EFI partition and add Clover as a UEFI boot option (using the EasyUEFI program) in Windows. Prerequisites1. CloverISO from Sourceforge.2. 7-Zip for Windows3. EasyUEFI4. Existing UEFI install of Windows X64 (7,8,8.1 or 10) Obtain Clover1. Download the CloverISO.tar.lzma file from Sourceforge and open the file with 7-Zip. 2. Extract the Clover subfolder to your \Downloads with 7-Zip. 3. Copy the Clover folder by right clicking on its icon in Windows File Explorer. Mounting the EFI System Partition and installing Clover1. Open an administrative command prompt by clicking the Windows start button, typing cmd and right clicking on the search result as shown below... 2. Type the following commands, followed by <Enter> after each line: diskpart list disk select disk # (where # is the disk number of the disk with UEFI Windows) list partition select partition x (where x is the partition number of the EFI system partition. By default, it is usually the 100MB second partition) assign letter=s exit 3. Open Windows Task Manager as administrator by clicking the Windows start button, typing taskmgr and right clicking on the search result as shown below... 4. Click Run new task 5. Click Browse and in the Browse window, navigate to the EFI folder in the System Partition (which is mapped to drive S:) and also select "All files" from the drop down menu... 6. Right click inside the EFI folder to "paste" the Clover folder we downloaded earlier. If necessary, you can make edits to Clover's default config.plist with Wordpad or add OSX kexts like FakeSMC into the \kexts\other folder while still in the Task Manager browse window. For UEFI booting into OSX, you will most likely need the OsxAptioFix2Drv-64.efi or OsxAptioFixDrv-64.efi driver in EFI\CLOVER\drivers64UEFI (copy from the \CLOVER\drivers-Off\drivers64UEFI folder). 7. Quit Task Manager. Add Clover as a UEFI Boot Option using the EasyUEFI Program1. Open EasyUEFI and click on the small icon with the plus sign (second from top) to add a new entry. 2. In the Create Boot Entry Window, choose "Linux or other OS" as the entry type, click to select the EFI System partition as the target and browse to the CLOVERX64.efi file (file path \EFI\CLOVER\CLOVERX64.efi) as shown below... 3. Type Clover in the Description field then the OK button. 4. You will now see the new Clover entry on the main GUI of EasyUEFI. Click on the entry and then click the small up arrow icon to move Clover to the top so it will get priority over the Windows Boot Manager on boot up. Note on this screen, you can also delete/edit/disable boot entries or move them down the boot order. 5. Click the power menu and select reboot to restart your system (use your system's boot device selection key to choose the drive with CLOVER installed if necessary eg F12 for Gigabyte motherboards, F8 for ASUS motherboards, F11 for ASrock motherboards) ---> will now be presented with the Clover Main Menu GUI to boot Windows (or OSX). Enjoy and Good Hack ! 7 Link to comment Share on other sites More sharing options...
Codinger Posted December 25, 2015 Share Posted December 25, 2015 Im the first . Looks good but all our guides are not pinned and no noob can reach them easily Link to comment Share on other sites More sharing options...
fusion71au Posted February 14, 2016 Author Share Posted February 14, 2016 Manually Install Legacy Clover and prepare GPT disk in Windows (for dual boot UEFI Windows and OSX) Prerequisites1. GPT FDisk aka "GDisk"2. 7-Zip3. Windows X644. Bootice program5. Clover ISO downloaded from Sourceforge Erase Hard Disk to RAW state with Diskpart.exeOpen an administrative command prompt and type the following lines, followed by the <Enter> key after each line.... diskpart list disk sel disk # (where # is the disk number of the disk you wish to erase) clean exit Microsoft Windows [Version 10.0.10586]© 2015 Microsoft Corporation. All rights reserved.C:\WINDOWS\system32>diskpartMicrosoft DiskPart version 10.0.10586Copyright © 1999-2013 Microsoft Corporation.On computer: XPSM1530DISKPART> list disk Disk ### Status Size Free Dyn Gpt -------- ------------- ------- ------- --- --- Disk 0 Online 465 GB 1024 KB * Disk 1 Online 931 GB 871 GBDISKPART> sel disk 1Disk 1 is now the selected disk.DISKPART> cleanDiskPart succeeded in cleaning the disk.DISKPART> exitLeaving DiskPart... Use GDisk to convert the Hard Drive to GPT and create partitions for dual booting UEFI Windows and OSXIn this example, I have a 1 TB hard disk which I plan to divide up as follows.... Partition 1: 200MB EFI System Partition Partition 2: 128MB Microsoft Reserved Partition Partition 3: 60GB NTFS Partition for Windows Partition 4: 871GB HFS+ Partition for OSX Notes - EFI System Partition is preferably made the first partition for compatibility with OSX. I usually leave 128MB of free space before and after the HFS+ partition or OSX Disk Utility will complain about a lack of "loader space". 1. Open an administrative command prompt and cd to the gdisk installation folder2. Type gdisk64 #: (where # is the disk number of the disk you are creating partitions on - in this example it is disk 1)3. Use the following gdisk options: n to create a new partition x to access the experts menu a to change partition special attributes (needed for EFI System Partition) m to return to the main gdisk menu p to print the partition table w to finalize and write changes to the diskEg C:\WINDOWS\system32>cd \gdiskC:\gdisk>gdisk64 1:GPT fdisk (gdisk) version 1.0.0Partition table scan:MBR: not presentBSD: not presentAPM: not presentGPT: not presentCreating new GPT entries.************************************************************************Most versions of Windows cannot boot from a GPT disk except on a UEFI-basedcomputer, and most varieties prior to Vista cannot read GPT disks. Therefore,you should exit now unless you understand the implications of converting MBRto GPT or creating a new GPT disk layout!************************************************************************Are you SURE you want to continue? (Y/N): yCommand (? for help): ?b back up GPT data to a filec change a partition's named delete a partitioni show detailed information on a partitionl list known partition typesn add a new partitiono create a new empty GUID partition table (GPT)p print the partition tableq quit without saving changesr recovery and transformation options (experts only)s sort partitionst change a partition's type codev verify diskw write table to disk and exitx extra functionality (experts only)? print this menuCommand (? for help): nPartition number (1-128, default 1): 1First sector (34-1953525134, default = 40) or {+-}size{KMGTP}: 40Last sector (40-1953525134, default = 1953525134) or {+-}size{KMGTP}: +200MCurrent type is 'Microsoft basic data'Hex code or GUID (L to show codes, Enter = 700): L0700 Microsoft basic data 0c01 Microsoft reserved 2700 Windows RE3000 ONIE boot 3001 ONIE config 4100 PowerPC PReP boot4200 Windows LDM data 4201 Windows LDM metadata 4202 Windows Storage Spac7501 IBM GPFS 7f00 ChromeOS kernel 7f01 ChromeOS root7f02 ChromeOS reserved 8200 Linux swap 8300 Linux filesystem8301 Linux reserved 8302 Linux /home 8303 Linux x86 root (/)8304 Linux x86-64 root (/ 8305 Linux ARM64 root (/) 8306 Linux /srv8400 Intel Rapid Start 8e00 Linux LVM a500 FreeBSD disklabela501 FreeBSD boot a502 FreeBSD swap a503 FreeBSD UFSa504 FreeBSD ZFS a505 FreeBSD Vinum/RAID a580 Midnight BSD dataa581 Midnight BSD boot a582 Midnight BSD swap a583 Midnight BSD UFSa584 Midnight BSD ZFS a585 Midnight BSD Vinum a601 OpenBSD dataa800 Apple UFS a901 NetBSD swap a902 NetBSD FFSa903 NetBSD LFS a904 NetBSD concatenated a905 NetBSD encrypteda906 NetBSD RAID ab00 Apple boot af00 Apple HFS/HFS+af01 Apple RAID af02 Apple RAID offline af03 Apple labelaf04 AppleTV recovery af05 Apple Core Storage be00 Solaris bootbf00 Solaris root bf01 Solaris /usr & Mac Z bf02 Solaris swapbf03 Solaris backup bf04 Solaris /var bf05 Solaris /homebf06 Solaris alternate se bf07 Solaris Reserved 1 bf08 Solaris Reserved 2bf09 Solaris Reserved 3 bf0a Solaris Reserved 4 bf0b Solaris Reserved 5Press the <Enter> key to see more codes:c001 HP-UX data c002 HP-UX service ea00 Freedesktop $BOOTeb00 Haiku BFS ed00 Sony system partitio ed01 Lenovo system partitef00 EFI System ef01 MBR partition scheme ef02 BIOS boot partitionf800 Ceph OSD f801 Ceph dm-crypt OSD f802 Ceph journalf803 Ceph dm-crypt journa f804 Ceph disk in creatio f805 Ceph dm-crypt disk ifb00 VMWare VMFS fb01 VMWare reserved fc00 VMWare kcore crash pfd00 Linux RAIDHex code or GUID (L to show codes, Enter = 700): EF00Changed type of partition to 'EFI System'Command (? for help): xExpert command (? for help): aUsing 1Known attributes are:0: system partition1: hide from EFI2: legacy BIOS bootable60: read-only62: hidden63: do not automountAttribute value is 0000000000000000. Set fields are:No fields setToggle which attribute field (0-63, 64 or <Enter> to exit): 0Have enabled the 'system partition' attribute.Attribute value is 0000000000000001. Set fields are:0 (system partition)Toggle which attribute field (0-63, 64 or <Enter> to exit):Expert command (? for help): mCommand (? for help): nPartition number (2-128, default 2): 2First sector (34-1953525134, default = 409640) or {+-}size{KMGTP}:Last sector (409640-1953525134, default = 1953525134) or {+-}size{KMGTP}: +128MCurrent type is 'Microsoft basic data'Hex code or GUID (L to show codes, Enter = 700): 0c01Changed type of partition to 'Microsoft reserved'Command (? for help): nPartition number (3-128, default 3): 3First sector (34-1953525134, default = 671784) or {+-}size{KMGTP}:Last sector (671784-1953525134, default = 1953525134) or {+-}size{KMGTP}: +60GCurrent type is 'Microsoft basic data'Hex code or GUID (L to show codes, Enter = 700): 0700Changed type of partition to 'Microsoft basic data'Command (? for help): nPartition number (4-128, default 4): 4First sector (34-1953525134, default = 126500904) or {+-}size{KMGTP}: +128MLast sector (126763048-1953525134, default = 1953525134) or {+-}size{KMGTP}: -128MCurrent type is 'Microsoft basic data'Hex code or GUID (L to show codes, Enter = 700): AF00Changed type of partition to 'Apple HFS/HFS+'Command (? for help): pDisk 1:: 1953525168 sectors, 931.5 GiBLogical sector size: 512 bytesDisk identifier (GUID): 584D0F77-3CE2-43C7-8663-CE867C61149DPartition table holds up to 128 entriesFirst usable sector is 34, last usable sector is 1953525134Partitions will be aligned on 8-sector boundariesTotal free space is 524294 sectors (256.0 MiB)Number Start (sector) End (sector) Size Code Name1 40 409639 200.0 MiB EF00 EFI System2 409640 671783 128.0 MiB 0C01 Microsoft reserved3 671784 126500903 60.0 GiB 0700 Microsoft basic data4 126763048 1953262990 870.9 GiB AF00 Apple HFS/HFS+Command (? for help): wFinal checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTINGPARTITIONS!!Do you want to proceed? (Y/N): yOK; writing new GUID partition table (GPT) to \\.\physicaldrive1.Disk synchronization succeeded! The computer should now use the newpartition table.The operation has completed successfully. 4. Use Diskpart to assign drive letters and format the EFI and Windows Partitions to FAT32 and NTFS respectively.... C:\gdisk>diskpartMicrosoft DiskPart version 10.0.10586Copyright © 1999-2013 Microsoft Corporation.On computer: XPSM1530DISKPART> sel disk 1Disk 1 is now the selected disk.DISKPART> list partPartition ### Type Size Offset------------- ---------------- ------- -------Partition 1 System 200 MB 1024 KBPartition 2 Reserved 128 MB 201 MBPartition 3 Primary 60 GB 329 MBPartition 4 Primary 871 GB 60 GBDISKPART> sel part 1Partition 1 is now the selected partition.DISKPART> assign letter=sDiskPart successfully assigned the drive letter or mount point.DISKPART> format quick fs=fat32 label="EFI"100 percent completedDiskPart successfully formatted the volume.DISKPART> sel part 3Partition 3 is now the selected partition.DISKPART> assign letter=wDiskPart successfully assigned the drive letter or mount point.DISKPART> format quick fs=ntfs label="Windows"100 percent completedDiskPart successfully formatted the volume.DISKPART> exit Install legacy Clover bootsectors in Windows OverviewThe Clover wiki describes the legacy booting process: Essentially BIOS--->MBR--->PBR--->boot--->CLOVERX64.efi--->OSLoaderIn terms of the bootsectors we will be using in this tutorialBIOS--->boot0af in MBR--->boot1f32alt in the PBR of the EFI System Partition--->boot6 in ESP--->CLOVERX64.efi in ESP--->OSLoaderProcedure1. Download the CloverISO tar.lzma file from Sourceforge and extract the ISO with 7 Zip2. Copy the following boot files from \usr\standalone\i386 folder boot0af, boot0ss, boot1f32, boot1f32alt and boot6, boot7 from \usr\standalone\i386\x64 to somewhere convenient The EFI folder will also be needed later.... 3. Open the Bootice program and click Process MBR from the main menu 4. At the Master Boot Record screen, click restore MBR 5. For the Restore file, browse to the boot0af or boot0ss file we extracted in step 2 6. Click the Restore button and you should get a confirmation that the operation completed successfully. Click the close button. 7. Click Process PBR from the main menu 8. At the Partition Boot Record screen, select the FAT32 EFI System Partition as the destination and click the Restore PBR button. 9. For the Restore file, browse to the boot1f32 or boot1f32alt file we extracted in step 2. In this example, I used the alternate booting PBR (boot1f32alt), which gives a 3 second pause to enable the user to input his/her choice of boot file during bootup (default is boot6). 10. Click the Restore button and you should get a confirmation that the operation completed successfully. Click the close button and exit the program.11. Open Task Manager as administrator and open a new task. Browse "all files" and navigate to the EFI System Partition (which we assigned the drive letter S: earlier). You should now be able to copy the EFI folder from the Clover ISO (as well as boot6 and boot7) into the EFI System partition. If you used boot1f32 for your PBR, rename "boot6" to "boot". 12. Make the necessary edits to the EFI\CLOVER\config.plist for your system and make sure you have FakeSMC.kext in EFI\Clover\kexts\Other. If you have a DSDT &/or SSDTs that works for your system, place them in /EFI/CLOVER/ACPI/patched. 13. Reboot the computer and it should boot to the Clover Main Menu . 6 1 Link to comment Share on other sites More sharing options...
Fljagd Posted July 6, 2016 Share Posted July 6, 2016 awesome 1 Link to comment Share on other sites More sharing options...
kosakgroove Posted July 6, 2016 Share Posted July 6, 2016 Had to do this without guides when my hack suddenly deleted the partition table after running out of battery in sleep mode on Mac OS X. Now at least people know how to do it with this very detailed guide. Thanks. 2 Link to comment Share on other sites More sharing options...
PippoX0 Posted July 7, 2016 Share Posted July 7, 2016 Good to know Thanks Sent from iPhone/iPad Link to comment Share on other sites More sharing options...
etcetc Posted March 5, 2017 Share Posted March 5, 2017 Thanks a lot for the guide! After messing with dual installation, I couldn't load MAC OS X without USB. Your guide helped, only had to download EasyUEFI and copy Clover folder from my USB. Link to comment Share on other sites More sharing options...
mfc88 Posted March 5, 2017 Share Posted March 5, 2017 Thanks a lot for the guide! After messing with dual installation, I couldn't load MAC OS X without USB. Your guide helped, only had to download EasyUEFI and copy Clover folder from my USB. If you need the USB, then that means you're missing the EFI folder in SSD/HDD's root EFI partition: Installing Clover to EFI root Link to comment Share on other sites More sharing options...
etcetc Posted March 6, 2017 Share Posted March 6, 2017 If you need the USB, then that means you're missing the EFI folder in SSD/HDD's root EFI partition: Installing Clover to EFI root Yeah, I know. I stumbled upon ways to fix it in the Mac OS X and got a lot of helpful advice in another thread, but couldn't make anything work regarding this issue(now I get why, I did some steps wrong). Using this guide for Windows I fixed everything. Thanks anyway, the link can come handy someday. Link to comment Share on other sites More sharing options...
Philip Petev Posted March 8, 2017 Share Posted March 8, 2017 Quick tip for mounting and unmounting the EFI partition in WIndows - open elevated Command Prompt (right-click and Run as Administrator) and use the following: -for mounting mountvol H: /s this one will mount the EFI partition as H: (you may use whatever drive letter you want, as long as it's available). for unmounting mountvol H: /d 1 Link to comment Share on other sites More sharing options...
lordscales91 Posted April 27, 2017 Share Posted April 27, 2017 Oh damn it! I never thought that it would be possible to install Clover from Windows (until I happened to search for it and found this post). I was there man, Sierra was properly installed on its partition and booting, the only problem was I couldn't install Clover from it and booting from the USB would be hassle. Ironically I {censored}ed up the USB installation drive and spent the whole weekend trying to prepare it again, which is quite difficult since I don't have access to a Mac right now and I couldn't manage to run it on VirtualBox.... The only option left is to connect my old drive and boot Mac from there. Link to comment Share on other sites More sharing options...
Cyberdevs Posted May 19, 2017 Share Posted May 19, 2017 Great guide!! Thanks Link to comment Share on other sites More sharing options...
quattrofx Posted May 23, 2017 Share Posted May 23, 2017 Nice work fusion71au! I am looking for solution for dualboot, but first, short explanation what i have done till now: My HW Specs: HP Z800 Workstation BIOS V.3.60 2 x Intel® Xeon® processor X5650 2.66 GHz, 12MB cache 1333 MHz memory, 6-Core 24GB DDR3 RAM GFX: Nvidia QUADRO 6000 Windows 10 on RAID0 LSILogic RAID SAS 1068E Controller ( 3 x 420GB SAS HD) Backup SAS HD 1TB on LSILogic RAID SAS 1068E Controller Sierra on Kingston 120GB SSDNow on SATA port 1 First installed Win10 on RAID0 (LUN0). The Apple Xserves, possibly the Mac Pro RAID Card, use the LSI SAS1068E controller chip as well. Second installed OS-X Sierra on SSD with Clover. Aplied EFI to Windows EFI Systempartition, but cannot boot in to the Windows! Analyzing my system, I noticed that under the system information Sierra recognizes LSILogic RAID controller and single HD 1TB connected on it, but does not recognize the Windows partition on raid0. Which leads to the conclusion that clover does not recognize Raid0. I spent time searching for a possible solution to identify Raid0 in sierra, but due to specific configuration of my system, there are not many solutions on the net. I've been thinking about a solution to install the bootloader (Clover, or EasyBCD) on to Windows EFI partition and boot from it, and to add OS-X Sierra as second entry. Then I found this post and I think that would be the solution to my problem. I have only one question: If I install the Clover on Windows efi partition, could come to conflict with Clover installed on the OS-X partition ? PS: this is my first post on InsanelyMac after 6 years of hibernation, where a lot of things happened and changed. I'm glad to be back again and see how the "new kids on the block" rule the matter! RESPECT! Link to comment Share on other sites More sharing options...
intelcoresolo320 Posted August 17, 2017 Share Posted August 17, 2017 Thanks for this guide @fusion71au this helped me finally solve my issue of only being able to boot from installer usb! I used Clover 3333 because the newer versions didn't have the CLOVER folder (only pkg). Btw love your Tintin avatar! Link to comment Share on other sites More sharing options...
hnviqz Posted April 18, 2018 Share Posted April 18, 2018 very good, i see Link to comment Share on other sites More sharing options...
midi-sama Posted April 19, 2018 Share Posted April 19, 2018 Just going to jump here: sadly EasyUEFI now requires a paid license to add/edit/remove UEFI entires, basically it's useless in its "Free" form. Link to comment Share on other sites More sharing options...
intelcoresolo320 Posted June 3, 2019 Share Posted June 3, 2019 On 4/20/2018 at 12:51 AM, midi-sama said: Just going to jump here: sadly EasyUEFI now requires a paid license to add/edit/remove UEFI entires, basically it's useless in its "Free" form. You can use the free trial to do it. Link to comment Share on other sites More sharing options...
fjk61011 Posted September 15, 2020 Share Posted September 15, 2020 Used this tutorial to set up Dual Boot of Windows and openSUSE Link to comment Share on other sites More sharing options...
Recommended Posts