Phantom EFI partition causing errors
I needed to resize partitions on the 1.0 TB SSD in my 2013-2019 Mac Pro running High Sierra. Disk Utility would not allow this without first creating a new partition, which I didn't want to do, so I booted from an external clone and used iPartition. I shrank two of the three partitions, including the macOS partition, and enlarged one partition. There seemed to be no problems.
I rebooted from the internal SSD and ran the Partition Map test in TechTool Pro, which found problems with the partition map layout of the drive. I ran TTPro's Partition Repair, which was unable to perform a repair.
I then ran First Aid in Disk Utility, which said:
Checking for an EFI system partition
Problems were found with the partition map which might prevent booting
So I ran diskutil in Terminal, which produced the following (I've redacted my name here):
[REDACTED]-Mac-Pro:~ [REDACTED]$ diskutil list disk0
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk0
1: Apple_HFS HDD 344.3 GB disk0s1
2: Apple_HFS Documents SSD 332.9 GB disk0s2
3: Apple_HFS macOS SSD 290.8 GB disk0s3
4: Apple_HFS eDrive 31.9 GB disk0s4
5: EFI EFI 209.7 MB disk0s5
[REDACTED]-Mac-Pro:~ [REDACTED]$ diskutil repairDisk disk0
Repairing the partition map might erase disk0s1, proceed? (y/N) y
Started partition map repair on disk0
Checking prerequisites
Checking the partition list
Adjusting partition map to fit whole disk as required
Checking for an EFI system partition
Problems were encountered during repair of the partition map
Error: -69767: This disk doesn't contain an EFI system partition; if you want to
start up your computer with this disk or include it in a RAID set, back up your
data and partition this disk
Even though an EFI partition of 209.7 MB is listed as disk0s5, diskutil (and apparently TTPro and Disk Utility) think "This disk doesn't contain an EFI system partition."
I've had no problems booting up over the couple of days since this happens, and the Mac works normally (although the original files for a couple of aliases in one program seem to have disappeared). Nevertheless, the errors trouble me. Why would the Mac think there's no EFI partition on the disk when one is clearly listed by "diskutil list"?
(BTW, the partition named "HDD" is just name that way because it contains files I transferred from an HDD in my old "cheesegrater" Mac Pro. It's really just a partition on the SSD.)
Any non-drastic fixes come to mind?
Thanks.
Mac Pro, macOS 10.12