Hi,
I got an error when try to open a bitlocker crypted device using this command
cryptsetup open /dev/sda1 disk1 --type bitlk --key-file /storage/netizens/key.txt
on LibreELEC OS
the error is
device-mapper: reload ioctl on disk1 (254:0) failed: Invalid argument
this not happen when try this command on Raspbian OS and I can mount and read crypted SD content with any problem
I really hope you can help me
thank you
Luca
this is the --debug output:
# cryptsetup 2.3.7 processing "cryptsetup open /dev/sda1 disk1 --type bitlk --de bug --key-file /storage/netizens/key.txt"
# Running command open.
# Locking memory.
# Installing SIGINT/SIGTERM handler.
# Unblocking interruption on signal.
# Allocating context for crypt device /dev/sda1.
# Trying to open and read device /dev/sda1 with direct-io.
# Initialising device-mapper backend library.
# Trying to load BITLK crypt type from device /dev/sda1.
# Crypto backend (OpenSSL 1.1.1k 25 Mar 2021) initialized in cryptsetup library version 2.3.7.
# Detected kernel Linux 5.10.110 aarch64.
# BITLK type from GUID: normal.
# Reading BITLK FVE metadata of size 112 on device /dev/sda1, offset 37748736.
# Reading BITLK FVE metadata entries of size 770 on device /dev/sda1, offset 377 48848.
# File descriptor passphrase entry requested.
# Activating volume disk1 [keyslot -1] using passphrase.
# dm version [ opencount flush ] [16384] (*1)
# dm versions [ opencount flush ] [16384] (*1)
# Detected dm-ioctl version 4.43.0.
# Detected dm-crypt version 1.22.0.
# Device-mapper backend running with UDEV support enabled.
# dm status disk1 [ opencount noflush ] [16384] (*1)
# Trying to decrypt VMK protected with passphrase.
# Calculated device size is 62349312 sectors (RW), offset 0.
# Trying to activate BITLK on device /dev/sda1 with name disk1.
# DM-UUID is CRYPT-BITLK-disk1
# Udev cookie 0xd4dbb63 (semid 2) created
# Udev cookie 0xd4dbb63 (semid 2) incremented to 1
# Udev cookie 0xd4dbb63 (semid 2) incremented to 2
# Udev cookie 0xd4dbb63 (semid 2) assigned to CREATE task(0) with flags DISABLE_ LIBRARY_FALLBACK (0x20)
# dm create disk1 CRYPT-BITLK-disk1 [ opencount flush ] [16384] (*1)
# dm reload (254:0) [ opencount flush securedata ] [16384] (*1)
device-mapper: reload ioctl on disk1 (254:0) failed: Invalid argument
# Udev cookie 0xd4dbb63 (semid 2) decremented to 1
# Udev cookie 0xd4dbb63 (semid 2) incremented to 2
# Udev cookie 0xd4dbb63 (semid 2) assigned to REMOVE task(2) with flags DISABLE_ LIBRARY_FALLBACK (0x20)
# dm remove disk1 [ opencount flush securedata ] [16384] (*1)
# dm versions [ opencount flush ] [16384] (*1)
# dm status disk1 [ opencount noflush ] [16384] (*1)
# Udev cookie 0xd4dbb63 (semid 2) decremented to 1
# Udev cookie 0xd4dbb63 (semid 2) waiting for zero
# Udev cookie 0xd4dbb63 (semid 2) destroyed
# Releasing crypt device /dev/sda1 context.
# Releasing device-mapper backend.
# Closing read only fd for /dev/sda1.
# Unlocking memory.
Command failed with code -1 (wrong or missing parameters).