Which mount options are used with NFS "defaults"?

From Brandonhutchinson.com

(Difference between revisions)
Jump to: navigation, search

Revision as of 16:16, 10 April 2009

You've mounted an NFS volume using the mount options of "defaults". Which mount options were used? e.g., /etc/fstab entry:

NFS_server:volume /mount_point nfs defaults 0 0

To list the mount options used for the NFS volume, run nfsstat -m:

# nfsstat -m
/mount_point from NFS_server:volume
Flags:	rw,vers=3,rsize=65536,wsize=65536,hard,proto=tcp,timeo=600,retrans=2,sec=sys,addr=NFS_server

Let's say I want to use the options above, but want to use intr in order to be able to interrupt operations on the hard-mounted file system. To do so, either of the following will work:

NFS_server:volume /mount_point nfs intr 0 0
NFS_server:volume /mount_point nfs defaults,intr 0 0

I personally prefer the latter, as it is obvious that the "defaults" are used, with the non-default option "intr" added.

Personal tools