Page 1 of 1

[SOLVED] LVM encryption

PostPosted: May 5th, '18, 09:43
by alda81
Hi,
i installed Mageia 6 64bit with Xfce on my laptop Lenovo T440p, i tried to use encryption.

I maked separate partiton for /boot (1GB),
encrypted LVM containing:/, swap,/home
and separate unencrypted partition for data (/data).

I upgraded system, but i have now this problem:

1. in the boot menu, I missed the new kernel, i tried to update boot menu with update-grub2, but the system will not boot with it, i have to boot with old kernel

in boot partition i see now this:
Code: Select all
config-4.14.30-desktop-3.mga6
config-4.9.35-desktop-1.mga6
dracut/
grub2/
initrd.img@
initrd-4.9.35-desktop-1.mga6.img
lost+found/
symvers-4.14.30-desktop-3.mga6.xz
symvers-4.9.35-desktop-1.mga6.xz
System.map-4.14.30-desktop-3.mga6
System.map-4.9.35-desktop-1.mga6
vmlinuz@
vmlinuz-4.14.30-desktop-3.mga6
vmlinuz-4.9.35-desktop-1.mga6

2. i can not run some items in MCC like Samba, NFC, set way of introducing the system, manage partitions, ...
I get these error messages:
Code: Select all
Too late to run INIT block at /usr/lib/perl5/vendor_perl/5.22.2/x86_64-linux-thread-multi/Glib/Object/Introspection.pm line 257.
Ignore the following Glib::Object::Introspection & Gtk3 warnings
Subroutine Gtk3::main redefined at /usr/lib/perl5/vendor_perl/5.22.3/Gtk3.pm line 525.
device-mapper: table ioctl on crypt_sda5 failed: Takové zařízení nebo adresa neexistuje
Command failed
INTERNAL ERROR: unknown device mapper/crypt_sda5
MDK::Common::Various::internal_error() called from /usr/lib/libDrakX/devices.pm:131
devices::entry() called from /usr/lib/libDrakX/devices.pm:146
devices::make() called from /usr/lib/libDrakX/fs/type.pm:257
fs::type::call_blkid() called from /usr/lib/libDrakX/fs/type.pm:264
fs::type::type_subpart_from_magic() called from /usr/lib/libDrakX/fs/dmcrypt.pm:172
fs::dmcrypt::_get_existing_one() called from /usr/lib/libDrakX/fs/dmcrypt.pm:131
fs::dmcrypt::_get_existing_one_with_state() called from /usr/lib/libDrakX/fs/dmcrypt.pm:59
fs::dmcrypt::read_crypttab_() called from /usr/lib/libDrakX/fs/dmcrypt.pm:71
fs::dmcrypt::read_crypttab() called from /usr/lib/libDrakX/fsedit.pm:104
fsedit::dmcrypts() called from /usr/lib/libDrakX/fsedit.pm:317
fsedit::get_hds() called from /usr/libexec/diskdrake:74

does anyone know where could be a mistake? did I make a mistake somewhere? thank you for your help

Re: LVM encryption

PostPosted: May 5th, '18, 12:48
by doktor5000
So currently the main issue is that the newer kernel 4.14.30 is not listed in grub - but the system boots and automatically tries to open your encrypted partitions just fine with the older kernel, is that correct?

Re: LVM encryption

PostPosted: May 5th, '18, 13:10
by alda81
hi,
the new core was not shown in the grub, after manual entering the command update-grub2 i can see the new core in grub, but when i want to run Mageia with new kernel a get this error (in the picture)

booting with the old kernel works

I wanted to ask if someone has a similar problem or it is a unique case, thank you

Re: LVM encryption

PostPosted: May 5th, '18, 14:47
by doktor5000
It seems you may need to (re)create the initrd, as looking at your output from the contents of /boot there is none for 4.14.30.
You can try as root with dracut -f if that will generate it otherwise you need to reinstall the kernel package for 4.14.30

Re: LVM encryption

PostPosted: May 5th, '18, 15:26
by alda81
@doktor5000 you are KING :D

dracut -f doesn't help,
but when i uninstalled/installed kernel package for 4.14.30, then my laptop began to work

i have no problem with booting with new kernel and the problems described in item two are gone
now my computer works just fine, thank you very much - problem SOLVED