Author Topic: Bug? Failed to setup dm-crypt key -Check that kernel supports  (Read 3351 times)

0 Members and 1 Guest are viewing this topic.

Offline philm

  • Core Team
  • *****
  • Posts: 10671
    • Manjaro Linux
  • Branch: Unstable
  • Desktop: XFCE
  • GPU Card: Geforce GTX 650
  • GPU driver: non-free
  • Kernel: Maintainer - so all ;)
  • Skill: Guru
Re: Bug? Failed to setup dm-crypt key -Check that kernel supports
« Reply #15 on: 21. February 2016, 12:00:04 »
Try if cryptsetup 1.7.0-1.1 fixes it. I already noted which patches are needed.

Offline philm

  • Core Team
  • *****
  • Posts: 10671
    • Manjaro Linux
  • Branch: Unstable
  • Desktop: XFCE
  • GPU Card: Geforce GTX 650
  • GPU driver: non-free
  • Kernel: Maintainer - so all ;)
  • Skill: Guru
Re: Bug? Failed to setup dm-crypt key -Check that kernel supports
« Reply #16 on: 21. February 2016, 12:03:44 »
How to fix your system if you have already "fucked up" your system:

« Last Edit: 21. February 2016, 13:21:46 by philm »

Offline torvic9

  • Sr. Mitglied
  • ****
  • Posts: 253
  • Hello world!
  • Branch: stable
  • Skill: Intermediate
Re: Bug? Failed to setup dm-crypt key -Check that kernel supports
« Reply #17 on: 21. February 2016, 12:06:08 »
Milan says that the kernel API has to patched too for old crypto setups.
New cryptsetup hasn't arrived yet in my (german) repo.
i3: i7-5820K | 32 GB | GeForce GTX 960, nvidia | linux44-custom
KDE: i7-920 | 12 GB | GeForce GTS 450, nouveau | linux44
Gnome: Thinkpad X200s | linux41

Offline philm

  • Core Team
  • *****
  • Posts: 10671
    • Manjaro Linux
  • Branch: Unstable
  • Desktop: XFCE
  • GPU Card: Geforce GTX 650
  • GPU driver: non-free
  • Kernel: Maintainer - so all ;)
  • Skill: Guru
Re: Bug? Failed to setup dm-crypt key -Check that kernel supports
« Reply #18 on: 21. February 2016, 12:24:38 »
Ok, makes sense. You can get it already from our UK-Mirror:
Code: [Select]
sudo pacman -U http://repo.manjaro.org.uk/pool/overlay/cryptsetup-1.7.0-1.1-$(uname -m).pkg.tar.xzOr you switch to our German mirror netzspielplatz, which syncs every 5 minutes. To avoid these issues, don't encrypt your HDDs :P

Offline torvic9

  • Sr. Mitglied
  • ****
  • Posts: 253
  • Hello world!
  • Branch: stable
  • Skill: Intermediate
Re: Bug? Failed to setup dm-crypt key -Check that kernel supports
« Reply #19 on: 21. February 2016, 12:30:39 »
Well this is the first time in 10 (?) years I have a problem with cryptsetup ;)
But no worries, I'll stay with kernel 4.1.17 for the moment being.
Gonna try new cryptsetup shortly and report back.
i3: i7-5820K | 32 GB | GeForce GTX 960, nvidia | linux44-custom
KDE: i7-920 | 12 GB | GeForce GTS 450, nouveau | linux44
Gnome: Thinkpad X200s | linux41

Offline torvic9

  • Sr. Mitglied
  • ****
  • Posts: 253
  • Hello world!
  • Branch: stable
  • Skill: Intermediate
Re: Bug? Failed to setup dm-crypt key -Check that kernel supports
« Reply #20 on: 21. February 2016, 12:42:48 »
@philm: cryptsetup 1.7.0-1.1 fixes the problem. We should still keep an eye on other packages which might potentially be affected by the kernel update.
Code: [Select]
$ pacman -Qi cryptsetup | grep -i version
Version                  : 1.7.0-1.1
$ uname -r
4.1.18-1-vd

Btw, my luks partition was encrypted with an earlier version of cryptsetup (circa April 2015), but it works anyway.
Thanks!
« Last Edit: 21. February 2016, 12:53:17 by torvic9 »
i3: i7-5820K | 32 GB | GeForce GTX 960, nvidia | linux44-custom
KDE: i7-920 | 12 GB | GeForce GTS 450, nouveau | linux44
Gnome: Thinkpad X200s | linux41

Offline philm

  • Core Team
  • *****
  • Posts: 10671
    • Manjaro Linux
  • Branch: Unstable
  • Desktop: XFCE
  • GPU Card: Geforce GTX 650
  • GPU driver: non-free
  • Kernel: Maintainer - so all ;)
  • Skill: Guru
Re: Bug? Failed to setup dm-crypt key -Check that kernel supports
« Reply #21 on: 21. February 2016, 13:17:50 »
It seems that kernels higher than 4.2 are not affected by this. Looks like the patch set is only compatible with >=linux-4.3

Offline torvic9

  • Sr. Mitglied
  • ****
  • Posts: 253
  • Hello world!
  • Branch: stable
  • Skill: Intermediate
Re: Bug? Failed to setup dm-crypt key -Check that kernel supports
« Reply #22 on: 21. February 2016, 13:20:25 »
Yes, I couldn't apply the patches to 4.1.18.
i3: i7-5820K | 32 GB | GeForce GTX 960, nvidia | linux44-custom
KDE: i7-920 | 12 GB | GeForce GTS 450, nouveau | linux44
Gnome: Thinkpad X200s | linux41

Offline torvic9

  • Sr. Mitglied
  • ****
  • Posts: 253
  • Hello world!
  • Branch: stable
  • Skill: Intermediate
Re: Bug? Failed to setup dm-crypt key -Check that kernel supports
« Reply #23 on: 21. February 2016, 16:56:33 »
Also works on an old luks device that I created back in 2013.
i3: i7-5820K | 32 GB | GeForce GTX 960, nvidia | linux44-custom
KDE: i7-920 | 12 GB | GeForce GTS 450, nouveau | linux44
Gnome: Thinkpad X200s | linux41

Offline philm

  • Core Team
  • *****
  • Posts: 10671
    • Manjaro Linux
  • Branch: Unstable
  • Desktop: XFCE
  • GPU Card: Geforce GTX 650
  • GPU driver: non-free
  • Kernel: Maintainer - so all ;)
  • Skill: Guru
Re: Bug? Failed to setup dm-crypt key -Check that kernel supports
« Reply #24 on: 21. February 2016, 17:46:50 »
Archlinux just adopted the fixes after I flagged the package ...

Offline CTheGreatD

  • Neuling
  • *
  • Posts: 45
  • Branch: stable
  • Desktop: Xfce
  • GPU Card: ATI Radeon HD 6450
  • GPU driver: non-free
  • Kernel: linux317 x64
  • Skill: Intermediate
Re: Bug? Failed to setup dm-crypt key -Check that kernel supports
« Reply #25 on: 21. February 2016, 20:16:06 »
Damn it, i updated this pc and it's the pc from my brother  :'(  I'm a linux newbie...

I want to fix it and i follwed the linked steps above to update cryptseptup.

At the Arch Site is says I should first unlock the container
https://wiki.archlinux.org/index.php/change_root#Partition.28s.29_mount

This is my hard disc

Quote
[manjaro@manjaro ~]$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 931,5G  0 disk
├─sda1   8:1    0   190M  0 part
└─sda2   8:2    0 931,3G  0 part
sr0     11:0    1   1,2G  0 rom  /bootmnt
loop0    7:0    0   116K  1 loop
loop1    7:1    0   137M  1 loop
loop2    7:2    0   736M  1 loop
loop3    7:3    0 258,3M  1 loop

What do I have to do?

Quote
do not forget to first unlock its container (e.g. with # cryptsetup open /dev/sdX# name

What's the name and how do I get it?

Sorry for asking these kinda questions but I'm in shock right now, you know why :o

Offline eugen-b

  • Support Team
  • ****
  • Posts: 3191
  • Branch: testing
  • Desktop: LXDE, Fluxbox, JWM, LXQt, bspwm
  • GPU Card: Intel 82945G/GZ
  • GPU driver: free
  • Kernel: 4.5, 4.6
  • Skill: Intermediate
Re: Bug? Failed to setup dm-crypt key -Check that kernel supports
« Reply #26 on: 21. February 2016, 20:39:55 »
read this post, it explains it step-by-step https://forum.manjaro.org/index.php?topic=31356.msg257872#msg257872
And also the second post of that topic.

A stong advice: Wait until your brother can repair it before you break it!
« Last Edit: 21. February 2016, 20:48:34 by eugen-b »
MSI Wind Nettop, Intel Atom 230 1.6GHz (64bit), 2GB RAM
DEs: NET-minimal + (LXDE / Fluxbox / JWM); LXQt OpenRC
how to install on btrfs subvolumes
http://manjaro.github.io/donate/

Offline CTheGreatD

  • Neuling
  • *
  • Posts: 45
  • Branch: stable
  • Desktop: Xfce
  • GPU Card: ATI Radeon HD 6450
  • GPU driver: non-free
  • Kernel: linux317 x64
  • Skill: Intermediate
Re: Bug? Failed to setup dm-crypt key -Check that kernel supports
« Reply #27 on: 21. February 2016, 21:37:38 »
Thank you for your answer.

I don't want to hijack this thread but I'm completely lost, like I said it's not my computer and I did updates  :(

I don't get the part with
Quote
<partition name> <device-mapper name>
, I'm currently on a live cd (very old, 0.8 version) and I can't even get root.


Offline eugen-b

  • Support Team
  • ****
  • Posts: 3191
  • Branch: testing
  • Desktop: LXDE, Fluxbox, JWM, LXQt, bspwm
  • GPU Card: Intel 82945G/GZ
  • GPU driver: free
  • Kernel: 4.5, 4.6
  • Skill: Intermediate
Re: Bug? Failed to setup dm-crypt key -Check that kernel supports
« Reply #28 on: 21. February 2016, 21:52:36 »
No problem for hijacking in this case, but better inform the owner first before you proceed. Who knows what could go wrong even if you follow the steps...

<partition name> is probably sda2 and <device-mapper name> is probably root

You get root in the terminal by su and password manjaro.
MSI Wind Nettop, Intel Atom 230 1.6GHz (64bit), 2GB RAM
DEs: NET-minimal + (LXDE / Fluxbox / JWM); LXQt OpenRC
how to install on btrfs subvolumes
http://manjaro.github.io/donate/

Offline wariat

  • Neuling
  • *
  • Posts: 4
  • I'm new. Be nice!
  • Skill: Novice
Re: Bug? Failed to setup dm-crypt key -Check that kernel supports
« Reply #29 on: 21. February 2016, 22:03:01 »
Hello guys,

can you help me with the cryptsetup boot issue, please?

What I've done:
Code: [Select]
su
cryptsetup open /dev/sda2 idk
mkdir /mnt/wurzel
mount /dev/mapper/ManjaroVG-ManjaroRoot /mnt/wurzel
mount /dev/sda1 /mnt/wurzel/boot
mount /dev/mapper/ManjaroVG-ManjaroHome /mnt/wurzel/home
cd /mnt/wurzel
systemd-nspawn
pacman -Syyu
exit
cd
umount --recursive /mnt/wurzel

There was an update for cryptsetup, but after the reboot it don't start properly.
 
Where is the mistake?

uname -a repeats:
Code: [Select]
Linux wurzel 4.1.15-1-Manjaro #1 SMP PREEMPT Tue Dec 15 07:48:44 UTC 2015 x86_64 GNU/Linux
What should I do next?
« Last Edit: 21. February 2016, 22:05:11 by wariat »