So here is the command line that works for me :
//192.168.XX.XX/media /mnt/media cifs noperm,iocharset=utf8,rw,credentials=/root/.storage_credentials,uid=root,gid=root,file_mode=0660,dir_mode=0770 0 0
then do nano /root/.storage_credentials
username=sambauser...