I have a Mac mini with macOS High Sierra and an external SSD drive connected via USB also with High Sierra on it.
After converting the external SSD to APFS it doesn't boot anymore - my Mac can't see it as bootable and doesn't show it when booting with holding Option key.
If I go to System Preferences -> Startup Disk and choose the external drive I get an error:
You can’t change the startup disk to the selected disk. Running bless to place boot files failed.
It seems that macOS can't install some boot files on that disk. Running First Aid on that disk in Disk Utility also produces an error:
Verifying allocated space. error: Underallocation Detected on Main device: (7219537+1) bitmap address (184373) Space Verification failed. The volume /dev/disk1s2 could not be verified completely.
What can I do to restore those boot files and make the SSD finally work? I don't want to erase it and reinstall.