The mount command in linux requires -t nfs4 in order to mount version 4 NFS shares, so I need to know beforehand which version it is.
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
Per: NFS version 3 and 4 with TCP/IP protocols, you could enter either of these commands:
Note: All flavours of the command appear to support the -p argument, while the Solaris and GNU linux variants also support the -s variant. You could include some logic, based around the enquiry, into a shell script that instantiates a variable that could be pluged into a mount command e.g.
|
|||
|
|
rpcinfo servername? – ott-- Jan 24 at 16:41