Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
linux:allgemein:automount_crypted_usb [03.02.2014 20:43] marc angelegt |
linux:allgemein:automount_crypted_usb [03.02.2014 23:05] (aktuell) marc |
||
---|---|---|---|
Zeile 109: | Zeile 109: | ||
Quelle: http:// | Quelle: http:// | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | #$ cat / | ||
+ | |||
+ | ################################################################################## | ||
+ | # rule 1: decrypt the disk once it gets plugged in | ||
+ | ################################################################################## | ||
+ | |||
+ | # matches partitions (there is precisely one) of block devices with the serial | ||
+ | # number of my backup external hard disk | ||
+ | |||
+ | ACTION==" | ||
+ | |||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | |||
+ | ################################################################################## | ||
+ | # rule 2: as soon as the crypt container is opened, mount the filesystem inside it | ||
+ | ################################################################################## | ||
+ | |||
+ | # we (also) match on change because the device name is known only after some time | ||
+ | ACTION==" | ||
+ | |||
+ | # | ||
+ | # | ||
+ | |||
+ | |||
+ | ACTION==" | ||
+ | |||
+ | # | ||
+ |