Error when mounting nas folder to media

I am trying to mount a NAS folder to media, running a shell script when rebooting Home Assistant.
This is my script line:
mkdir -p /media/nasfiles; mount -t cifs -o vers=3.0,noserverino,username=username,password=password ,domain=WORKGROUP //192.168.2.14/Muziek/muziek /media/nasfiles

No folder is mounted however. When I run this script as command line on I get this error :
There are filesystem-specific -o flags
I do not know what this means, cannot find it on the internet.

My home assistant runs on a virtual machine on a Synology Nas
The IP address is the local ip of my Synology Nas.
What am I doing wrong ?

try leaving out this, so the system figures out it self. It works for me…

For -o options look for the man page of mount.cifs. the options vary per filesystem.

Thank you both for your answers. I copied the command from another site, and now it works.
I deleted the spaces before mount -t… and after my password.
I am suprised that this was the cause of the error.

1 Like