iMac won’t boot up
I was using my iMac the other day when it suddenly froze. I held down the power button and it turned off. I hit the power button again and the chime sounded like normal. The screen that came up was the Apple logo and a loading bar appeared. It got all the way to the end and then nothing. The bar was full but nothing was happening. I left it on for a couple of hours but still nothing. So I held the power button again and restarted the iMac. Nothing. Everytime I did that the loading bar would fill up and stay like that. I attempted to press command and P to start the UtI tilt screen. It worked but now when I start the iMac it goes directly to the Utility page. I’ve attempted to re-install High Sierra as it is one of the options, but when I get to the part where I have to select a drive, I click on the iMac drive but a little message pops up saying that it’s locked. I’m stuck. If there is anything I can do to fix it, please help. Otherwise I’ll have to take it to get fixed.
[Re-Titled by Host]