Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

share|improve this question

2 Answers 2

up vote 3 down vote accepted

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.

share|improve this answer

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'
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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