Some followup on a discrepancy in the advice I am offering and the others' advice.
I suggested
diskutil repairVolume
.
But all the other posts advise using
diskutil repairDisk
.
If the drive was formatted using Disk Utility and copied using CCC, the partition table will not be damaged, nor will any volume, so neither of these should be needed.
This makes me wonder if it might be that HackinDROM is causing a problem?
CCC will not damage the drive structure.
As to repairing, rather than reformatting and re-copying...
Here's what the
diskutil
man page says about
repairDisk
repairDisk
Repair the partition map layout of a whole disk intended for booting or data use on a Macintosh. The repairs further include, but are not limited to, the repair or creation of an EFI System Partition, the integrity of any Core Storage Physical Volume partitions, and the provisioning of space for boot loaders. Ownership of the affected disk is required; it must be a whole disk and must have a partition map.
This might seem like what you want.
But when you run
repairDisk
, you will see a warning;
Repairing the partition map might erase disk, proceed (y/N)?
At this point you need to be ready to reformat and recopy to the backup drive if it goes wrong.
Here's the man page for
repairVolume
:
repairVolume
Repair the file system data structures of a volume. The appropriate fsck program is executed and the volume is attempted to be left mounted or unmounted as it was before the command. Any underlying Storage System (e.g. Core Storage, APFS) is repaired before the given target volume. In most cases (e.g. except mount-read-only), the target volume must be unmountable; in all cases, the underlying storage media must be writable. "Live" repair (e.g. of a file-writable mounted volume) is not supported. Ownership of the affected disk is required.
repairVolume
is equivalent to "First Aid" in Disk Utility. It will not threaten the drive structure and will ensure the filesystem of the ESP is coherent. If it fails the rest of the drive will be intact. This shouldn't be needed either, but it's less risky.
I think this is what you want.
If you are having a problem with a backup drive, do not run
diskutil repairDisk
on
disk0
, that is your primary drive. Locate the backup drive's designator as previously described.
And to repeat, as the backup drive is not booted, you do not need to boot recovery or another macOS instance, just use run from your existing install.
I suggest that once you get the drive structure resolved, you try something other than HackinDROM to mount your ESPs and copy your EFI folders. You can learn to mount with
diskutil
directly or find a another helper.
I like CorpNewt's
MountEFI
script:
An even more robust edition of my previous MountEFI scripts - corpnewt/MountEFI
github.com