All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] Long Unlocking Time
@ 2010-03-25 15:56 Ali Reza Sajedi
  2010-03-25 16:10 ` Bryan Kadzban
  2010-03-25 16:22 ` Milan Broz
  0 siblings, 2 replies; 11+ messages in thread
From: Ali Reza Sajedi @ 2010-03-25 15:56 UTC (permalink / raw)
  To: dm-crypt

Hello all,

I have an encrypted USB drive which I would like to be unlocked and mounted 
when it is attached to the system.

For this purpose I have a perl script called via a dev-rule when the drive 
is attached.

In the script I call the following comand to open the drive:

system ("cryptsetup luksOpen /dev/sdb1 sdb1 --key-file 
/path-to-keyfile/keyfile");

and the following command to mount it on a predefined mountpoint:

system ("mount -o sync,dirsync /dev/mapper/sdb1 /mnt/usb");

Everything works except that the unlocking process takes about 3 minutes.

If I call the script via command shell the unlocking process is executed 
instantly.

Does anyone has a clue as to what the reason for this strange behaviour 
could be?

I would be grateful for any hint in this regard.

Best regards

Ali 

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

end of thread, other threads:[~2010-03-29 20:47 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-25 15:56 [dm-crypt] Long Unlocking Time Ali Reza Sajedi
2010-03-25 16:10 ` Bryan Kadzban
2010-03-25 16:22 ` Milan Broz
2010-03-25 17:10   ` Thomas Bächler
2010-03-25 17:28     ` Milan Broz
2010-03-25 20:25       ` Ali Reza Sajedi
2010-03-25 21:45       ` Ali Reza Sajedi
2010-03-27 11:09         ` [dm-crypt] Change Language Ali Reza Sajedi
2010-03-27 11:45           ` Sven Eschenberg
2010-03-29 20:47             ` Ali Reza Sajedi
2010-03-25 17:56   ` [dm-crypt] Long Unlocking Time Sven Eschenberg

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.