[Novalug] systemd automount unit won't start

Bryan J Smith b.j.smith@ieee.org
Tue Jun 16 21:42:46 EDT 2015


Sounds like the Automounter executive is not working.

Check the status with ...
NOTE:  The automounter is its own unit type, including its executive.

  $ systemctl list-units --type=automount --all

Don't forget "--all" to list any unit, running or not.

Once you find the unit, you can further check the status details with ...

  $ systemctl status (unit).(type)

Here's my output from notebook currently booted in Fedora. [1]

-- bjs

[1] [pastebin] systemd automount unit types (Fedora)
- http://pastebin.com/m6BeejuY



On Tue, Jun 16, 2015 at 3:47 PM, Jeremy Trimble via Novalug
<novalug@firemountain.net> wrote:
> I'm using the (preferred) fstab-based method of automounting an NFS
> share via systemd:
>
> 10.1.2.3:/exports/data /mnt/data nfs
> rsize=1048576,wsize=1048576,intr,noatime,nofail,x-systemd.automount,x-systemd.device-timeout=90
> 0 0
>
> But for some reason the automount unit generated by systemd doesn't
> seem to want to start:
>
> user@myhost:/run/systemd/generator$ sudo systemctl status mnt-data.automount
> ● mnt-data.automount
>    Loaded: loaded (/etc/fstab)
>    Active: failed (Result: resources)
>     Where: /mnt/data
>      Docs: man:fstab(5)
>            man:systemd-fstab-generator(8)
>
> Jun 16 19:32:39 myhost systemd[1]: Trying to enqueue job
> mnt-data.automount/start/replace
> Jun 16 19:32:39 myhost systemd[1]: Installed new job
> mnt-data.automount/start as 91
> Jun 16 19:32:39 myhost systemd[1]: Enqueued job mnt-data.automount/start as 91
> Jun 16 19:32:39 myhost systemd[1]: Starting mnt-data.automount.
> Jun 16 19:32:39 myhost systemd[1]: Failed to initialize automounter:
> No such file or directory
> Jun 16 19:32:39 myhost systemd[1]: Job mnt-data.automount/start
> finished, result=failed
> Jun 16 19:32:39 myhost systemd[1]: Failed to set up automount
> mnt-data.automount.
>
> This line:
>
> Failed to initialize automounter: No such file or directory
>
> ... seems important.
>
> Any idea why I'd see this?  Does some other package need to be
> installed in order for automounting under systemd to work?
>
> This is on Debian Jessie.



-- 
Bryan J Smith - http://www.linkedin.com/in/bjsmith




More information about the Novalug mailing list