On 11/17/2011 03:06 PM, Neil Bothwick wrote:
> On Thu, 17 Nov 2011 14:22:35 +0100, Raffaele BELARDI wrote:
>> 3. uam: does not require fiddling with udev rules but cannot
>> un-mount
> 
> 3 is wrong, you can unmount with pmount, exactly the same as with
> 1.
> 
> uam is basically a set of udev rules that effectively does 1 for
> you. That's why I described it as the simplest option.
> 

Ok, I got a wrong impression reading the README: "The pmount utility
can be used to manually unmount removable devices mounted by uam which
can't be done by uam due to its reliance on udev triggers."

The ArchWiki link on Udev posted by James shows how to set a rule for
un-mounting:

ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/su tomk -c
'/usr/bin/pumount /media/%E{dir_name}'"

Based on your feedback I suppose the same can be done (or is done?)
with uam.

raffaele

Reply via email to