【Hackintosh】macOS 下制作 OpenCore 引导 U 盘

Posted by 西维蜀黍 on 2021-05-08, Last Modified on 2023-04-12

制作 OpenCore 引导 U 盘

Setting up the installer

Now we’ll be formatting the USB to prep for OpenCore. We’ll want to use macOS Extended (HFS+) with a GUID partition map. This will create two partitions: the main MyVolume and a second called EFI which is used as a boot partition where your firmware will check for boot files.

  • Note: By default, Disk Utility only shows partitions – press Cmd/Win+2 to show all devices (alternatively you can press the View button)

Mount EFI

Approach 1 - Manual

Find the Drive to Mount

$ diskutil list
...

/dev/disk3 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *15.7 GB    disk3
   1:                        EFI EFI                     209.7 MB   disk3s1
   2:                  Apple_HFS MyVolume                15.3 GB    disk3s2

在 U 盘被格式化后,EFI 分区就会被创建,但是在默认情况下不会被 mount 。

因此找到这个 EFI 分区的 IDENTIFIER,在我的情况中,是 disk3s1

Mount (or Remount) the Drive

$ sudo diskutil mount /dev/disk3s1

$ sudo diskutil unmount /dev/disk3s1

Approach 2 - Using MountEFI

Adding OpenCore Files

Now lets open up our EFI folder and see what’s inside:

更新 OpenCore 版本

Refer to https://swsmile.info/post/hackintosh-maintenance/#update-opencore

Reference