All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] luksAddKey successful but not working
@ 2013-05-22 12:50 leam hall
  2013-05-22 14:33 ` Arno Wagner
  0 siblings, 1 reply; 13+ messages in thread
From: leam hall @ 2013-05-22 12:50 UTC (permalink / raw)
  To: dm-crypt

[-- Attachment #1: Type: text/plain, Size: 712 bytes --]

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/>

[-- Attachment #2: Type: text/html, Size: 946 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-06-26 14:12 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-22 12:50 [dm-crypt] luksAddKey successful but not working leam hall
2013-05-22 14:33 ` Arno Wagner
2013-05-22 14:48   ` leam hall
2013-05-22 15:00     ` Arno Wagner
2013-05-22 15:28   ` Milan Broz
2013-05-22 15:36     ` leam hall
2013-05-30  0:56       ` leam hall
2013-05-30  1:10         ` Arno Wagner
2013-05-31 14:09       ` leam hall
2013-05-31 14:55         ` leam hall
2013-05-31 15:53           ` Arno Wagner
2013-06-06 17:41       ` leam hall
2013-06-26 14:12       ` leam hall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.