From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw0-f50.google.com (mail-yw0-f50.google.com [209.85.213.50]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Wed, 12 Jan 2011 06:34:43 +0100 (CET) Received: by ywo7 with SMTP id 7so95524ywo.37 for ; Tue, 11 Jan 2011 21:34:42 -0800 (PST) Date: Tue, 11 Jan 2011 20:34:35 -0900 From: Roger Message-ID: <20110112053435.GB5368@localhost2.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [dm-crypt] Auto Mounting when file accessed? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Is there a known method, when a user accesses a file/folder of an unmounted dm-crypt partition, the action can spawn an attempt to automatically mount this partition. For the password prompt, as I constantly am working within a terminal and not GUI desktop for obvious reasons, pinentry is commonly used for prompting in a terminal or by GUI for a password when using GNUPG. app-crypt/pinentry http://gnupg.org/aegypten2/index.html Any thoughts on this? (Kernel DBUS/UDEV script or something?) The type of current setup targeted is a file containing an encrypted EXT3 filesystem using dm-crypt, for which is mounted to /mnt/crypt. This is usually left in an unmounted state until wanting access to something within /mnt/crypt/somefile/orfolder. ie. "vi /mnt/crypt/myfile or abook /mnt/crypt/addressbook --datafile /home/roger/.abook/addressbook" I'm thinking, something within the dbus/udev (kernel script) is needed. Another thought, what if TAB Bash Completion is used? -- Roger http://rogerx.freeshell.org/