Let's try these:
- Shutdown the computer, wait 30 seconds, restart the computer.
- Disconnect all third-party peripherals and remove any support software like drivers and plug-ins.
- Resetting your Mac’s PRAM and NVRAM
- Reset the System Management Controller (SMC)
- Start the computer in Safe Mode. Test in safe mode to see if the problem persists, then restart normally. This is slower than a standard startup.
Are you able to log in from safe mode? If you can then try the two items I sent earlier. If you are still stuck then you need to do the following:
Erase and Install OS X Restart the computer. Immediately after the chime hold down the Command and R keys until the Apple logo appears. When the Utility Menu appears:
- Select Disk Utility from the Utility Menu and click on Continue button.
- When Disk Utility loads select the drive (out-dented entry) from the Device list.
- Click on the Erase icon in Disk Utility's toolbar. A panel will drop down.
- Set the Format type to Mac OS Extended (Journaled.)
- Click on the Apply button, then wait for the Done button to activate and click on it.
- Quit Disk Utility and return to the Utility Menu.
- Select Reinstall OS X and click on the Continue button.
If you have no functioning Recovery HD then you will have to try using Internet Recovery so be sure you have your Wi-Fi and/or Ethernet connected to the Internet via your home LAN setup and it is turned on.
Internet/Network Recovery of El Capitan or Later on a Clean Disk
- Restart the computer. Immediately after the chime hold down the (Command-Option-R) keys until a globe appears.
- The Utility Menu will appear in from 5-20 minutes. Be patient.
- Select Disk Utility and click on the Continue button.
- When Disk Utility loads select the drive (usually, the out-dented entry) from the side list.
- Click on the Erase tab in Disk Utility's main window. A panel will drop down.
- Set the partition scheme to GUID.
- Set the Format type to APFS (SSDs only) or Mac OS Extended (Journaled.)
- Click on the Apply button, then click on the Done button when it activates.
- Quit Disk Utility and return to the Utility Menu.
- Select Reinstall OS X and click on the Continue button.
Note:
1. To install the version of OS X that was currently installed use Command-Option-R.
2. To install the original factory version when the computer was new use Command-Option-Shift-R.