[Unit] Description=Freebox share Wants=network-online.target After=network-online.target [Mount] Environment="SERVER='//192.168.0.254/Data'" What=$SERVER Where=/mnt/data Type=cifs Options=credentials=/etc/samba/credentials/data,_netdev,uid=1000,gid=985,iocharset=utf8,vers=3.1.1,file_mode=0644,dir_mode=0755 SloppyOptions=On TimeoutSec=10 [Install] WantedBy=multi-user.target