5

showmount only list me NFS mounts. I also want such a list for samba shares. How can this be done?

10

The answer should be a simple mount -t <fs_type>:

mount -t cifs

You will have the exact list of mounted smb filesystem (that is cifs type).

This option is available at least on Linux and FreeBSD.

1

mount will show you all the mounts on your system, including smb mounts. You can easily find them just by looking at the list, but if you want to see only smb mounts, you can try something like:

mount -v | grep -i 'type smb'

or, if they are CIFS mounts not smbfs:

mount -v | grep -i 'type cifs'
0
mount -v | grep -i -e 'type smb' -e 'type cifs'
0

If you used Nautilus to connect to the smb server, then the following command might be useful:

mount -v | grep -i 'gvfs'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.