You are not logged in.

#1 2017-07-29 18:55:57

barnabyh
Member
Registered: 2016-08-16
Posts: 71

Luks encrypted volumes not found after upgrade

This topic is leading on from this thread. Following the steps outlined there I encountered what looked like a well documented bug with lvm, with the boot loader not being able to find the root logical volume.

To try and get to the bottom of this I once again mounted the LVM with luks-crypt and chrooted into the system from a debian based live cd.

Running update-initramfs -u when trying to generate the /boot/initrd.img-* resulted in the following error which seems a good pointer.

cryptsetup: WARNING: invalid line in /etc/crypt tab for luks-crypt -
cryptsetup: WARNING: invalid line in /etc/crypt tab for luks-crypt -
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.utf8"
are supported and installed on your system. 
perl: warning: Falling back to standard locale ("C").

OK, so after checking crypttab in chroot with nano it appears it got messed up with using the UUID for sda2 logical volume instead the one for sda5 which is my vgname-root.

This is easily rectified.

I suppose the other problem re. locale settings is not so critical and can be done with  #dpkg-reconfigure locales.

Wish me luck!

Last edited by barnabyh (2017-07-29 18:57:23)


From ArchBang to SlackBang | Project SlackBang - updated as we go along. | LXDE/LXQT for Slackware

Say no to bugs. - It's not a bug, it's a worm.

Offline

Board footer

Powered by FluxBB