You are not logged in.

#1 2024-04-02 10:05:10

EnzephaloN
Member
Registered: 2024-02-29
Posts: 23

[SOLVED] not-LUKS-encrypted LVM gives error at startup

Hello

I had to reinstall my notebook.
Before, root and swap were LVMs on LUKS-encrypted partition.

I formatted this partition and set it to "Linux LVM" . Created a new VG on the partition and installed arch.

After installation all worked fine, but at boot I see

ERROR: Failed to open encryption mapping: The device /dev/mapper/arch_lvm-root is not a LUKS volume and te crypto= parameter was not specified.
/dev/mapper/arch_lvm-root: clean, 237467/27525120 files, 5755591/110099456 blocks

/etc/mkinitcpi.conf

...
MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)

BINARIES=()

FILES=()

HOOKS=(base udev autodetect microcode modconf kms keyboard keymap consolefont block encrypt lvm2 filesystems fsck)
...

/etc/default/grub

...
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet root=/dev/mapper/arch_lvm-root acpi_os=Linux resume=/dev/mapper/arch_lvm-swap"
GRUB_CMDLINE_LINUX="nvidia_drm.modeset=1 nvidia_drm.fbdev=1"
...

I tried

$    sudo cryptsetup erase /dev/mapper/arch_lvm-root
Gerät »/dev/mapper/arch_lvm-root« ist kein gültiges LUKS-Gerät.
$  sudo cryptsetup luksDump /dev/mapper/arch_lvm-root
Gerät »/dev/mapper/arch_lvm-root« ist kein gültiges LUKS-Gerät.

After wipefs -a /dev/mapper/arch_lvm-root the partition-superblock were damaged, I had to repair with e2chkfs, but error still persists.

How can I prevent system from trying to decrypt an unencrypted device??

Last edited by EnzephaloN (2024-10-11 10:35:54)

Offline

#2 2024-04-02 11:40:12

kermit63
Member
Registered: 2018-07-04
Posts: 249

Re: [SOLVED] not-LUKS-encrypted LVM gives error at startup

EnzephaloN wrote:
HOOKS=(base udev autodetect microcode modconf kms keyboard keymap consolefont block encrypt lvm2 filesystems fsck)

.

try removing the encrypt hook from mkinitcpio.conf and run mkinitcpio again.


Never argue with an idiot, they will drag you down to their level and then beat you with experience.
It is better to light a candle than curse the darkness.
A journey of a thousand miles begins with a single step.

Offline

#3 2024-04-02 11:43:01

Whoracle
Member
Registered: 2010-11-02
Posts: 61

Re: [SOLVED] not-LUKS-encrypted LVM gives error at startup

According to their post in other languages, /home is still encrypted, hence the hook being present.

Offline

#4 2024-04-02 11:43:36

EnzephaloN
Member
Registered: 2024-02-29
Posts: 23

Re: [SOLVED] not-LUKS-encrypted LVM gives error at startup

kermit63 wrote:

try removing the encrypt hook from mkinitcpio.conf and run mkinitcpio again.

I tink I need this, because my home-partition is still encrypted?

Offline

#5 2024-10-11 10:35:20

EnzephaloN
Member
Registered: 2024-02-29
Posts: 23

Re: [SOLVED] not-LUKS-encrypted LVM gives error at startup

Hello.

Because I had to reinstall, I tried to remove "necrypt" from HOOKS. It works, because I only encrypted /home and did not encrypt root. And now there is no error-message shown anymore!

Thanx a lot.
EnzephaloN

Last edited by EnzephaloN (2024-10-11 10:35:39)

Offline

Board footer

Powered by FluxBB