showmount + mount

Used to display the list of shared directories (exports) on a remote NFS server.

showmount -e <ip>

e: This option is used to display the list of exports on the specified NFS server.

When you run showmount -e <ip>, the NFS server responds with a list of directories that it has exported for mounting by NFS clients. Each line in the output typically represents a shared directory along with information about the clients that have mounted it.

Example output might look like:

Export list for <ip>:

/path/to/exported/directory client1 client2

/another/exported/directory client3

In this example:

/path/to/exported/directory is exported and can be mounted by client1 and client2.

/another/exported/directory is exported and can be mounted by client3.

Then we can try to mount the NFS share:

sudo mount -t nfs <ip>:<remote_folder> <local_folder> -o nolock [-o vers=2]

Then unmount it:

sudo umount <local_folder>