Skip to content

Instantly share code, notes, and snippets.

@oleksdovz
Last active September 29, 2024 19:41
Show Gist options
  • Save oleksdovz/3e31ec7e5fcf1191903796f2e6458d12 to your computer and use it in GitHub Desktop.
Save oleksdovz/3e31ec7e5fcf1191903796f2e6458d12 to your computer and use it in GitHub Desktop.
Debian. Mount nfs share using systemd
## File /etc/systemd/system/DATA.mount
[Unit]
Description=nfs mount script
Requires=network-online.target
After=network-online.service
[Mount]
Type=nfs4
What=192.168.0.20:/Download/casa
Where=/DATA
Type=nfs
Options=_netdev,auto
[Install]
WantedBy=multi-user.target
# $ systemctl daemon-reload
# $ systemctl daemon-reload
# $ systemctl enable DATA.mount
# $ systemctl restart DATA.mount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment