I have a NAS. On my Linux desktop, I mount a partition of the NAS via NFS.
The NAS isn't always switched on. When I need to use it, then I switch it on and use
mount -a on my desktop.
The related entry on my
192.168.1.110:/mnt/HD/HD_a2 /mnt/nas nfs rw,noatime,nodiratime 0 0
When the NAS is switched on,
mount -a works fine and mounts the NAS partition.
However, when the NAS is not switched on,
mount -a would hang, for very long (I'm not sure if it ever returns...). At this point when I switch on my NAS, the mount will succeed and return.
How can I get
mount -a to return (without mounting the NAS partition of course) if the NAS is not switched on instead of waiting?