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
_______________________________________________
dm-crypt mailing list
dm-crypt@xxxxxxxx
http://www.saout.de/mailman/listinfo/dm-crypt