Siduction Forum > Scripting & Kernelhacking (EN)

script that mounts NAS with nfs only when availble


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: ---mount /home/user/NAS

--- End code ---
Any ideas how I could do that?

I use systemd's automount options for something similar + auto unmount after idle, I configured mine based on


[0] Message Index

Go to full version
Powered by SMFPacks WYSIWYG Editor