8

I would like to see how certain volume shares are connected to my Mac. I'm on a Windows network and need to know if shares are connected over smb2 or cifs or afp protocol... etc... Do I need to restart my Mac each time to get an accurate reading? (cache)

2 Answers 2

8

You could use the mount command from terminal:

mount

This will give a print out of everything mounted on the system and details about what protocol was used and by who. Here's in example output:

/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
map -fstab on /Network/Servers (autofs, automounted, nobrowse)
/dev/disk1s2 on /Volumes/TM Backup (hfs, local, nodev, nosuid, journaled)
//user@theShare:548/Share on /Volumes/Share (afpfs, nodev, nosuid, mounted by user)
4
  • Simple. Thank you. Would this differentiate from CIFS vs SMB? Or is it all the same to the Mac?
    – kevllar
    Oct 31, 2014 at 18:15
  • CIFS stands for Common Internet File System. It is the standard file sharing in Windows. Mac accesses it using the Samba protocol(SMB).
    – tron_jones
    Oct 31, 2014 at 18:20
  • Interestingly, in Big Sur (macOS 11.6) this shows me where the share is mounted, but I cannot ls those directories. I can, however, use Finder to view the contents. To be super clear, ls /Volumes/Users yields operation not permitted and Finder Shift-Command-G /Volumes/Users shows all!
    – Jason
    Sep 23, 2021 at 14:22
  • It's a security setting in System Preferences. Terminal didn't have access to "Network Volumes" under "Privacy"->"Files and Folders".
    – Jason
    Sep 23, 2021 at 14:26
13

For a more detailed listing of samba connections including the protocol in use, try:

smbutil statshares -a
1
  • this isn't working for me. I have smb on, I have a share, but when I type that command it shows no shares
    – gman
    Aug 26, 2018 at 6:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .