Ubuntu is not booting but printing weird things, either
/run/lvm/lvmetad.socket: connect failed: No such file or directory
- or
/sbin/cryptsetup not found
then falls back to busybox after a few minutes (sometimes..).
The error appeared after moving onto a new hard disk where I had to delete an encrypted partition. After chroot
ing into the root partition and running udpate-initramfs -u
the error mentioned in this Ask Ubuntu question popped up:
cryptsetup: WARNING: could not determine root device from /etc/fstab
I followed the setup proposed in this article: Full disk encryption with Ubuntu. Now I have a /
btrfs volume inside LUKS with an unencrypted /boot
partition. All this running on EFI with secure boot disabled.
I agree that it is a bit unintuitive advice, but it helped me a lot. At least this answer seems to have been the easiest to find with google.
– Karel Lenc Aug 28 '20 at 19:14