Hello everyone
After some hours trying to fix an issue, I’m a bit stuck.
Context:
- Today I tried installing VirtualBox on Fedora 40. At some point I decided it was becoming too messy, and restored to an immediately previous state using Timeshift.
- My system is installed with EFI on an encrypted BTRFS drive with @ and @home subvolumes. No dual boot, just Fedora 40.
Issue: After Timeshift recovery, grub2 loads fine, then I choose my install, the decryption prompt appears, and then it enters recovery mode and shows this error:
Cannot open access to console, the root account is locked.
Things I tried so far and their results:
Action 1: Using a LiveUSB and running Timeshift again, even trying different snapshots.
Result: No changes.
Action 2: Using a LiveUSB, entering chroot
and updating the grub config with sudo grub2-mkconfig -o /boot/grub2/grub2.cfg
Result: No changes. I guess that wasn’t the issue.
Action 3: Setting up a root password as instructed here, via live chroot
again.
Result: Grub loads, encryption password passes, recovery mode initiates, and then it asks for the root password as expected. After entering it, I get this:
sulogin: crypt failed: Invalid argument
login incorrect
I’m pretty sure I’m using the root password I set up. I could try this step again, but at this point I’m not sure this is even the right approach.
Edit: Tried again, and now the passwd root
command replies with “permission denied, password unchanged”.
Update:
Action 4: Live chroot
again, and then I tried dnf upgrade
to see if that could fix something in the restored install. Yeah, at this point I’m just trying random things
Result:
There are no enabled repositories in "/etc/yum.repos.d", "/etc/yum/respos.d", "/etc/distro.repos.d"
Edit: Tried this again, this time doing mount -o bind /etc /mnt/etc
before chroot
, and now dnf
seems to work. As /etc was not mounted, the chrooted was picking the /etc folder from the Live distro, which was not Fedora.
After updating the system via chroot, I reboot, and… it’s not entering emergency mode anymore, but after the decryption prompt it gets stuck at the loading screen.
Any suggestions on how to approach this, or where the issue may be? Should I just try to fix the system from chroot? What should I try then?