Set the SMB version too, it helped for me. Considering the share is made with SMB version 3:
on RPI with OSMC “-fstype=cifs,rw,vers=3.11”
on Vero4K+ last update “-fstype=cifs,rw,vers=3.0”
(3.11 is not working on vero4k, SMB client version I guess)
You can try the debug way too, it’s described in the wiki if I’m not wrong. You need 2 ssh sessions, the first starting “sudo automount -f -v -d” and the second to restart the systemD unit (autofs) or simply touching the share
This seems unclear to me. Perhaps just state that if putting the credentials inline with a space then it must be quoted to encapsulate the space… /mnt/<server1>/<share1> -fstype=cifs,rw,username="First Second",password=<password>,iocharset=utf8,uid=osmc,gid=osmc ://<IP of server1>/<share1>
And if using a credentials file then just use the space with no accommodation.
username=First Second
password=<password>
Either way escape characters do not work in these files either by using a "\ " or "\040".
It may also be helpful to mention that the credentials in a credentials file are read from the “=” to <LF> so any trailing spaces or <CR> will break things.
Can you elaborate here a bit. I remember someone posting something a while back about wanting something greater than SMB v3.0 but they found that one version worked but not another, or maybe one needed a newer OSMC version or something. Does using SMB v3.1.1 work in current stable with both Synology and Windows?
Sure, this i my setup.
I’m running the latest OSMC at a RP3.
The NAS is a old Synology running DSM 6.2.4.
First I configured the shares (/etc/auto.smb.shares) whitout any “vers” parameter. Then it mounted the shares using smb1. Then I tried vers=3 and it did not work at all.
Then after some reading I tried vers=3.1.1 and it worked.
Every time I reimage a box, I install autofs then copy /etc/auto* from a backup of the old image. Today I took the trouble to diff the installed conf files (version 5.1.7-1) with my 3-4 year old conf files and it seems the preferred way of writing them has changed. Does this guide need updating? here’s a diff of auto.master - I don’t know what’s meant by a map.
osmc@osmc:~/autofs$ diff -u auto.master /etc/auto.master
--- auto.master 2023-04-19 09:00:34.156239567 +0000
+++ /etc/auto.master 2021-02-04 12:36:20.000000000 +0000
@@ -13,10 +13,20 @@
#/net -hosts
#
# Include /etc/auto.master.d/*.autofs
-# The included files must conform to the format of this file.
+# To add an extra map using this mechanism you will need to add
+# two configuration items - one /etc/auto.master.d/extra.autofs file
+# (using the same line format as the auto.master file)
+# and a separate mount map (e.g. /etc/auto.extra or an auto.extra NIS map)
+# that is referred to by the extra.autofs file.
#
+dir:/etc/auto.master.d
#
+# If you have fedfs set up and the related binaries, either
+# built as part of autofs or installed from another package,
+# uncomment this line to use the fedfs program map to access
+# your fedfs mounts.
+#/nfs4 /usr/sbin/fedfs-map-nfs4 nobind
+#
# Include central master map if it can be found using
# nsswitch sources.
#
@@ -26,6 +36,3 @@
# precedence.
#
+auto.master
-/- /etc/auto.nfs.shares --timeout 30 browse
-/- /etc/auto.smb.shares --timeout 30 browse
-
Although I am onto my 3rd Vero I am not that experienced in the nuances so apologies if this is a really daft question.
Once I have completed the instructions for AutoFS I can see that the Files Section of my Movies & TV folders now contains an ‘Auto-mounted Drives’ section.
Do I still need to manually add Movies & TV here via the Add videos… option or do I do something with the Auto-mounted drives option instead?
This is not related to autofs, this section comes from OSMC and contains removable drives that are automounted when attached to the Vero via USB.
autofs as described here focus on automatically mounting network drives.
And yes after using autofs (which makes sure that the network share is mounted on the local file tree you need to use “Add videos” to add that folder as a source to Kodi and tell Kodi what it contains.
No, if you use the NFS then you would not need the autofs part.
If you use the autofs part you would use “Root Filesystem” and chose the location where you mounted it to.
Ah ha - I knew I was missing something as the logic of just browsing as normal made no sense to me.
Thank you
I’ll add that into my ‘dummys guide’ of how to do AutoFS.