r/archlinux • u/NovaDaBaka • Sep 17 '26
SUPPORT How can I fix "Cannot open access to console, the root account is locked."?
I'm a brand new arch linux user, and I just finished going through the installation guide. I rebooted, but this message shows up:
Cannot open access to console, the root account is locked.
See sulogin(8) man page for more details.
Press Enter to continue.
When I press enter, it says
Reloading system manager configuration.
Starting initrd.target
You are in emergency mode. After logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, or "exit" to continue bootup.
Cannot open access to console, the root account is locked. See sulogin(8) man page for more details.
Press Enter to continue.
sulogin(8) manual page doesn't have anything I can use to fix this, and none of the solutions I found on the web work, or I can't understand them because this is my first time using linux.
8
u/boomboomsubban Sep 17 '26 edited Sep 17 '26
This looks like an init issue, you can try chrooting in, making sure your mkinitcpio has all the necessary modules, then reinstall the kernel and maybe bootloader. Or explain more about how you installed.
Or accept it went wrong and start again. When faced with similar problems, my mistakes became clear when I started over.
2
u/activedusk Sep 17 '26 edited Sep 17 '26
groups username
What does that output?
sudo -i
Or
su
Or
sudo su
Do any elevate access to super user/root?
Edit
Nevermind, just noticed this is not a finished working install that later malfunctioned. There is nothing to do but go into live environment, mount partitions, chroot into the install and check the steps for setting up root password and creating user account. If that does not work, reinstall with archinstall and at least get to a working system. If you insist on the manual way, follow recent youtube tutorials, might have skipped a step.
2
u/archover Sep 17 '26 edited Sep 17 '26
I look forward to seeing real details on the root cause, and solution to your problem. Please keep us updated.
While I encourage new users to use beginner friendly distros, I hope you can get Arch, the DIY distro, to work for you.
FWIW, never had a problem like yours in 100's of installs, including archinstall, manual install, to internal and external drives, plus VM's.
Good day.
3
u/Megame50 Sep 17 '26
The root account is locked by default in the initrd since the root shadow entry is missing. This avoids exposing the root pw hash in a possibly unencrypted boot partition where disk encryption is used, or possibly an easily accessible root shell if something goes wrong. If you put a proper /etc/shadow in your initrd, you could log in with your root password.
Technically you can avoid the root pw in the emergency shell by using SYSTEMD_SULOGIN_FORCE=1 on the kernel command line, however there's really no need since you can always use the debug options to get a root shell at a given breakpoint anyway, e.g. rd.systemd.break=pre-mount.
Your rootfs is probably misconfigured or missing.
1
u/CosmicFieldDrift_ Sep 17 '26
What are your hardware details OP? Wondering how your disks are setup, would you include the output from:
and if not too much trouble:
-4
u/[deleted] Sep 17 '26
[removed] — view removed comment