I've got /dev/sdb1 encrypted and mounted as /home.
The following line is in /etc/fstab:
/dev/sdb1 /home ext3 noauto,loop=/dev/loop6,encryption=AES128
and
#mount /home
works fine, but
#losetup -e encryption=AES128 /dev/loop0 /dev/sdb1
which I'm sure always used to work, gives:
ioctl: LOOP_SET_STATUS: No such file or directory, requested cipher or key length (128 bits) not supported by kernel
Does anyone know why? If the mechanism for aes encryption over loopback devices has been changed, how am I supposed to fsck such a drive?
If I'm not mistaken,
-e
is shorthand for--encryption
. Try the next command instead:or:
References:
Taken from the examples section of
man losetup
: