trying to use losetup, ioctl tells me argument is invalid

3 replies [Last post]
alimiracle
Offline
Joined: 01/18/2014

hi
I try use losetup
to encrypt file system
but ioctl tells me argument is invalid

Code:
losetup -e aes-256 /dev/loop0 /dev/hda5
Password:

REPRODUCE ERROR:

ioctl: LOOP_SET_STATUS: Invalid argument

perhaps the bug should be for the kernel?

Or am I doing something wrong, but the way above worked always (tested on other distro)?????????????
???

lembas
Offline
Joined: 05/13/2010

Have you tried inserting the modules as suggested in the manual?

I also see that the manual states

DES encryption is painfully slow. On the other hand, XOR is terribly weak. Both are insecure nowadays.

Cryptoloop is deprecated in favor of dm-crypt.

alimiracle
Offline
Joined: 01/18/2014

>Have you tried inserting the modules as suggested in the manual?
yes
> Cryptoloop is deprecated in favor of dm-crypt.
ok
dm-crypt with luks or Without luks??????????

Michał Masłowski

I am a member!

I am a translator!

Offline
Joined: 05/15/2010

Usually with LUKS.

https://code.google.com/p/cryptsetup/wiki/FrequentlyAskedQuestions
question 2.4 explains this. LUKS provides metadata (e.g. what ciphers
it uses), supports multiple passphrases used to decrypt the master key
and is more usable. Plain format has specialized uses like encrypted
swap with random keys.