loop device encryption with Fedora 11 and losetup -e

Patrick Mansfield patman at aracnet.com
Tue Sep 29 22:58:12 UTC 2009


Hi all -

What valid encryptions can be used under Fedora 11 with losetup?

Do I need to manually load the corresponding kernel module? Loading
aes_i586 and/or aes_generic made no difference.

Are there now better alternatives than using "losetup -e"?

I keep getting EINVAL while trying to use "losetup -e".

I'm running with the latest updates, kernel is 2.6.30.5-43.fc11.i686.PAE

The only thing I can use is "-e 1" or "-E 1", losetup tells me that is
just an XOR encryption.

These fail:

# losetup -e 2 /dev/loop0 ./test.image
Password:
ioctl: LOOP_SET_STATUS: Invalid argument
# losetup -e aes /dev/loop0 ./test.image
Password:
ioctl: LOOP_SET_STATUS: Invalid argument

These both work (losetup -e and -E seem to be treated the same):

# losetup -e 1 /dev/loop0 ./test.image
Password:
# losetup /dev/loop0
/dev/loop0: [fd02]:3918266 (/home/test/data_images/test.image), encryption XOR (type 1)
# losetup -d /dev/loop0
# losetup -E 1 /dev/loop0 ./test.image
Password:
# losetup /dev/loop0
/dev/loop0: [fd02]:3918266 (/home/test/data_images/test.image), encryption XOR (type 1)

-- Patrick Mansfield




More information about the users mailing list