How to get mount info from NFS server remotely

Saturday, September 29 2007 @ 12:20 PM MDT

Contributed by: emperor

showmount - show mount information for an NFS server

Option:
-e or --exports <Show the NFS server’s export list.>

Example:
(NFServer=hostname of server @192.168.1.5, 192.168.1.x=wired network, 192.168.2.x=wireless network)

lee@linXos:~$ showmount -e NFServer
Export list for NFServer:
/mnt/MythTV 192.168.1.0/24
/mnt/smb/public 192.168.2.0/28,192.168.1.0/24
/mnt/smb 192.168.1.0/24,192.168.2.6,i1100,i3200,i9300
/mnt/media guest7,i9300,linXos
/mnt/smb/usr/lee i9300,linXos
/mnt/smb/usr/barb i1100,barb
/mnt/smb/usr/kristeen 192.168.2.6,i3200,KPcomix

Now it can be determined remotely that machine "linXos" (192.168.1.2) could locally mount "/mnt/MythTV", "/mnt/smb/public", "/mnt/smb", "/mnt/media", and "/mnt/smb/usr/lee".

Adding the following to "/etc/fstab" on the client machine would automatically mount 3 of the allowed partitions at boot:

NFServer:/mnt/smb /media/smb nfs tcp,rsize=8192,wsize=8192,timeo=14,intr 0 0
NFServer:/mnt/media /media/media nfs tcp,rsize=8192,wsize=8192,timeo=14,intr 0 0
NFServer:/mnt/smb/public /media/public nfs tcp,rsize=8192,wsize=8192,timeo=14,intr 0 0

0 comments



http://hllug.org/article.php/20070929122051727