to avoid "Where= setting doesn't match unit name. Refusing." https://unix.stackexchange.com/questions/283442/systemd-mount-fails-where-setting-doesnt-match-unit-name
14 lines
267 B
SYSTEMD
14 lines
267 B
SYSTEMD
[Unit]
|
|
Description=Mount of NAS (/mnt/nas)
|
|
|
|
[Mount]
|
|
What=//192.168.1.222/fro
|
|
Where=/mnt/nas
|
|
Type=cifs
|
|
Options=iocharset=utf8,rw,file_mode=0777,dir_mode=0777,user=USERNAME,password=PASSWORD
|
|
TimeoutSec=30
|
|
|
|
[Install]
|
|
WantedBy=remote-fs.target
|
|
WantedBy=multi-user.target
|