Hi everyone,
I am following this guide: NXP i.MX Linux User’s Guide, specifically section 10.5.3.3 on full disk encryption.
Everything goes smoothly until step 16, where I attempt to remount the encrypted drive. However, I encounter the following error:
root@compulab-imx8mp:~# mount /dev/mapper/encrypted /mnt/encrypted/
[ 1938.658624] erofs: (device dm-0): erofs_read_superblock: cannot find valid erofs superblock
mount: /mnt/encrypted: wrong fs type, bad option, bad superblock on /dev/mapper/encrypted, missing codepage or helper program, or other error.
dmesg(1) may have more information after failed mount system call.
I also tried specifying the file system type directly:
mount -t ext4 /dev/mapper/encrypted /mnt/encrypted/
But I still get the same result.
I’ve restarted the entire process multiple times but always run into this issue at the same step. Has anyone encountered a similar problem or have any suggestions on what might be going wrong? Any help would be greatly appreciated!
Thank you in advance!
Hi,
How you create the file system on the device and what is the log shown?
Before reboot, make that the device is unmounted and deactivate.
Regards
Harvey