Can't boot using an encrypted xfs or ext4 dat file: /dev/mapper/control: open failed: no such device

Post here if you are a new Porteus member and you're looking for some help.
ydyote
White ninja
White ninja
Posts: 7
Joined: 15 Mar 2023, 19:09
Distribution: porteus 5 lxde

Can't boot using an encrypted xfs or ext4 dat file: /dev/mapper/control: open failed: no such device

Post#16 by ydyote » 19 Mar 2023, 14:00

ydyote wrote:
19 Mar 2023, 10:32
ncmprhnsbl wrote:
28 Sep 2022, 03:42
ok folks, i've figured it out:
the problem was in the build configuration for busybox: an incorrect(or incomplete) value(s) for the modprobe applet..
therefore the kernel module needed for deencryption wasn't being loaded..
please test with this: initrd.xz
(this contains busybox-1.35, updated libs and bins(e2fsck, ntfs-3g) and script fixes)

thanks to AcnapyxoB, for providing the hint that helped me narrow this down to busybox and thanks to an old debian bug report, i managed to set the busybox build config correctly.

Fresh user of porteus here

This fix is still not integrated to the official release of porteus 5.0

I'm using Porteus-LXDE-v5.0-i586.iso 5.18.8-porteus

at first I didn't want to take the "initrd.xz" which is posted here, because it seemed way different than the one in the iso, so I tried Porteus Kernel Builder (Post by Blaze #85938) but I guess I did it wrong so that didn't help me

I also tried it with x64 version but that didn't work either

then I applied the "initrd.xz" which I quoted and that seems to work fine on the i586 version I didn't test the x64 version

but I have no idea how much different is the original "initrd.xz" from the iso and this one here..

I used xfs save dat file with field "Savefile size (Mb)" set to 100 in the create new save container wizard

USB flash drive partition formatted as NTFS
booting via ventoy and replacing the porteus.cfg via ventoy to have an entry with parameters:

APPEND changes=EXIT:LABEL:Ventoy/_Porteus/Storage/main_storage_encrypted.dat


Thanks for the hard work, porteus seems cool, wanted to replace my puppylinux installation and this seems to be the best alternative

edit:
correction, it finds the file, takes my password but it doesn't properly mount the storage so porteus starts as fresh with no persistence, tested i586 and also x86_64 so I guess back to problem solving
ydyote wrote:
19 Mar 2023, 12:43
Blaze, I found out that last mirror in the mirror list seems to have the ./updates/core directory

https://linux.rz.rub.de/porteus

https://linux.rz.rub.de/porteus/x86_64/ ... /20220924/

but yeah not all mirrors have it also not all are https

gonna try it whether that fixes my issue

ok so updating helped.

I downloaded the i586 lxde iso, then went to https://linux.rz.rub.de/porteus/x86_64/ ... ates/core/ and downloaded all update files there, picked relevant latest files for the iso I downloaded, baked it into the iso. Therefore I updated the iso to the "20230216" updates and this method also made me include the 20220924/initrd.xz file

and then created new save.dat file after booting into this updated iso and encryption seems to be working fine for 1GB file xfs filesystem so I assume it is indeed fixed in the "newer" version

too bad I didn't know/notice the updates sooner

thanks for the tip about the updates section Blaze

Post Reply