Booting to black screen
My MacBook Pro started booting to black screen with no cursor and no prompt for password. If I start it with Command+R pressed and go to Disk Utility, I see that Macintosh HD drive is unmounted. I mount it manually, it prompts me for the password, and then successfully runs the diagnostic. I can also view all folders I have on the disk. I reboot the MacBook again, go to Disk Utility only to see that the disk is unmounted. The only time I am prompted for the password is when I mount the disk, but not during the startup.
It looks like it all started due to encryption, but I am not sure. What can be done to fix it?
MacBook Pro