How to add a boot entry in OpenCore - sarkrui/Hackintosh-Z390-Aorus-Pro-9700K-RX580 GitHub Wiki
Dual Boot (Windows)
What does a boot entry look like?
Entry
Root/Misc/Entries
Properties
-
Comment
:Comment for the key -
Enabled
:Entry switch -
Name
:Name shown on OpenCore Boot -
Path
:Absolute directory path to Window Boot Manager
Example 1:Windows Boot Manager Path
consisting of an EFI path
+ a boot loader path
PciRoot(0x0)/Pci(0x1D,0x0)/Pci(0x0,0x0)/NVMe(0x1,B2-EF-89-44-4A-44-1B-00)/HD(2,GPT,28F2E5DC-DD77-4FBA-A4AE-707A6E74AE21,0x64800,0xFA000)/\EFI\Microsoft\Boot\bootmgfw.efi
How to find your Windows EFI path
-
Select
Shell.efi
from OpenCore boot options (should be enabled in /Misc/Tools/Shell.efi) -
Select your EFI by typing its corresponding identifier, for example, mine
EFI
is FS0: -
I type
fs0:
- List all files to check if it is correct
dir
-
You shall keep
fs
your EFI volumes anddir
until you find the EFI volume where the Windows Boot Manager locates and memorize its identifier index (e.g. mine isfs6
) -
Print the mapping table of all volumes and save it to a file named
map_table.txt
map > map_table.txt
- Exit
exit
-
Return macOS
-
Mount the volume (e.g. disk0s1) where you stored the
map_table.txt
and open it with your preferred text editor
sudo diskutil mount disk0s1
open /Volumes/EFI/map_table.txt
- Find the line that contains
fs6
and copy itspath
PciRoot(0x0)/Pci(0x1D,0x0)/Pci(0x0,0x0)/NVMe(0x1,20-20-62-00-28-A7-79-64)/HD(4,GPT,EBC45808-96D3-4FB2-AC30-0412164C10E8,0x6BA4F000,0xFA000)
-
Add the bootloader path:
\EFI\Microsoft\Boot\bootmgfw.efi
-
Finally, a completed path going to be filled in the
/Misc/Entries/
goes as follows
PciRoot(0x0)/Pci(0x1D,0x0)/Pci(0x0,0x0)/NVMe(0x1,20-20-62-00-28-A7-79-64)/HD(4,GPT,EBC45808-96D3-4FB2-AC30-0412164C10E8,0x6BA4F000,0xFA000)/\EFI\Microsoft\Boot\bootmgfw.efi