All health. Today I ran into a problem with loading fedora 37. And so, I immediately say and write - I HAVE BOOTED THE SYSTEM BEFORE THIS WITHOUT PROBLEMS AND THE DISK IS NOT DAMAGED.
Error: “Cannot open access to console, the root account is locked. See sulogin(8) man page for more details.”
When I pressed enter, as I understand it, everything got worse.
Reason: I have several systems from which I could boot, and I manually chose always the top one, but by default boot was a little lower and I decided to give it the opportunity, after I came across this error and pressed enter, the system manager configuration was updated and now I I can’t boot from either one or the other.
You can boot a Fedora live session and follow the GRUB recovery instructions.
If you still want to proceed with the recovery console, set the root password.
Health to you too brother, I’m here from the future, take the steps to solve your problem:
- When you boot the system, you select your system in the grub menu, boot with the default one but at the same time PRESS THE “e” BUTTON brother .
- After that you have to edit and find the line “ro” to “rw init=/sysroot/bin/sh” and then press CTRL+X to load the current settings.
- Now you need to change the root password, for this we use the command “chroot /sysroot/” and “passwd root”, execute them one by one.
- After you enter any password you want, it will be needed when you boot your system, after you have entered it, repeat it again to confirm and finally change it.
- Execute “touch /.autorelabel” to enable some obscure “SELinux Relabeling”, you don’t need to know it brother, just do it.
- Type “exit” and “reboot” to get out of this shit.
- After that, finally enter your password and fix the system.
- “journalctl -xb” → “page down”, found an error, read which section is dissatisfied → CTRL+C, → “fsck -f /YOUR-section”
- That’s it brother, press Y and accept everything, the system has been restored.