Any way to get linux to give up on trying to reconnect nfs shares? I have them in fstab currently. I'd like them to attempt mount at boot and only try to reconnect manually thereafter. The shares it's complaining about below are on a machine that's not turned on all the time.
$ tail /var/log/syslog
Mar 17 10:13:26 Inspiron kernel: [429184.924089] nfs: server 192.168.1.200 not responding, timed out
Mar 17 10:13:30 Inspiron kernel: [429189.132255] nfs: server 192.168.1.200 not responding, timed out
Mar 17 10:13:37 Inspiron kernel: [429196.156051] nfs: server 192.168.1.200 not responding, timed out
Mar 17 10:13:37 Inspiron kernel: [429196.156072] nfs: server 192.168.1.200 not responding, timed out
Mar 17 10:13:42 Inspiron kernel: [429200.364084] nfs: server 192.168.1.200 not responding, timed out
Mar 17 10:13:46 Inspiron kernel: [429204.572092] nfs: server 192.168.1.200 not responding, timed out
Mar 17 10:13:53 Inspiron kernel: [429211.596078] nfs: server 192.168.1.200 not responding, timed out
Mar 17 10:13:53 Inspiron kernel: [429211.596122] nfs: server 192.168.1.200 not responding, timed out
Mar 17 10:13:57 Inspiron kernel: [429215.804094] nfs: server 192.168.1.200 not responding, timed out
Mar 17 10:14:01 Inspiron kernel: [429220.012094] nfs: server 192.168.1.200 not responding, timed out
$ cat /etc/fstab
192.168.1.200:/mnt/Raid/TV_SHOWS /home/Shares/TV_SHOWS nfs rsize=8192,wsize=8292,timeo=14,intr,rw,user
192.168.1.200:/mnt/Raid/MOVIES /home/Shares/Movies nfs rsize=8192,wsize=8292,timeo=14,intr,rw,user
192.168.1.200:/mnt/Raid/DocuTV /home/Shares/DocuTV nfs rsize=8192,wsize=8292,timeo=14,intr,rw,user
UPDATE:
I've modified my fstab with the additional flags but the problem is still occuring for some reason. Once the shares are mounted and the nfs server goes down it keeps trying to reestablish the connection rather than just unmount them. This problem only occurs if the nfs server goes down while the shares are mounted I believe.
192.168.1.200:/mnt/Raid/TV_SHOWS /home/Shares/TV_SHOWS nfs rsize=8192,wsize=8292,timeo=14,intr,rw,user,retry=0,nofail
192.168.1.200:/mnt/Raid/MOVIES /home/Shares/Movies nfs rsize=8192,wsize=8292,timeo=14,intr,rw,user,retry=0,nofail
192.168.1.200:/mnt/Raid/DocuTV /home/Shares/DocuTV nfs rsize=8192,wsize=8292,timeo=14,intr,rw,user,retry=0,nofail
UPDATE 2: I've tried bg, soft, retrans=100 , retry=0, nofail
It still doesn't seem to be unmounting the share when it loses connection. Every couple of minutes I get a couple of timeout messages for each share.
SOLUTION: I followed antipode's instructions below with a few changes
auto.master
/- /etc/auto.shares --timeout=60
The base mount point is / instead of /home/user/Shares. This fixed some issues I was having using autofs+fstab simultaneously. Shares unmount after 60 seconds.
auto.shares
/home/user/Shares/TV_SHOWS -rsize=8192,wsize=8292,timeo=14,intr,rw,uid=1000,gid=1000 192.168.1.200:/mnt/Raid/TV_SHOWS
/home/user/Shares/Movies -rsize=8192,wsize=8292,timeo=14,intr,rw,uid=1000,gid=1000 192.168.1.200:/mnt/Raid/MOVIES
/home/user/Shares/DocuTV -rsize=8192,wsize=8292,timeo=14,intr,rw,uid=1000,gid=1000 192.168.1.200:/mnt/Raid/DocuTV
Notice the colons after the nfs server IP. UID/GID mounts shares as user instead of root.