From mboxrd@z Thu Jan 1 00:00:00 1970 From: Farkas Levente Date: Sat, 09 Jun 2007 19:58:15 +0000 Subject: Re: udev remove ATTR(S) not working Message-Id: <466B0657.7050007@bppiac.hu> List-Id: References: <46673B9D.3000205@bppiac.hu> In-Reply-To: <46673B9D.3000205@bppiac.hu> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Kay Sievers wrote: > On 6/9/07, Andrey Borzenkov wrote: >> On Friday 08 June 2007, Farkas Levente wrote: >>> Andrey Borzenkov wrote: >>>> On Thursday 07 June 2007, Farkas Levente wrote: >>>>> ok so what i really need to somehow properly identify my pen drive. my >>>>> home partition is luks encrypted and the key on on my pen drive. when i >>>>> pug in the pen, udev recognize it and mount >>>> Any reason you are not using HAL for this? udev is simply the wrong place >>>> to do such things. And HAL supports LUKS natively AFAIR. >>> i don't see how can i use hal here? would you explain it to me?! >>> >> you never mentioned before that you want to mount encrypted partition when you >> are ot logged on. I am not sure how it works (you need to enter you key at >> some point, do not you?) but you can use something like ivman or write >> trivial handler in python that listens to device insert events and mounts >> them via HAL API. > > Right, HAL already handles teardown of LUKS volumes when they are removed. my luks partition is on the hard drive it's a 40GB lvm partition. the encryption key to the partition is on the pen drive. and i'd like to automatically luksopen and mount the encrypted partition when i plug in my pendrive and umount and luksclose when i unplug the pendrive. -- Levente "Si vis pacem para bellum!" ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel