SMB Mount directory and reconnecting
I fixed the issue using automount


  sudo mkdir -p /mnt/scan
  
  sudo echo "/mnt/scan      auto_scan" >> /etc/auto_master
  
  sudo echo "scansnap -fstype=smbfs ://MYUSER:MYPASS@192.168.1.2/scan/scansnap" >>
   /etc/auto_scan
  
  sudo chmod 600 /etc/auto_scan
  
  sudo automount -vc
  
  ls -la /mnt/scan/scansnap