Siduction Forum > Scripting & Kernelhacking (EN)

script that mounts NAS with nfs only when availble

(1/1)

Lanzi:
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 192.168.178.12:/Multimedia /home/user/NAS

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

Carnophage:
I use systemd's automount options for something similar + auto unmount after idle, I configured mine based on https://wiki.archlinux.org/index.php/fstab#Automatic_unmount

Navigation

[0] Message Index

Go to full version
Powered by SMFPacks WYSIWYG Editor