You are not logged in.
I'm having an issue while mounting a webdav folder. I added this line to /etc/fstab:
https://dav.box.com/dav /home/myuser/box davfs rw,user,uid=myuser,noauto 0 0
Then when I'm issuing a command to mount it gives me this:
$ mount -vt davfs https://dav.box.com/dav ~/box
/usr/bin/mount.davfs: different mount options in /etc/fstab
To make sure, myuser is added to both "network" and "davfs2" groups.
Mounting with "sudo" works well as it does when trying to mount via thunar.
Any help would be appreciated.
Last edited by shuruper (2021-09-21 21:17:09)
Offline
What if you use
$ mount /home/myuser/box
Offline
It worked! Thanks!
Could you please explain why the previous attempt was a failure?
Offline
/usr/bin/mount.davfs: different mount options in /etc/fstab
Not sure why mount found different options. You would have to experiment with what it would accept.
Offline
There are basically two ways to use mount: with or without fstab. If you specify either device or mountpoint alone (or -a), fstab is checked for further details. If you specify both device and mountpoint, fstab is normally not checked, and mount tries to detect the filesystem type and uses the default options unless you include -t/-o. This also requires root permissions (and you said it worked with sudo).
When you tried the "without fstab" form without sudo, mount(.davfs?) helpfully checked fstab anyway to see if this was allowed, but you (implicitly) requested the default options and those do not match the options is fstab. If you check after
sudo mount -vt davfs https://dav.box.com/dav ~/box
it should be mounted without the uid option.
Offline