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

  1. Select Shell.efi from OpenCore boot options (should be enabled in /Misc/Tools/Shell.efi)

  2. Select your EFI by typing its corresponding identifier, for example, mine EFI is FS0:

  3. I type

fs0:
  1. List all files to check if it is correct
dir
  1. You shall keep fs your EFI volumes and dir until you find the EFI volume where the Windows Boot Manager locates and memorize its identifier index (e.g. mine is fs6)

  2. Print the mapping table of all volumes and save it to a file named map_table.txt

map > map_table.txt
  1. Exit
exit
  1. Return macOS

  2. 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
  1. Find the line that contains fs6 and copy its path
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)
  1. Add the bootloader path: \EFI\Microsoft\Boot\bootmgfw.efi

  2. 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