Solved davfs in fstab: Invalid fstype

I am trying to mount a webdav at boot using fstab, I read a couple articles and I must miss something obvious...

I have installed fusefs-davfs2 and I got fusefs_load="YES" in my /boot/loader.conf (not sure it is needed, at least it is not when I manually mount).

I have added this line to my /etc/fstab:
https://webdav.mydomain /mnt/webdav davfs rw,user,uid=myusername,noauto 0 0

I am using noauto to avoid dropping into root shell during boot as I have an error I am not able to solved, it can be reproduce doing a manual : doas mount /mnt/webdav :
mount: https:/webdav.mydomain: Invalid fstype: Invalid argument

Mounting manually is working : doas mount.davfs https://webdav.mydomain /mnt/webdav

Any idea?
Many thanks
 
Maybe give this fsfab option a chance, also late option may work too, idk.

From mount(8):
Code:
mountprog=<program>
         Force mount touse thespecified program to mount the
         file system, instead of calling nmount(2) directly.
         For example:

         mount -tfoofs -o mountprog=/mydir/fooprog /dev/cd0 /mnt
 
Rename is just for testing. If it works, the port should be fixed up. But yes, as a temp fix a symlink/hard link would do just fine.
 
I think you need tabs (rather than spaces) between the columns, and no commas, except under the Options column:
Code:
% cat /etc/fstab
# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/gpt/efiboot0               /boot/efi       msdosfs rw              2       2
/dev/nda0p3             none    swap    sw              0       0
proc                    /proc           procfs  rw              0       0

extra tabs between columns seem to be OK for some reason.
 
I must miss something obvious...
This is not documented in the FreeBSD manuals or the 3rd party application documentation: To mount 3rd party file systems (file systems not supported by default on FreeBSD), their mount program must be specified in the mount(8) command line or in fstab(5).

Unlike on Linux, "davfs" alone is not a valid FreeBSD fstab(5) FStype entry. There is no logic for mount(8) (which is invoked when fstab is read during boot) to process a unsupported by default, specific file system type. It is necessary to specify the 3rd party file system mount program.
Rich (BB code):
# Device                  Mountpoint   FStype  Options        Dump    Pass#

https://webdav.mydomain   /mnt/webdav  davfs   mountprog=/usr/local/sbin/mount.davfs,rw,user,uid=myusername,noauto 0 0
Important is the "mountprog=" option. OTOH, "FStype" can be a arbitrary name (try "foofs").

mount -t foofs -o mountprog=/usr/local/sbin/mount.davfs,rw https://webdav.mydomain /mnt/webdav
 
First of all thanks for all the suggestions !

T-Daemon you made my day !! Your suggestion works perfectly that's perfect, many thanks again, and hope that this will be useful for anyone who'd make a research in the future
 
Back
Top