Re: [systemd-devel] How to automount

2015-09-21 Thread Mantas Mikulėnas
On Tue, Sep 22, 2015 at 7:38 AM, Paul D. DeRocco wrote: > > From: Mantas Mikulenas [mailto:[email protected]] > > > > > I don't think there's any way to have something auto-unmount > > > > There certainly is - udev has been unmounting unplugged > > drives for many years. It's done by default. > >

Re: [systemd-devel] How to automount

2015-09-21 Thread Paul D. DeRocco
> From: Mantas Mikulenas [mailto:[email protected]] > > > I don't think there's any way to have something auto-unmount > > There certainly is - udev has been unmounting unplugged > drives for many years. It's done by default. Sure, you can get it to unmount after you've removed it, but that's

Re: [systemd-devel] How to automount

2015-09-21 Thread Mantas Mikulėnas
> I don't think there's any way to have something auto-unmount There certainly is – udev has been unmounting unplugged drives for many years. It's done by default. On Mon, Sep 21, 2015, 23:10 Paul D. DeRocco wrote: > > From: Umut Tezduyar Lindskog [mailto:[email protected]] > > > > I am not sur

Re: [systemd-devel] How to automount

2015-09-21 Thread Paul D. DeRocco
> From: Umut Tezduyar Lindskog [mailto:[email protected]] > > I am not sure if automount is really the right way to go. In the end, > your automount path will fail if your device is not plugged in. A little experimenting showed you're right. > You could always use udev rules (ENV{SYSTEMD_WANTS}

Re: [systemd-devel] How to automount

2015-09-21 Thread Umut Tezduyar Lindskog
I am not sure if automount is really the right way to go. In the end, your automount path will fail if your device is not plugged in. You could always use udev rules (ENV{SYSTEMD_WANTS}='media-ext.mount') to mount the volume. http://www.freedesktop.org/software/systemd/man/systemd.device.html Umu

[systemd-devel] How to automount

2015-09-19 Thread Paul D. DeRocco
I want a removable flash drive to be automatically mounted when I plug it in, and unmounted when I unplug it. I've done what seems to be required by the systemd.automount man page, but it's not working. The physical drive appears as /dev/sdb1 (it is a partitioned drive). The mount point (which exi