Hello all. I’m looking for some help recovering my system!
After a couple of updates (without rebooting, stupidly), my computer won’t boot: I enter my boot password and can get to the GRUB menu, but whichever entry I select (including old btrfs snapshots), I get dumped to a command line with the following error messages:
mount: /openswap_keymount: fsconfig() failed: No such file or directory.
Failed to open key file.
umount: openswap_keymount: not mounted
Failed to stat resume device '/dev/mapper/luks_<long UUID>': No such file or directory
mount: /new_root: fsconfig() failed: No such file or directory.
ERROR: Failed to mount '/dev/mapper/luks_<a different long UUID>' on real root
So far, I’ve tried booting into a live USB, but haven’t been able to mount my system:
> cryptsetup open --type luks /dev/nvme0n1p2 luks
[prompts for password, works fine]
> mount /dev/mapper/luks /mnt
mount: /mnt: fsconfig() failed: No such file or directory.
dmesg(1) may have more information after failed mount system call.
The only clue I can get from dmesg is BTRFS error (device dm-0 state E): open_ctree failed: -2.
Looking for any advice about where to go from here.
Thanks for the replies. There’s probably a 9/10 chance this is just me being stupid, but I still can’t get my filesystem to mount.
When I do mount -t btrfs -o subvol=@ /dev/mapper/luks /mnt, I still get the fsconfig() failed error. I’ve tried with various different options including subvol=/ and specifying zstd compression, but no luck.
I also ran btrfs check on the filesystem and it didn’t find any errors, which leads me to think I’m just being an idiot.
So, just to verify every step along the way:
what do you see right after booting the ISO
lsblk -f
And what do you see after decrypting the device with:
sudo cryptsetup open /dev/sda2 encrypted
(sda2 is an example - use the device name shown from the previous command
the word “encrypted” is an arbitrary word you can choose)
I was able to mount my filesystem read-only using mount -o ro,rescue=all /dev/mapper/luksp2 /mnt, do a backup, unmount and then run btrfs rescue zero-log /dev/mapper/luksp2 to clear the btrfs log tree, which was apparently causing the problem. Then I was able to chroot into my system and run an update. My system boots fine now!