Skip to content

Windows SHOWMOUNT command

The Windows showmount command is used to display the mounted file systems on NFS servers. This command helps users to view the shared directories and resources on remote NFS servers. By running the showmount command with specific options, users can retrieve information about mounted directories, hosts, or exports. This can be useful for troubleshooting, managing network shares, and ensuring proper connectivity between NFS clients and servers. The showmount command is an essential tool for system administrators working with NFS environments on Windows systems.

SHOWMOUNT Syntax:

Terminal window
showmount [option] [parameter]

Options:

OptionDescription
-eList the exports available on the server
-dDump all clients that access the server
-aList all clients that access the server

Parameters:

ParameterDescription
ServerSpecifies the hostname or IP address of the server to query

SHOWMOUNT Usage:

Show all exported directories

Terminal window
showmount -e server1

Displays all directories that are currently exported by the server named “server1”.

Show clients mounting a specific directory

Terminal window
showmount -a /path/to/directory

Lists all clients that have mounted the specified directory “/path/to/directory”.

Display only the list of directories

Terminal window
showmount -d server1

Shows only the directories being exported by the server named “server1”.

Show detailed information for all exports

Terminal window
showmount -a -e server1

Provides detailed information about all exports on the server “server1”, including the clients mounting each exported directory.

Common Questions on SHOWMOUNT Usage:

How do I use showmount in Windows?

To use the showmount command in Windows, execute the following command:

Terminal window
showmount --help

What is the purpose of showmount in Windows?

The showmount command in Windows is used to display information about NFS (Network File System) exports on a specified NFS server.

Terminal window
showmount -e nfs_server_address

How can I list all NFS shares using showmount in Windows?

To list all NFS shares on a specific server in Windows, you can use the showmount command with the “—all” option.

Terminal window
showmount --all nfs_server_address

Can showmount display only specific NFS shares in Windows?

Yes, you can use the showmount command with the “-d” option followed by the directory path to display specific NFS shares in Windows.

Terminal window
showmount -d /path/to/directory nfs_server_address

How to showmount NFS shares with their clients in Windows?

To display NFS shares along with the client IP addresses that have currently mounted them in Windows, use the showmount command with the “-a” option.

Terminal window
showmount -a nfs_server_address

Is it possible to force unmount NFS shares using showmount in Windows?

Yes, you can force unmount NFS shares by using the showmount command with the “-f” option followed by the NFS server address and the share path.

Terminal window
showmount -f nfs_server_address:/path/to/share

How do I display verbose output with showmount in Windows?

To show verbose output while using the showmount command in Windows, you can include the “-v” option in your command.

Terminal window
showmount -v nfs_server_address

Applications of the SHOWMOUNT Command

  • Display exported directories for NFS server