6

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

12

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.

2

On your server, command smbstatus lists the clients that are connected to the server. https://www.samba.org/samba/docs/current/man-html/smbstatus.1.html

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'
1

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

mount -v | grep -i 'gvfs'
1
  • 1
    Thanks for your answer. I had used nautilus to samba connect, type smb and type cifs shew nothing, but your command output gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse. Sadly, not really self-explanatory output ;-) Jan 30 at 11:37
0
mount -v | grep -i -e 'type smb' -e 'type cifs'

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.