[SOLVED] LVM encryption

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] LVM encryption

Postby alda81 » May 5th, '18, 09:43

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
Last edited by alda81 on May 5th, '18, 15:27, edited 1 time in total.
alda81
 
Posts: 3
Joined: May 5th, '18, 09:11
Location: Prerov, Czech Republic

Re: LVM encryption

Postby doktor5000 » May 5th, '18, 12:48

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?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17630
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: LVM encryption

Postby alda81 » May 5th, '18, 13:10

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
Attachments
mageia_new_kernel.jpg
error with new kernel
mageia_new_kernel.jpg (95.73 KiB) Viewed 1062 times
alda81
 
Posts: 3
Joined: May 5th, '18, 09:11
Location: Prerov, Czech Republic

Re: LVM encryption

Postby doktor5000 » May 5th, '18, 14:47

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17630
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: LVM encryption

Postby alda81 » May 5th, '18, 15:26

@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
alda81
 
Posts: 3
Joined: May 5th, '18, 09:11
Location: Prerov, Czech Republic


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron