You are not logged in.

#1 2021-09-21 20:54:21

shuruper
Member
Registered: 2020-06-21
Posts: 67

[SOLVED]"different mount options in /etc/fstab" for webdav mount

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

#2 2021-09-21 21:00:58

loqs
Member
Registered: 2014-03-06
Posts: 18,077

Re: [SOLVED]"different mount options in /etc/fstab" for webdav mount

What if you use

$ mount /home/myuser/box

Offline

#3 2021-09-21 21:16:55

shuruper
Member
Registered: 2020-06-21
Posts: 67

Re: [SOLVED]"different mount options in /etc/fstab" for webdav mount

It worked! Thanks!

Could you please explain why the previous attempt was a failure?

Offline

#4 2021-09-21 21:26:33

loqs
Member
Registered: 2014-03-06
Posts: 18,077

Re: [SOLVED]"different mount options in /etc/fstab" for webdav mount

/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

#5 2021-09-22 07:56:08

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED]"different mount options in /etc/fstab" for webdav mount

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

Board footer

Powered by FluxBB