Problem Description
About 5 years ago, I upgraded the original HDD to SSD (Samsung 840 evo), everything was ok until last November.
After a trip to an examination (4 hours drive, 2 hours out, 2 hours back), when I turn on the power there is a Question Folder mark display on the screen.
Because this one is a spare computer, and there is no important data, so I tried to reinstall OS X. But after a long wait, the computer still cannot boot up, still question folder mark.
When I try to reinstall again,the SSD cannot be found in Install OS X Program or Disk Utility Program. I take off the SDD, connect it to a PC, and delete the partition, those Mac APPs can find it again, but Disk Utility Program cannot erase the disk, the erasing progress will be stuck on somewhere.
I thought this SSD is dead. So I replaced it with a new SSD. Try again, the same problem(After download files, reboot to continue to install will display Question Folder mark).
In addition to these:
I tried to reinstall from Recovery Disk. Still, the same problem.
I tried run Apple Hardware Test, did not find any problem.
After a lot of tries, when I erase the partition, this error popup:
Volume Erase failed
Volume Erase failed with the error:
POSIX reports: The operation couldn't be completed.
Input/output error
Conjecture
When I drive to then examination perhaps some bumps and shakes broke some part in the computer? I don't know.
It seems like the Part of SATA I/O or something on logic board goes wrong?
Update
I installed macOS to an external drive, it workes. I tried several times, and I found maybe the problem is the cable. I order a new cable online, I will try again later.
Update 2
After replacing the cable, problem fixed. :)