发表于 2019-2-21 19:17:21
Covben 发表于 2019-2-21 16:43
On a hackintosh it’s possible to dual boot macOS and Windows on the same hard drive disk, which I will explain how to here. Although it’s recommended that macOS be installed on a separate drive than Windows, it’s perfectly possible to dual boot Windows and macOS on the same drive for those that don’t have multiple hard drives to spare.
Dual-booting on separate hard drives is super easy you just install macOS on one drive and Windows on the other and then simply boot Windows as a temporary device or through the Clover menu. For those that want to install both macOS and windows on the same drive this guide to walk you through the steps.
Hackintosh Dual-Boot Guide
For those of you not familiar with dual-booting or a macOS hackintoshing. We will first need to format the drive as GUID using Disk Utility. Disk Utility is an application in macOS that is basically the equivalent of Disk Management in Windows and can be accessed in the same way Disk Management is either during the install or in the operating system after installation is completed.
The drive should to be formatted first in macOS Disk Utility as the GUID format is required to install macOS and doing it with Disk Utility will also create a larger 200MB hidden EFI partition, which is larger than what is created with Windows Disk Management (100MB) and will therefore be able to fit both the macOS and Windows EFI files as well as leave some extra room left over.
We can either make the Windows partition during the install or after the install. The reason you would want to do it during the install is if you wanted to have the Windows partition show up as first and the macOS partition as second, however personally I prefer having macOS first and Windows second as my hackintosh is reliable enough that I use macOS almost exclusively.
For Dual-Booting the only requirement is that the SSD/HDD be first formatted as GUID. You could install Windows before macOS if you really wanted to, but for this guide it makes sense to install macOS first and then Windows second as we already have to be in the macOS installer to format as GUID and don’t have to move anything around in the EFI with Windows installed after macOS.
Step 1: Access macOS
To create a macOS flash drive installer you will first need either a. Access to a Mac or b. A virtual machine running macOS. If you do not have a Mac or borrow then create a virtual machine running macOS using one of the two links below depending on whether you are using Intel or AMD as your CPU/Processor.
Intel: VIRTUAL MACOS: USE MACOS SIERRA ON A VIRTUAL MACHINE WITH VMWARE
AMD: HOW TO INSTALL MACOS SIERRA ON A RYZEN PC (VIRTUAL MACHINE / VMWARE)
Step 2: Make a macOS High Sierra Hackintosh
Now that we have access to macOS we will now create a flash drive installer containing macOS install files and then install macOS. Based on what CPU/Processor you are using following the full guide below and then return to this one once you have macOS running. Just os you know you will need to completely wipe the drive you are using in order to format as GUID using Disk Utility. Also after macOS keep the flash drive the way it is as you will need it later. You will need another separate flash drive to install Windows if you don’t already have an installer.
Intel: GUIDE TO FRESH INSTALLING MACOS HIGH SIERRA ON A HACKINTOSH (10.13 UPDATE)
Ryzen: FRESH INSTALLING MACOS HIGH SIERRA ON AMD RYZEN HACKINTOSH GUIDE (10.13)
Step 3: Create a Partition for Windows
Now that we have macOS installed it’s time to make some room for Windows.
Open Disk Utility
Select Show All Devices by clicking on the View button at the top left corner of Disk Utility
Select the Drive (The drive is name of the drive like Samsung/Crucial and is indicated by the arrow to the left of it’s name)
Click Partition button at the top toolbar
Add a new partition by clicking the [+] button under the circle
Give it a name and desired size I would give a minimum of 50GB for Windows 10
Set Format: ExFat
Step 4: Install Windows 10 on Hackintosh
If you dont have a way to install Windows you will need to create USB flash drive with Windows on it, but don’t wipe and use the same flash drive you used to install macOS as you still need that to regain access to macOS in Step 5.
Download Windows Installer Manager/ISO
Create your installer
Boot the UEFI: partition of the Windows Installer (Note: Very important that you boot of UEFI: partition of the flash drive otherwise you will get a GPT error and the “Next” button will be greyed out)
Go through the first parts of the installer and select Custom: Install Windows only (advanced) when you reach that step
Select the Windows partition you created in Disk Utility
Click OK when the data lost prompt appears
Complete the install… Note: System will restart multiple times during install
Step 5: Cleanup EFI & Regain Clover Access on Boot Drive
When finished messing around in Windows it’s time to jump back into macOS. To do that we are going to using that macOS flash drive installer that you should have kept as a backup to boot back into macOS. The reason we can’t use the drive macOS/Windows is installed on to boot macOS is because the Windows installer modified our EFI folder overriding Clover Boot loader with Windows Boot Manager causing the UEFI: (your_drive_name) not to show up in BIOS boot devices or in the temporary boot device menu.
There are a couple different methods to a fix dual-booting hackintosh using only one drive for both installs. It’s done by messing around with various .efi files to get dual-booting working. I’ve tested a couple different methods and this one below is the easiest.
To fix our dual-booting hackintosh we need to deal with a file called bootmgfw.efi which is preventing access to Clover at system boot. All you need to do is rename bootmgfw.efi to bootmgfw-orig.efi causing Clover to become unblocked. We add the tag -orig to the name so that it’s still recognizable file and will show the Windows EFI partition for booting in the Clover Boot loader Menu.
To rename bootmgfw.efi:
Boot off the UEFI: partition of your flash drive macOS installer
Boot macOS drive
Open Clover Configurator
Select Mount EFI on left column
Click Mount Partition for the drive macOS and Windows is installed on
Click Open Partition
Navigate to EFI/Microsoft/Boot/
Rename bootmgfw.efi to bootmgfw-orig.efi
Restart and UEFI: (your_drive_name) should be an available boot device
(Optional) Override Windows Boot Manager
If for some reason UEFI: (your_drive_name) isn’t showing as an available boot device there is a way to override Windows Boot Manager and have it redirect to Clover. To do that first boot macOS off your flash drive again.
Mount the EFI partition of your boot drive using Clover Configurator again
Open the EFI and navigate to EFI/BOOT/
Navigate to EFI/Windows/Boot
Paste BOOTX64.efi here
Rename BOOTX64.efi to bootmgfw.efi after pasting
Restart and boot off Windows Boot Manager and you’ll notice it redirects to Clover instead of booting Windows (Pretty cool huh?)
Step 6: Dual-Boot thru Clover
You can now use the Clover Menu to boot Windows.To do that select Boot Windows EFI from EFI in Clover.
You are now finished congrats!!!