helpdavfs2 - Support: sr #108850, mounting via systemd fails


sr #108850: mounting via systemd fails

Submitted by:  None
Submitted on:  Tue 21 Jul 2015 09:34:55 AM UTC  
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  Werner Baumann <wbaumann>
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sat 25 Jul 2015 10:24:08 AM UTC, comment #1:

I tested on my Debian 8 system (amd64) and it is a bit confusing.

  • without mount option "_netdev": systemd tries to mount the davfs2 file system after the root file system has been remounted r/w. It calls mount with option -n and mounting fails. I'm not sure why it sets option -n, probably because /etc/mtab is a symbolic link to /proc/mounts.
  • with mount option "_netdev" set in fstab it will still first try to mount the davfs2 file system with option -n and before the network is up. So it fails again. But later it will retry after the netork is running and without option -n and mounting succeeds.

So setting mount option _netdev in fstab should help.

More info about the problem:

  • davfs2 should recognize option -n (and other generic options). But I'm not sure how it should behave.
  • davfs2 needs an entry in /etc/mtab or /var/run/mount/utab (a hardly documented new feature of mount). Without this entry the umount program will not be able to call the davfs2 umount helper. This helper is necessary to make sure that umount only returns after davfs2 has synchronized the cache or at least saved all necessary information to recover the state of the cache when mounted again.
  • davfs2 also needs write access to the cache directory. The default when mounted by systemd is /vare/cache/davfs2. So a davfs2 file system can not be mounted when /var/cache is read only.
  • davfs2 needs network connection.

Summary: a davfs2 file system must only be mounted after the root file system is mounted read/write and the network is working. If /etc/mtab is a symbolic link to /proc/mounts davfs2 will use /var/run/mount/utab, just like mount.

I will create a bug report for not recognizing the -n option, but I'm not yet sure how to treat it.


Werner Baumann <wbaumann>
Project AdministratorIn charge of this item.
Tue 21 Jul 2015 09:34:55 AM UTC, original submission:


systemd uses "-n" mount option. This is not understood by davfs and mounting fails.

Please see this issue, where I reported before:




(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by wbaumann (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-05-18 wbaumann StatusIn Progress => Done
    2015-07-25 wbaumann StatusNone => In Progress
        Assigned toNone => wbaumann

    Back to the top

    Powered by Savane 3.3