"cat key.file | cryptsetup luksOpen /dev/sda2 -d - " did the trick :) thx On Sun, Oct 19, 2008 at 11:16 PM, Antonio De Leon <aldleonm@xxxxxxxxx>wrote: > But, if i create this way .... > > cryptsetup luksFormat /dev/sda2 key.file > > and then > > cat key.file | cryptsetup luksOpen /dev/sda2 > > it dosent work ( version 1.0.5 ... ) > > > On Sun, Oct 19, 2008 at 8:59 PM, Sitaram Chamarty <sitaramc@xxxxxxxxx>wrote: > >> On Mon, Oct 20, 2008 at 1:59 AM, Antonio De Leon <aldleonm@xxxxxxxxx> >> wrote: >> > Whats the difference ? >> > >> > >> > # cat key.file | cryptsetup luksFormat /dev/sda2 >> > Command succsessful. >> > # cryptsetup luksOpen /dev/sda2 sda2 -d key.file >> > Command failed: No key available with this passphrase <---- ????? >> > # cat key.file | cryptsetup luksOpen /dev/sda2 sda2 >> > Command succsessful. >> >> man crypsetup and look for a section called "NOTES ON PASSWORD >> PROCESSING". >> >> (I got caught by this once!) >> >> --------------------------------------------------------------------- >> dm-crypt mailing list - http://www.saout.de/misc/dm-crypt/ >> To unsubscribe, e-mail: dm-crypt-unsubscribe@xxxxxxxx >> For additional commands, e-mail: dm-crypt-help@xxxxxxxx >> >> > > > -- > > Joan Rivers - "The first time I see a jogger smiling, I'll consider it." > -- Gerald R. Ford - "I know I am getting better at golf because I am hitting fewer spectators."