[dm-crypt] luksAddKey successful but not working

leam hall leamhall at gmail.com
Wed May 22 14:50:22 CEST 2013


Help! I've nearly broken my desk banging my head against this problem. I am
using Red Hat 5.9 base install and trying to set the LUKS volume to come
on-line on boot.

The volume can be manually mounted. However, when I try to create the key
file it becomes a 0 length file and does not work when the system boots.

cryptsetup luksAddKey /dev/sda2 keyfile
Enter any LUKS passphrase:
Verify passphrase:
key slot 0 unlocked.
Command successful.


ls -lart keyfile
-rw------- 1 root root 0 May 22 08:42 keyfile


cat /etc/crypttab
luks /dev/sda2 /root/keyfile luks


This is probably operator error but I'm not sure where to look. Any help
appreciated!

Leam



-- 
Mind on a Mission <http://leamhall.blogspot.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.saout.de/pipermail/dm-crypt/attachments/20130522/f33fa8d0/attachment.html>


More information about the dm-crypt mailing list