I've got an encrypted drive, which I mount under Ubuntu (12.04) like:
# modprobe cryptoloop
# losetup -e AES128 /dev/loop0 /dev/sda5
# mount /dev/loop0 /mnt
But with a recent Debian install (6.0.6 Squeeze), this fails with:
# modprobe cryptoloop
FATAL: Module cryptoloop not found.
# losetup -e AES128 /dev/loop0 /dev/sda5
Password:
ioctl: LOOP_SET_STATUS: Invalid argument, requested cipher or key length (128 bits) not supported by kernel
Any ideas what I'm supposed to do instead?
Edit:
This webpage http://fob.po8.org/node/516
Implies that I should be able to do it using cryptsetup instead:
# cryptsetup create -c aes hola /dev/sda5
Enter passphrase:
and that bit seems to work, but the drive won't then mount:
# mount /dev/mapper/hola /mnt
mount: you must specify the filesystem type
# mount -t ext4 /dev/mapper/hola /mnt
mount: wrong fs type, bad option, bad superblock on /dev/dm-0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so