On Sat, 19 May 2001, Paul Abrahams wrote:
I have entries in /etc/fstab for another machine on my network:
pleurotus:/ /pleurotus nfs defaults,user,bg,rsize=4096 0 0 pleurotus: /aux/home /pleurotus-home nfs defaults,user,bg,rsize=4096 0 0 pleurotus: /dos_g/Exchange /Exchange nfs defaults,user,bg,rsize=4096 0 0
However, that machine isn't always turned on. I'd like to modify these entries so that if the machine isn't detected, the mount is retried later. I've looked in the nfs man page but didn't find anything there that would indicate what's needed.
So how can I implement the automatic retry of the mount? What you can do is setting the noauto option for your nfs partitions and writing a script like
if ping -c 1 -w 1 pleurotus >/dev/null then\ mount /pleurotus mount /pleurotus-home mount /Exchange else\ sleep 300 /path/to/script fi Or you can leave the else-branch and putting it all in a crontab if you prefer.
Paul
-- dieter