AutoFS Only Shows 1 Folder

When you did the umount, autofs will not try to mount again until you reboot. And if you edit auto.shares, autofs will not see that unless you restart it (or reboot).

1 Like

You have a 4KHDR1 folder being shared and that contains a “movies” and “TV Shows” folder. Are these two folders the same ones that are showing up as being shared on their own? Are you sure you checked this “Movies” folder to make sure both sharing permissions AND file permissions are correct for the user your connecting with?

1 Like

@bmillham Ah ok . Got it.

@darwindesign I will check again.

changed it now to /mnt/4KHDR1

Same.

osmc@VERO1:~$ ls -lah /mnt/4KHDR1
total 8.0K
drwxr-xr-x 2 osmc osmc 4.0K May 21  2020  .
drwxr-xr-x 4 root root 4.0K Dec 19  11:37 ..
drwxr-xr-x 2 osmc osmc    0 Dec 19 09:24  'System Volume Information'
drwxr-xr-x 2 osmc osmc    0 Sep 16  05:12 'TV Shows'
osmc@VERO1:~$

Something must be seriously wrong on the Windows configuration then. I don’t use Windows, so hopefully @darwindesign will be able to help at this point.

1 Like

As @darwindesign wrote your second share “Movies” is a bit confusing. So really suggest to check 4kHDR1 share details on the Windows system.
Alternative you always can check via smbclient.

smbclient //192.168.100.41/4KHDR1 -U <user>
After entering your password you should see an smb:> prompt at which you can run dir to see the directory.

2 Likes

Weird. Here you can see Movies folder.

smb:  \> dir
  $RECYCLE.BIN               DHS       0  Sat Dec 19 12:00:38 2020
  Movies                       D       0  Wed Dec 16 21:59:56 2020
  System Volume Information  DHS       0  Sat Dec 19 09:24:54 2020
  TV Shows                     D       0  Wed Sep 16 05:12:20 2020
         1953506047 blocks of size 4096. 212576163 blocks available
smb:  \>

Agree, weird! Assuming you have used same user/password as you have in /home/osmc/.smbcredentials

Try debugging to see if something pops up

sudo systemctl stop autofs
sudo automount -f -v -d
1 Like

I did use the same username and password. This doesn’t make sense. Thank you, Microsoft!

Does anyone know any NFS solution for Windows 10? hahaha

You could try to create individual shares, like 4KTV and 4KMovies.

Did you try as suggested and get rid of the Movies share?

1 Like

here’s the message. looks like an endless loop.

expire_proc:  exp_proc = 4095734864 path /-
expire_cleanup: got thid 4095734864 path /- stat 0
expire_cleanup: sigchld: exp 4095734864 finished, switching from 2 to 1
st_ready: st_ready(): state = 2 path /-
st_expire: state 1 path /-
expire_proc:  exp_proc = 4095734864 path /-
expire_cleanup: got thid 4095734864 path /- stat 0
expire_cleanup: sigchld: exp 4095734864 finished, switching from 2 to 1
st_ready: st_ready(): state = 2 path /-
st_expire: state 1 path /-
expire_proc:  exp_proc = 4095734864 path /-
expire_cleanup: got thid 4095734864 path /- stat 0
expire_cleanup: sigchld: exp 4095734864 finished, switching from 2 to 1
st_ready: st_ready(): state = 2 path /-
st_expire: state 1 path /-

You need to have 2 SSH sessions open. In one, do the automount command, and in the other actually cd to the directory to cause it to mount (or try to access it from Kodi)

Ok. I ran

sudo systemctl stop autofs
sudo automount -f -v -d

on the first ssh

and

cd /mnt/4KHDR1
ls -lah

on the 2nd ssh.

The 1st SSH kept looping but a different number now. The 2nd SSH behaved “normally” which is showed the contents of /mnt/4KHDR1 but no Movies folder. Just the TV Shows folder and System Volume Information folder.

I will try to add the Movies folder directly

Can not there must be some mounting information being shown in that window.
What does mount say? Something is strange on the setup.
Maybe do sudo systemctl disable autofs then reboot and then run mount.

sudo systemctl disable autofs
sudo reboot
mount

has this output

osmc@VERO1:~$ mount
devtmpfs on /dev type devtmpfs (rw,relatime,size=757400k,nr_inodes=189350,mode=755)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /run type tmpfs (rw,relatime)
/dev/mapper/vero--nand-root on / type ext4 (rw,relatime,stripe=1024,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/bfqio type cgroup (rw,nosuid,nodev,noexec,relatime,bfqio)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=38,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=176412k,mode=700,uid=1000,gid=1000)
osmc@VERO1:~$

Ok then

ls -lah /mnt/4KHDR1 just to ensure nothing is there.

Then in one window run sudo automount -f -v -d and in the other ls -lah /mnt/4KHDR1 and monitor the first window you should see several messages including mounting line for /mnt/4KHDR1

indent preformatted text by 4 spaces
handle_packet: type = 5
handle_packet_missing_direct: token 1, name /mnt/4KHDR1, request pid 1134
attempting to mount entry /mnt/4KHDR1
lookup_mount: lookup(file): looking up /mnt/4KHDR1
lookup_mount: lookup(file): /mnt/4KHDR1 -> -fstype=cifs,rw,credentials=/home/osmc/.key-C5387AAE-9112-4C6D-B915-7AD70ED9B151,iocharset=utf8,uid=osmc,gid=osmc,vers=2.0 ://192.168.100.41/4KHDR1
parse_mount: parse(sun): expanded entry: -fstype=cifs,rw,credentials=/home/osmc/.key-C5387AAE-9112-4C6D-B915-7AD70ED9B151,iocharset=utf8,uid=osmc,gid=osmc,vers=2.0 ://192.168.100.41/4KHDR1
parse_mount: parse(sun): gathered options: fstype=cifs,rw,credentials=/home/osmc/.key-C5387AAE-9112-4C6D-B915-7AD70ED9B151,iocharset=utf8,uid=osmc,gid=osmc,vers=2.0
parse_mount: parse(sun): dequote("://192.168.100.41/4KHDR1") -> ://192.168.100.41/4KHDR1
parse_mount: parse(sun): core of entry: options=fstype=cifs,rw,credentials=/home/osmc/.key-C5387AAE-9112-4C6D-B915-7AD70ED9B151,iocharset=utf8,uid=osmc,gid=osmc,vers=2.0, loc=://192.168.100.41/4KHDR1
sun_mount: parse(sun): mounting root /mnt/4KHDR1, mountpoint /mnt/4KHDR1, what //192.168.100.41/4KHDR1, fstype cifs, options rw,credentials=/home/osmc/.key-C5387AAE-9112-4C6D-B915-7AD70ED9B151,iocharset=utf8,uid=osmc,gid=osmc,vers=2.0
do_mount: //192.168.100.41/4KHDR1 /mnt/4KHDR1 type cifs options rw,credentials=/home/osmc/.key-C5387AAE-9112-4C6D-B915-7AD70ED9B151,iocharset=utf8,uid=osmc,gid=osmc,vers=2.0 using module generic
mount_mount: mount(generic): calling mkdir_path /mnt/4KHDR1
mount_mount: mount(generic): calling mount -t cifs -o rw,credentials=/home/osmc/.key-C5387AAE-9112-4C6D-B915-7AD70ED9B151,iocharset=utf8,uid=osmc,gid=osmc,vers=2.0 //192.168.100.41/4KHDR1 /mnt/4KHDR1
mount_mount: mount(generic): mounted //192.168.100.41/4KHDR1 type cifs on /mnt/4KHDR1
dev_ioctl_send_ready: token = 1
mounted /mnt/4KHDR1
st_expire: state 1 path /-
expire_proc: exp_proc = 4094686288 path /-
expire_proc_direct: send expire to trigger /mnt/4KHDR1
1 remaining in /-
expire_cleanup: got thid 4094686288 path /- stat 1
expire_cleanup: sigchld: exp 4094686288 finished, switching from 2 to 1

The .key-C5387AAE-9112-4C6D-B915-7AD70ED9B151 there is the placeholder for .smbcredentials

Maybe trying with vers=3.0 in your config file (even so it would suprize me if that makes a difference.)

Also once more n understanding your server side. Movies is a physical folder of 4KHDR1?

Thank you! I will try that.

You’re correct. Movies is a physical folder inside 4KHDR1 :slight_smile:

If v3 doesn’t work, I’ll try to mount the folder directly and see if it helps.

I am still confused with the capital “K”, on my mounts I checked and letters are not automatically capitalized
mounted //192.168.144.1/video is shown when I run my share in debug