@oculos, just to help out a bit with understanding as I also got myself confused with the “invalid argument” issue.
-
As @DBMandrake wrote initiating the mount manually with
mount /mountpoint
will throw out the error as it is not designed for that. -
This should be your line in fstab
//<IP of Server>/<share name>/ /mnt/<mountpoint> cifs noauto,x-systemd.automount,iocharset=utf8,user,username=<username>,password=<password>,uid=osmc,gid=osmc,iocharset=utf8,file_mode=0770,dir_mode=0770 0 0
-
After you entered the line in fstab and you reboot if you just call
mount
you will not see the drive being mounted. That only will happen once a file operation is executed on the that filesystem e.g byls /mnt/<mountpoint>