Re: handling removable media without gnome-volume-manager
On Sun, 28 Mar 2010 20:21:20 -0600
Dave Thayer <debian1008610.dmthayer@recursor.net> wrote:
> On Fri, Mar 26, 2010 at 09:46:05PM -0700, briand@aracnet.com wrote:
> > Hi all,
> >
> > I'd like something where I can encode the behavior for particular
> > devices, i.e. as I'm using the same devices over and over I'd like a
> > way to make sure that the same device gets mapped to the same thing.
> >
> > Not needing X to be up and running is nice too.
>
> I use automount with a udev-fired script which generates automount
> maps based upon the usb (or firewire) device's label.
>
> For instance, my backup drive is labeled rsnapshot_backup. When I plug
> it in, an automount map is created for /media/auto/rsnapshot_backup/.
> When unplugged, the map and mount directory is removed.
>
> My script still has some rough edges, It contains a fair amount of
> crockery to deal with devices which generate multiple add events, such
> as my ipod.
>
That seems like a pretty good system.
I'm unclear what the order of execution is. Does udev create the event
which invokes automount ?
and if automount is executed first, how is it getting invoked ?
Brian
Reply to: