Skip to contentSkip to conversation

Encrypted swap: reding key from /dev/urandom fails

dm-crypt Arno Wagner 1 participant 1 message Oct 26, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

I just tried to move my fileserver from no swap to encrypted swap. Sadly, reading the key from /dev/urandom failed for reasons I do not understand:

~# cryptsetup -s 64 --key-file=/dev/urandom create swap0 /dev/sda3 Command failed: device-mapper: reload ioctl failed: Invalid argument ~# cryptsetup --version
cryptsetup 1.0.7

Inputing the key manually works. Is this a known problem with 1.0.7? Kernel was 2.6.30.7

Arno

Signature · 7 lines
Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: [email protected] 
GnuPG:  ID: 1E25338F  FP: 0C30 5782 9D93 F785 E79C  0296 797F 6B50 1E25 338F
----
Cuddly UI's are the manifestation of wishful thinking. -- Dylan Evans

If it's in the news, don't worry about it.  The very definition of 
"news" is "something that hardly ever happens." -- Bruce Schneier