Help > Installation

luks+ext4 encrypted installation

(1/1)

kaippullavvs:
Hi,
Read https://nutyx.org/en/install-nutyx Manual installation and
https://nutyx.org/fr/?page=cryptsetup-install

Used NuTyX_x86_64-23.08.0-OPENBOX.iso

KERNEL=kernel install-nutyx
from chroot under live env, cards install lxdm openbox openbox-jp-theme

Try1
Manually installed onto an ext4 partition in virtualbox with BIOS -> Able to boot into the installed OS. Works.

Try2
Did the following in virtual box in BIOS mode
created a luks partition with type luks1;
Created a keyfile.bin and added to luks with luksAddKey under /root/.crypto/keyfile.bin

mounted target partition (luks opened) onto /mnt/hd;installed nutyx;
chroot;installed cryptsetup grub;
created grub.cfg;mkinitramfs <kernel version>;
Edited grub.cfg added initrd line

As expected grub.cfg is having cryptomount line;
During booting of OS, grub is asking for passphrase; After supplying passphrase, grub menu;booting proceeds and gets into emergency shell.

Observed the following in the initramfs emergency shell.
keyfile.bin is avl in the appropriate directory.
dm-mod dm-crypt etc modules are avl under /lib/modules/<kernel version>/kernel/drivers/md/ folder

The error message shown in the screen before the emergency shell prompt:
dm-crypt: Unknown symbol key_type_encrypted (err -2)
dm-crypt: Unknown symbol key_type_trusted (err -2)
device-mapper: table: 254:0 crypt: unknown target type
device-mapper: ioctl: error adding target to table
device-mapper: reload ioctl on CROOT (254:0 ) failed. invalid argument

I observed that dm-crypt is not listed under lsmod. dm-mod is added.
So I executed
modproble dm-crypt
It emits the following error:
modprobe: can't load module dm-crypt: Unknown symbol in module or unknown parameter

Has anyone successfully installed onto an encrypted partition.
Have I missed any steps.
Any thoughts?
Thanks.

Navigation

[0] Message Index

Go to full version