× Important!

We are moving this forum and all our websites soon due to infrastructural changes. Please read the announcement for all details!
Welcome, Guest. Please login or register.
Did you miss your activation email?
2021/06/14, 20:58:56


Author [EN] [PL] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: script that mounts NAS with nfs only when availble  (Read 9298 times)

0 Members and 1 Guest are viewing this topic.

Offline Lanzi

  • User
  • Posts: 1.688
I do not know if this is complicated. Maybe it is not.
My NAS is sometimes switched off, but usually switched on.When I start one of my other computers it would be cool, if the mount the NAS if it's witched on and then mount it (i use nfs, because it seems the easiest and I do not have windows, so no need for samba).
i mount my nas with
Code: [Select]
mount /home/user/NAS
Any ideas how I could do that?

Offline Carnophage

  • User
  • Posts: 23
Re: script that mounts NAS with nfs only when availble
« Reply #1 on: 2020/04/29, 12:32:09 »
I use systemd's automount options for something similar + auto unmount after idle, I configured mine based on