I have a Ruspberry pi 4 and a 5.5 terabyte hard drive.
Everything worked well for about 8 months, but something went wrong yesterday.
In the afternoon, I changed the time zone through rasp-config, saved and continued my work. In the evening of the same day, the electricity in my house went out several times, but after 30 minutes it continued working again.
The next morning I saw that I could not connect via SSH to my Raspberry pi 4. I took out my keyboard, monitor and connected directly. I saw the following error during startup:
Cannot open access to console the root account is locked see sulogin(8) man page for more details
After that, I couldn’t use the command line. The Enter key didn’t help. It all started from the beginning.
On the Internet, I read that you can insert a Micro-sd card into a PC in cmdline.txt add “init = / bin / sh” at and save.
Then I got access to the command line, but there was clearly some error with the system.
Tell me how I can better solve the problem? I might still be able to fix the operating system. If this fails, how can I best restore access to my storage node? I will also ask you to take into account in the answers that I am new and may not understand all the terms and meanings. If you need to check something, or show a screenshot, tell me about it.
By the way, my 5.5 terabyte external hard drive is ok, only Raspbian OS is damaged
Raspberry Pi OS (32-bit) Lite