[Unit]
Description=Mount SMB share
# We require network connection before proceeding.
Requires=network-online.target
After=network-online.target systemd-resolved.service
Wants=network-online.target systemd-resolved.service
[Mount]
# "What" is what will be mounted. ie our NAS SMB share
# PUT YOUR SMB IP ADDRESS! (the // is important, don't change it)
What=//192.xxx.xx.xxx/media
# "Where" is where it will be mounted in the filesystem
Where=/home/xxxx/xxxx/media/
Type=cifs
# Let the mounted filesystem be read/write-able
# Let the mounted filesystem be owned by the 'deck' user/group
# Use the specified credential file for the connection
Options=rw,uid=1000,gid=1000,nofail,credentials=/home/xxxx/.sambacreds
# Lets quit trying after 30 seconds
TimeoutSec=30
[Install]
WantedBy=multi-user.target
[Unit]
Description=Mount SMB share
# We require network connection before proceeding.
Requires=network-online.target
After=network-online.target systemd-resolved.service
Wants=network-online.target systemd-resolved.service
[Mount]
# "What" is what will be mounted. ie our NAS SMB share
# PUT YOUR SMB IP ADDRESS! (the // is important, don't change it)
What=//192.xxx.xx.xxx/media
# "Where" is where it will be mounted in the filesystem
Where=/home/xxxx/xxxx/media/
Type=cifs
# Let the mounted filesystem be read/write-able
# Let the mounted filesystem be owned by the 'deck' user/group
# Use the specified credential file for the connection
Options=rw,uid=1000,gid=1000,nofail,credentials=/home/xxxx/.sambacreds
# Lets quit trying after 30 seconds
TimeoutSec=30
[Install]
WantedBy=multi-user.target