Macos re-create EFI partition

  1. List partions

diskutil list        

will return

/dev/disk0 (internal, physical):
   #:                       TYPE                          NAME                                SIZE          IDENTIFIER
   0:      GUID_partition_scheme                                                     *1.0 TB            disk0
   1:             Apple_APFS_ISC.          Container disk1                    524.3 MB       disk0s1
   2:                 Apple_APFS               Container disk3                   994.7 GB       disk0s2
   3:       Microsoft Basic Data          Reserve for EFI                      5.0 GB           disk0s3        

2. We will use index 3 Reserve for EFI as our EFI partition, first we need to unmount disk0, then check detail partition in /dev/disk0

diskutil umountDisk disk0
gpt show -l /dev/disk0        

it will show

      start               size               index               contents
          0                   1                PMBR
          1                    1              Pri GPT header
          2                   4               Pri GPT table
          6             128000          1  GPT part - "iBootSystemContainer"
     128006    242837545      2  GPT part - "Container"
  242965551    1310709        3  GPT part - ""        

3. Remove the index 3 partitiongpt remove -i 3 /dev/disk0

gpt remove -i 3 /dev/disk0
gpt show -l /dev/disk0        

it will show

      start               size               index               contents
          0                   1                PMBR
          1                    1              Pri GPT header
          2                   4               Pri GPT table
          6             128000          1  GPT part - "iBootSystemContainer"
     128006    242837545      2  GPT part - "Container"
  242965551    1310709               

4. re-add partition index 3 for EFI, you may need to umountDisk again because gpt has been show the partition

diskutil umountDisk disk0
gpt add -b 242965551 -i 3 -s 1310709 -t efi /dev/disk0
diskutil list        

it will show

/dev/disk0 (internal, physical):
   #:                       TYPE                          NAME                                SIZE          IDENTIFIER
   0:      GUID_partition_scheme                                                     *1.0 TB            disk0
   1:             Apple_APFS_ISC.          Container disk1                    524.3 MB       disk0s1
   2:                 Apple_APFS               Container disk3                   994.7 GB       disk0s2
   3:                       EFI                                 EFI                                  5.0 GB           disk0s3        

要查看或添加评论,请登录

Joe Z.的更多文章

社区洞察

其他会员也浏览了