You are not logged in.

#1 2021-02-13 04:05:25

borkedagain
Member
Registered: 2021-02-13
Posts: 9

[SOLVED]failed to open encryption mapping, device ... is not LUKS vol

Hi friends,

After installing packages via pacman, I ran into this issue. I'm not exactly sure if it was a package or a pacman update that caused it(or something else)  but now I can't boot.

I get

Failed to open encryption mapping, the device UUID=... is not a LUKS volume and the crypto= parameter was not specified.

running hook [resume]
Waiting 10 seconds for device /dev/mapper/secret

...

You are being dropped into an emergency shell

My partitions are
sda1 system
sda2 swap
sda3 luks encrypted

The uuid is the correct uuid for sda3

I know the luks headers are ok because I can mount the luks partition using a live USB with the following:
cryptsetup open /dev/sda3/secret -type luks
enter passphrase...
mount /dev/mapper/secret some_dir

My symptoms seem similar to https://bbs.archlinux.org/viewtopic.php?id=209210 , but I think that author is operating at a higher level than me, if possible I would like a dumbed down solution with clear steps from either the emergency shell or a live USB.

I can't use cryptsetup in emergency shell because it requires GLIBC_2.33 required by /usr/lib/libdevmapper.so.1.02

I am using systemd-boot instead of grub2

Much appreciated!

Last edited by borkedagain (2021-02-14 01:40:14)

Offline

#2 2021-02-13 11:36:34

loqs
Member
Registered: 2014-03-06
Posts: 17,861

Re: [SOLVED]failed to open encryption mapping, device ... is not LUKS vol

Please post the pacman.log for the update that caused the issue onward.  ( /var/log/pacman.log )  If the file is too big to fit in code tags please see the tip box from pastebin.

Offline

#3 2021-02-13 13:21:25

borkedagain
Member
Registered: 2021-02-13
Posts: 9

Re: [SOLVED]failed to open encryption mapping, device ... is not LUKS vol

[2021-02-10T20:24:52+1100] [PACMAN] Running 'pacman -S thunderbird'
[2021-02-11T15:06:13+1100] [PACMAN] Running 'pacman -S gedit'
[2021-02-11T15:06:21+1100] [ALPM] transaction started
[2021-02-11T15:06:21+1100] [ALPM] installed gtksourceview4 (4.8.0-1)
[2021-02-11T15:06:21+1100] [ALPM] installed gspell (1.8.4-1)
[2021-02-11T15:06:21+1100] [ALPM] installed amtk (5.2.0-2)
[2021-02-11T15:06:21+1100] [ALPM] installed uchardet (0.0.7-1)
[2021-02-11T15:06:21+1100] [ALPM] installed tepl (5.0.1-2)
[2021-02-11T15:06:21+1100] [ALPM] installed gedit (3.38.1-1)
[2021-02-11T15:06:21+1100] [ALPM] transaction completed
[2021-02-11T15:06:21+1100] [ALPM] running '30-systemd-update.hook'...
[2021-02-11T15:06:22+1100] [ALPM] running 'glib-compile-schemas.hook'...
[2021-02-11T15:06:22+1100] [ALPM] running 'gtk-update-icon-cache.hook'...
[2021-02-11T15:06:22+1100] [ALPM] running 'update-desktop-database.hook'...
[2021-02-12T12:03:18+1100] [PACMAN] Running 'pacman -S acroread'
[2021-02-12T12:11:35+1100] [PACMAN] Running 'pacman -S Okular'
[2021-02-12T12:11:39+1100] [PACMAN] Running 'pacman -S okular'
[2021-02-12T12:14:16+1100] [PACMAN] Running '/usr/bin/pacman -S --asdeps patchelf'
[2021-02-12T12:14:18+1100] [ALPM] transaction started
[2021-02-12T12:14:18+1100] [ALPM] installed patchelf (0.12-1)
[2021-02-12T12:14:18+1100] [ALPM] transaction completed
[2021-02-12T12:14:18+1100] [ALPM] running '30-systemd-update.hook'...
[2021-02-12T12:14:29+1100] [PACMAN] Running '/usr/bin/pacman -U /home/cal/Repos/aur/masterpdfeditor/masterpdfeditor-5.7.20-1-x86_64.pkg.tar.zst'
[2021-02-12T12:14:36+1100] [ALPM] transaction started
[2021-02-12T12:14:36+1100] [ALPM] installed libgphoto2 (2.5.26-1)
[2021-02-12T12:14:36+1100] [ALPM] installed libieee1284 (0.2.11-11)
[2021-02-12T12:14:36+1100] [ALPM] installed net-snmp (5.9-3)
[2021-02-12T12:14:36+1100] [ALPM] installed sane (1.0.31-3)
[2021-02-12T12:14:36+1100] [ALPM] installed masterpdfeditor (5.7.20-1)
[2021-02-12T12:14:36+1100] [ALPM] transaction completed
[2021-02-12T12:14:36+1100] [ALPM] running '30-systemd-daemon-reload.hook'...
[2021-02-12T12:14:36+1100] [ALPM] running '30-systemd-hwdb.hook'...
[2021-02-12T12:14:36+1100] [ALPM] running '30-systemd-udev-reload.hook'...
[2021-02-12T12:14:36+1100] [ALPM] running '30-systemd-update.hook'...
[2021-02-12T12:14:36+1100] [ALPM] running 'detect-old-perl-modules.hook'...
[2021-02-12T12:14:36+1100] [ALPM] running 'update-desktop-database.hook'...
[2021-02-12T12:55:57+1100] [PACMAN] Running 'pacman -S xournalpp'
[2021-02-12T12:56:10+1100] [ALPM] transaction started
[2021-02-12T12:56:10+1100] [ALPM] installed portaudio (1:19.6.0-7)
[2021-02-12T12:56:10+1100] [ALPM] installed lua (5.4.2-1)
[2021-02-12T12:56:10+1100] [ALPM] installed libzip (1.7.3-1)
[2021-02-12T12:56:10+1100] [ALPM] installed xournalpp (1.0.20-2)
[2021-02-12T12:56:10+1100] [ALPM] transaction completed
[2021-02-12T12:56:10+1100] [ALPM] running '30-systemd-update.hook'...
[2021-02-12T12:56:10+1100] [ALPM] running 'gtk-update-icon-cache.hook'...
[2021-02-12T12:56:10+1100] [ALPM] running 'update-desktop-database.hook'...
[2021-02-12T12:56:10+1100] [ALPM] running 'update-mime-database.hook'...
[2021-02-12T12:58:39+1100] [PACMAN] Running 'pacman -S kolourpaint'
[2021-02-12T12:58:43+1100] [PACMAN] Running 'pacman -S kolourpaint'
[2021-02-12T12:59:05+1100] [PACMAN] Running 'pacman -Syy'
[2021-02-12T12:59:05+1100] [PACMAN] synchronizing package lists
[2021-02-12T12:59:16+1100] [PACMAN] Running 'pacman -S kolourpaint'
[2021-02-12T12:59:45+1100] [ALPM] transaction started
[2021-02-12T12:59:45+1100] [ALPM] upgraded device-mapper (2.02.187-3 -> 2.03.11-3)
[2021-02-12T12:59:45+1100] [ALPM] installed kwidgetsaddons (5.78.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed kconfig (5.78.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed kcompletion (5.78.0-2)
[2021-02-12T12:59:45+1100] [ALPM] installed kcoreaddons (5.78.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed polkit-qt5 (0.113.0-2)
[2021-02-12T12:59:45+1100] [ALPM] installed kauth (5.78.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed kcodecs (5.78.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed qt5-wayland (5.15.2-1)
[2021-02-12T12:59:45+1100] [ALPM] installed kguiaddons (5.78.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed ki18n (5.78.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed kconfigwidgets (5.78.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed sonnet (5.78.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed openal (1.21.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed qt5-multimedia (5.15.2-1)
[2021-02-12T12:59:45+1100] [ALPM] installed qt5-speech (5.15.2-1)
[2021-02-12T12:59:45+1100] [ALPM] installed ktextwidgets (5.78.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed libdbusmenu-qt5 (0.9.3+16.04.20160218-5)
[2021-02-12T12:59:45+1100] [ALPM] installed kwindowsystem (5.78.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed knotifications (5.78.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed kitemviews (5.78.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed karchive (5.78.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed kiconthemes (5.78.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed kcrash (5.78.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed kdbusaddons (5.78.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed kservice (5.78.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed kwallet (5.78.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed libksane (20.12.2-1)
[2021-02-12T12:59:45+1100] [ALPM] installed media-player-info (24-2)
[2021-02-12T12:59:45+1100] [ALPM] installed libplist (2.2.0-3)
[2021-02-12T12:59:45+1100] [ALPM] installed libusbmuxd (2.0.2-1)
[2021-02-12T12:59:45+1100] [ALPM] installed usbmuxd (1.1.1-1)
[2021-02-12T12:59:45+1100] [ALPM] installed libimobiledevice (1.3.0-3)
[2021-02-12T12:59:45+1100] [ALPM] installed upower (0.99.11-3)
[2021-02-12T12:59:45+1100] [ALPM] installed libatasmart (0.19-5)
[2021-02-12T12:59:45+1100] [ALPM] installed btrfs-progs (5.10.1-1)
[2021-02-12T12:59:45+1100] [ALPM] installed gptfdisk (1.0.6-1)
[2021-02-12T12:59:45+1100] [ALPM] installed libbytesize (2.4-4)
[2021-02-12T12:59:45+1100] [ALPM] installed libaio (0.3.112-2)
[2021-02-12T12:59:45+1100] [ALPM] installed thin-provisioning-tools (0.9.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed lvm2 (2.03.11-3)
[2021-02-12T12:59:45+1100] [ALPM] installed ndctl (71.1-1)
[2021-02-12T12:59:45+1100] [ALPM] installed volume_key (0.3.12-5)
[2021-02-12T12:59:45+1100] [ALPM] installed libinih (52-2)
[2021-02-12T12:59:45+1100] [ALPM] installed xfsprogs (5.10.0-2)
[2021-02-12T12:59:45+1100] [ALPM] installed libblockdev (2.25-2)
[2021-02-12T12:59:45+1100] [ALPM] installed udisks2 (2.9.2-1)
[2021-02-12T12:59:45+1100] [ALPM] installed solid (5.78.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed kjobwidgets (5.78.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed kglobalaccel (5.78.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed attica (5.78.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed kxmlgui (5.78.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed kbookmarks (5.78.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed kded (5.78.0-1)
[2021-02-12T12:59:45+1100] [ALPM] installed kio (5.78.0-3)
[2021-02-12T12:59:45+1100] [ALPM] installed kolourpaint (20.12.2-1)
[2021-02-12T12:59:45+1100] [ALPM] transaction completed
[2021-02-12T12:59:45+1100] [ALPM] running '20-systemd-sysusers.hook'...
[2021-02-12T12:59:45+1100] [ALPM-SCRIPTLET] Creating group usbmux with gid 140.
[2021-02-12T12:59:45+1100] [ALPM-SCRIPTLET] Creating user usbmux (usbmux user) with uid 140 and gid 140.
[2021-02-12T12:59:45+1100] [ALPM] running '30-systemd-daemon-reload.hook'...
[2021-02-12T12:59:46+1100] [ALPM] running '30-systemd-hwdb.hook'...
[2021-02-12T12:59:46+1100] [ALPM] running '30-systemd-tmpfiles.hook'...
[2021-02-12T12:59:46+1100] [ALPM] running '30-systemd-udev-reload.hook'...
[2021-02-12T12:59:46+1100] [ALPM] running '30-systemd-update.hook'...
[2021-02-12T12:59:46+1100] [ALPM] running '90-mkinitcpio-install.hook'...
[2021-02-12T12:59:46+1100] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
[2021-02-12T12:59:46+1100] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2021-02-12T12:59:46+1100] [ALPM-SCRIPTLET] ==> Starting build: 5.10.11-arch1-1
[2021-02-12T12:59:46+1100] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2021-02-12T12:59:46+1100] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2021-02-12T12:59:46+1100] [ALPM-SCRIPTLET]   -> Running build hook: [autodetect]
[2021-02-12T12:59:46+1100] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2021-02-12T12:59:46+1100] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2021-02-12T12:59:49+1100] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: xhci_pci
[2021-02-12T12:59:49+1100] [ALPM-SCRIPTLET]   -> Running build hook: [encrypt]
[2021-02-12T12:59:50+1100] [ALPM-SCRIPTLET]   -> Running build hook: [resume]
[2021-02-12T12:59:50+1100] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2021-02-12T12:59:50+1100] [ALPM-SCRIPTLET]   -> Running build hook: [shutdown]
[2021-02-12T12:59:50+1100] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2021-02-12T12:59:50+1100] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2021-02-12T12:59:50+1100] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2021-02-12T12:59:50+1100] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
[2021-02-12T12:59:52+1100] [ALPM-SCRIPTLET] ==> Image generation successful
[2021-02-12T12:59:52+1100] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
[2021-02-12T12:59:52+1100] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
[2021-02-12T12:59:52+1100] [ALPM-SCRIPTLET] ==> Starting build: 5.10.11-arch1-1
[2021-02-12T12:59:52+1100] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2021-02-12T12:59:52+1100] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2021-02-12T12:59:52+1100] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2021-02-12T12:59:52+1100] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2021-02-12T12:59:53+1100] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: aic94xx
[2021-02-12T12:59:53+1100] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: wd719x
[2021-02-12T12:59:54+1100] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: xhci_pci
[2021-02-12T12:59:55+1100] [ALPM-SCRIPTLET]   -> Running build hook: [encrypt]
[2021-02-12T12:59:56+1100] [ALPM-SCRIPTLET]   -> Running build hook: [resume]
[2021-02-12T12:59:56+1100] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2021-02-12T12:59:56+1100] [ALPM-SCRIPTLET]   -> Running build hook: [shutdown]
[2021-02-12T12:59:57+1100] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2021-02-12T12:59:57+1100] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2021-02-12T12:59:59+1100] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2021-02-12T12:59:59+1100] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
[2021-02-12T13:00:03+1100] [ALPM-SCRIPTLET] ==> Image generation successful
[2021-02-12T13:00:03+1100] [ALPM] running 'dbus-reload.hook'...
[2021-02-12T13:00:03+1100] [ALPM] running 'gtk-update-icon-cache.hook'...
[2021-02-12T13:00:03+1100] [ALPM] running 'update-desktop-database.hook'...
[2021-02-12T13:00:03+1100] [ALPM] running 'update-mime-database.hook'...
[2021-02-12T13:02:35+1100] [PACMAN] Running 'pacman -U kolourpaint'
[2021-02-12T13:03:06+1100] [PACMAN] Running 'pacman -R kolourpaint'
[2021-02-12T13:03:08+1100] [ALPM] transaction started
[2021-02-12T13:03:08+1100] [ALPM] removed kolourpaint (20.12.2-1)
[2021-02-12T13:03:08+1100] [ALPM] transaction completed
[2021-02-12T13:03:08+1100] [ALPM] running '30-systemd-update.hook'...
[2021-02-12T13:03:08+1100] [ALPM] running 'gtk-update-icon-cache.hook'...
[2021-02-12T13:03:08+1100] [ALPM] running 'update-desktop-database.hook'...
```

The last entry kolourpaint seems quite fishy for something that is just an image editor. (messing with mkinitcpio.conf), I remember looking that that and thinking hmm haven't seen that stuff before. I would also hate to cast doubt on their program because I have no clue what I am looking at myself.

In either case, it would be stuff from the 12th or less likely the 11th, if the issue is from pacman.

Last edited by borkedagain (2021-02-13 13:37:24)

Offline

#4 2021-02-13 13:28:45

frostschutz
Member
Registered: 2013-11-15
Posts: 1,453

Re: [SOLVED]failed to open encryption mapping, device ... is not LUKS vol

borkedagain wrote:
Failed to open encryption mapping, the device UUID=... is not a LUKS volume and the crypto= parameter was not specified.

You are being dropped into an emergency shell

I know the luks headers are ok because I can mount the luks partition using a live USB with the following:

Does it work in the emergency shell? If yes then it should be a wrong kernel parameter. Otherwise something else.

cryptsetup open /dev/sda3 secret

In the emergency shell, also check `cat /proc/cmdline` and `cat /proc/partitions` - in particular if the kernel parameters are passed as expected, and the devices themselves present.

EDIT:

I can't use cryptsetup in emergency shell because it requires GLIBC_2.33 required by /usr/lib/libdevmapper.so.1.02

Missed that bit, sorry. Does the issue persist after rebuilding initramfs from chroot?

Last edited by frostschutz (2021-02-13 13:30:19)

Offline

#5 2021-02-13 13:31:40

borkedagain
Member
Registered: 2021-02-13
Posts: 9

Re: [SOLVED]failed to open encryption mapping, device ... is not LUKS vol

Yeah it doesn't work in emergency shell(missing lib), see above.

Will look into other suggestions

Offline

#6 2021-02-13 13:35:07

borkedagain
Member
Registered: 2021-02-13
Posts: 9

Re: [SOLVED]failed to open encryption mapping, device ... is not LUKS vol

frostschutz wrote:

Missed that bit, sorry. Does the issue persist after rebuilding initramfs from chroot?

This is the point that reaches beyond my capabilities, I would need a step by step on that one.

Offline

#7 2021-02-13 13:41:45

frostschutz
Member
Registered: 2013-11-15
Posts: 1,453

Re: [SOLVED]failed to open encryption mapping, device ... is not LUKS vol

chrooting is what you use during installation of archlinux, but you can always chroot into an already installed system the same way and fix things from there

described in more detail here https://wiki.archlinux.org/index.php/chroot

from arch livecd, you can use arch-chroot, from any other livecd you can use the manual https://wiki.archlinux.org/index.php/ch … ing_chroot

you have to mount your rootfs and then chroot into it. from there you can run pacman updates, mkinitcpio, etc. as you would if you booted properly

I just updated my arch just to be sure and cryptsetup in initramfs works fine for me.

Last edited by frostschutz (2021-02-13 13:42:30)

Offline

#8 2021-02-13 13:48:56

borkedagain
Member
Registered: 2021-02-13
Posts: 9

Re: [SOLVED]failed to open encryption mapping, device ... is not LUKS vol

frostschutz wrote:

chrooting is what you use during installation of archlinux, .

Ok thanks! So what would be the exact commands for rebuilding initramfs after chroot? I am reasonably familiar with chrooting, I just don't want to make it worse for myself and I don't actually know what initramfs is, but researching now.

Offline

#9 2021-02-13 14:25:12

borkedagain
Member
Registered: 2021-02-13
Posts: 9

Re: [SOLVED]failed to open encryption mapping, device ... is not LUKS vol

Update:
archchroot /mnt/mountpoint
mount /dev/sda1 /boot (my system partition is sda1)
mkinitcpio –p linux

Command completes fine, but still same issue upon reboot

Offline

#10 2021-02-13 15:40:21

loqs
Member
Registered: 2014-03-06
Posts: 17,861

Re: [SOLVED]failed to open encryption mapping, device ... is not LUKS vol

From the chroot what is the output of:

pacman -Qi glibc cryptsetup

The pacman.log you posted did not contain either cryptsetup or glibc so I could not tell from it.

Offline

#11 2021-02-14 00:19:34

borkedagain
Member
Registered: 2021-02-13
Posts: 9

Re: [SOLVED]failed to open encryption mapping, device ... is not LUKS vol

loqs wrote:

From the chroot what is the output of:

pacman -Qi glibc cryptsetup
Name            : glibc
Version         : 2.32-5
Description     : GNU C Library
Architecture    : x86_64
URL             : https://www.gnu.org/software/libc
Licenses        : GPL  LGPL
Groups          : None
Provides        : None
Depends On      : linux-api-headers>=4.10  tzdata  filesystem
Optional Deps   : gd: for memusagestat [installed]
Required By     : a52dec  alsa-lib  alsa-plugins  alsa-utils  argon2  attr  audit  b43-fwcutter  base  bash  bind  binutils  bison  bluez-libs  brotli  btrfs-progs  bubblewrap  bzip2  cabextract  cdparanoia  confuse  coreutils  dav1d  ddrescue  device-mapper  dhclient  dhcpcd  diffutils  ding-libs  dmenu  dnsmasq  dosfstools  efibootmgr  efivar  ell  ethtool  exfat-utils  expat  faad2  fakeroot  fftw  file  findutils  flex  freerdp  fribidi  fuse2  gawk  gcc-libs  gdbm  giflib  gnupg  grep  gsm  gzip  hdparm  hwloc  hyphen  iproute2  iwd  jack  jansson  json-c  kbd  keyutils  kmod  krb5  l-smash  less  lib32-glibc  libass  libasyncns  libatomic_ops  libcap  libcap-ng  libdatrie  libdvbpsi  libedit  libepoxy  libev  libevdev  libexif  libexttextcat  libffi  libgpg-error  libgssglue  libical  libice  libid3tag  libidn  libinih  libjpeg-turbo  libksba  libmad  libmaxminddb  libmikmod  libmnl  libmpcdec  libmpeg2  libndp  libnfnetlink  libnghttp2  libnl  libogg  libomxil-bellagio  libp11-kit  libpcap  libpciaccess  libpgm  libpipeline  libplacebo  libraw1394  libsamplerate  libseccomp  libsigsegv  libsndfile  libsodium  libstemmer  libsynctex  libtasn1  libtiff  libtommath  libtool  libunistring  libunwind  libupnp  libusb  libuv  libvisual  libxau  libxcrypt  libxdmcp  libxshmfence  lmdb  lpsolve  lsof  lz4  lzo  m4  make  md4c  mdadm  mkinitcpio-busybox  mtdev  mtools  ncurses  net-tools  nspr  opencore-amr  openmpi  openssh  openssl  opus  orc  pacman  pam  patch  pciutils  perl  pixman  pkgconf  popt  portaudio  ppp  raptor  rasqal  rav1e  readline  rhash  rpcbind  run-parts  sane  sdl  sdl2  sdparm  sed  sg3_utils  shaderc  snappy  speexdsp  sudo  sysfsutils  systemd-libs  tar  tcpdump  tdb  tslib  usbutils  vid.stab  vim  vulkan-icd-loader  wayland  which  xvidcore  yajl  zita-alsa-pcmi  zita-resampler  zlib
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 46.16 MiB
Packager        : Jelle van der Waa <jelle@archlinux.org>
Build Date      : Thu 15 Oct 2020 04:00:17 AM AEDT
Install Date    : Tue 26 Jan 2021 01:28:52 PM AEDT
Install Reason  : Installed as a dependency for another package
Install Script  : Yes
Validated By    : Signature

Name            : cryptsetup
Version         : 2.3.4-1
Description     : Userspace setup tool for transparent encryption of block devices using dm-crypt
Architecture    : x86_64
URL             : https://gitlab.com/cryptsetup/cryptsetup/
Licenses        : GPL
Groups          : None
Provides        : libcryptsetup.so=12-64
Depends On      : device-mapper  libdevmapper.so=1.02-64  openssl  popt  libutil-linux  libuuid.so=1-64  json-c  libjson-c.so=5-64  argon2  libargon2.so=1-64
Optional Deps   : None
Required By     : systemd  volume_key
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 2.36 MiB
Packager        : Christian Hesse <arch@eworm.de>
Build Date      : Fri 04 Sep 2020 06:27:45 AM AEST
Install Date    : Tue 26 Jan 2021 01:28:53 PM AEDT
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

Offline

#12 2021-02-14 00:36:24

loqs
Member
Registered: 2014-03-06
Posts: 17,861

Re: [SOLVED]failed to open encryption mapping, device ... is not LUKS vol

Those match,  again from inside the chroot:

pacman -Qi device-mapper

Offline

#13 2021-02-14 00:49:08

borkedagain
Member
Registered: 2021-02-13
Posts: 9

Re: [SOLVED]failed to open encryption mapping, device ... is not LUKS vol

loqs wrote:

Those match,  again from inside the chroot:

pacman -Qi device-mapper
Name            : device-mapper
Version         : 2.03.11-3
Description     : Device mapper userspace library and tools
Architecture    : x86_64
URL             : http://sourceware.org/dm/
Licenses        : GPL2  LGPL2.1
Groups          : None
Provides        : libdevmapper.so=1.02-64  libdevmapper-event.so=1.02-64
Depends On      : glibc  systemd-libs  libudev.so=1-64
Optional Deps   : None
Required By     : cryptsetup  dmraid  lvm2  nfs-utils  parted  xfsprogs
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 833.86 KiB
Packager        : Christian Hesse <arch@eworm.de>
Build Date      : Tue 09 Feb 2021 08:35:42 AM AEDT
Install Date    : Fri 12 Feb 2021 12:59:45 PM AEDT
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

Offline

#14 2021-02-14 00:53:16

loqs
Member
Registered: 2014-03-06
Posts: 17,861

Re: [SOLVED]failed to open encryption mapping, device ... is not LUKS vol

That is  the problem device-mapper 2.03.11-3 needs glibc 2.33-3.  Somehow the system has been partially updated.  Downgrade device-mapper and lvm2 or perform a full system update.

Offline

#15 2021-02-14 01:36:43

borkedagain
Member
Registered: 2021-02-13
Posts: 9

Re: [SOLVED]failed to open encryption mapping, device ... is not LUKS vol

loqs wrote:

That is  the problem device-mapper 2.03.11-3 needs glibc 2.33-3.  Somehow the system has been partially updated.  Downgrade device-mapper and lvm2 or perform a full system update.

This fixed it ! Thank you so much.

Root cause was mismatched package versions between device mapper and glibc

Full process for anyone else who is struggling:

In live-usb :

1. Decrypt the partition with cryptsetup open /dev/sda3 <some name>
2. mount /dev/mapper/<some name> <some dir>
3. arch-chroot into <some dir>
4. mount /dev/sda1 /boot (if you don't do this, when linux kernal updated with pacman -Su, it cannot not save the base image for mkinitcpio in /boot), in my case, my system partition was sda1
5. pacman -Su (i had to pacman -S linux, because I forgot to mount the /boot the first time, but I am confident if boot was mount Su would work the first time)
6. mkinitcpio -p linux
7. exit chroot then reboot

Big shout out to loqs & everyone else who helped me, thanks again!

Offline

#16 2024-06-25 17:07:38

Dim8DGH
Member
Registered: 2024-05-22
Posts: 5

Re: [SOLVED]failed to open encryption mapping, device ... is not LUKS vol

I have the same issue but i dont have a partition type luks encrypted

Offline

#17 2024-07-26 15:09:38

khvalera
Member
Registered: 2015-11-17
Posts: 31
Website

Re: [SOLVED]failed to open encryption mapping, device ... is not LUKS vol

Dim8DGH wrote:

I have the same issue but i dont have a partition type luks encrypted

On one of the computers, when loading the system, there is the same error. Although there is no luks section in the system sad

Offline

#18 2024-07-26 15:12:55

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,895

Re: [SOLVED]failed to open encryption mapping, device ... is not LUKS vol

No, neither of you have the same problem. Don't bump old threads, open your own if you have an issue.

Offline

Board footer

Powered by FluxBB