I had the same issue with Synology, and what I ended up doing is this:
mount -t cifs -o username=whatevername,password=yourpassword //XXX.XXX.XXX.XXX/filename/batocera/ /userdata/ if you want all your stuff on the NAS, or you could just do this:
mount -t cifs -o username=whatevername,password=yourpassword //XXX.XXX.XXX.XXX/filename/batocera/roms /userdata/roms
mount -t cifs -o username=whatevername,password=yourpassword //XXX.XXX.XXX.XXX/filename/batocera/bios /userdata/bios
I have also tried the following lines added to batocera-boot.conf which caused the system to not boot.
sharenetwork_smb1=ROMS@192.168.0.1:Documents/batocera/roms:username=john,password=wayne
I have added the following lines to fstab:
//192.168.1.10/Storage/roms /userdata/roms cifs username=Username,password=Password,nounix,noserverino,defaults,users,auto 0 0
//192.168.1.10/Storage/bios /userdata/bios cifs username=Username,password=Password,nounix,noserverino,defaults,users,auto 0 0
Then ran batocera-save-overlay
ran mount -a and it worked with no errors, but still doesn’t work on reboot.