FSTAB SAMBA (https://discourse.osmc.tv/t/configuring-fstab-based-samba-share-mounts/38167)
sudo vim ~/.smbcredentials
username=<username>
password=<password>
List samba shares
sudo apt install smbclient
in this case I must use NAS hostname
smbclient -L <HOSTNAME> -U <USERNAME>
enter password
sudo vim /etc/fstab
I must use IP address of NAS
//<NAS_IP>/video /mnt/video cifs x-systemd.automount,noauto,rw,iocharset=utf8,credentials=/home/osmc/.smbcredentials,uid=osmc,gid=osmc,file_mode=0770,dir_mode=0770 0 0
//<NAS_IP>/photo /mnt/photo cifs x-systemd.automount,noauto,rw,iocharset=utf8,credentials=/home/osmc/.smbcredentials,uid=osmc,gid=osmc,file_mode=0770,dir_mode=0770 0 0
sudo mount -a
sudo systemctl daemon-reload
sudo systemctl restart remote-fs.target
navigate to /mnt/video or /mnt/photo
df -h will then list
AUTOFS SAMBA (https://discourse.osmc.tv/t/mounting-network-shares-with-autofs-alternative-to-fstab/74228)
sudo vim ~/.smbcredentials
username=<username>
password=<password>
sudo apt install autofs
sudo vim /etc/auto.master
/- /etc/auto.smb.shares --timeout 15 browse
sudo vim /etc/auto.smb.shares
/mnt/nas/video -fstype=cifs,rw,credentials=/home/osmc/.smbcredentials,iocharset=utf8,uid=osmc,gid=osmc ://<NAS_IP>/video
/mnt/nas/photo -fstype=cifs,rw,credentials=/home/osmc/.smbcredentials,iocharset=utf8,uid=osmc,gid=osmc ://<NAS_IP>/photo
sudo systemctl restart autofs
ls -lah /mnt/nas/video
ls -lah /mnt/nas/photo