We have three Linux development servers which are available through SMB/CIFS, and I mount them on my Mac (using an Automator script in my Login Items).
The problem is that the SMB shares are username based, so all three shares show up as the same name in the Finder. If one looks carefully in the Volumes folder, then of course they are given different names, but those names are arbitrary, based on the order of successful mounting, I suppose. And anyway, the different names don't show up in the Finder.
I would like to be able to easily know which one is which – even a colored label would be nice, but I can't seem to be able to edit tags or labels directly on volumes.
Right now I can do one of these two things:
- Open each of the "username" volumes, look at the list of folders inside, realize that these are not the projects I'm looking for, move on to the next folder.
- Open the server through the "Shared" section in the Finder sidebar. But this attempts to re-connect to the server for some reason. So there is a delay before the volume opens.
So, what can I do to be able to tell which volume came from which server?
Best Answer
Although tags cannot be edited directly from the finder for volumes, comments can.
Therefore, I went into Side bar → Devices → Machine Name (which is where I can see all the volumes. In fact, it shows the
/Volumes
folder), and did the following:Therefore, now, whenever I open the volumes list I can see the comment and know exactly which share I want to open.
Previous to discovering this, I discovered that although volume tags cannot be edited from the finder, they can be changed through command line.
userX
, and you have more than one such share mounted, one will be nameduserX
, the nextuserX-1
,userX-2
and so on. You can find out the name by getting info on the volume and looking at the "Name and extension" box.Run the following commands from terminal to copy the tags from you dummy folder:
Replace
/Users/userX/dummyFolder
with the full path of your dummy folder (you can drag it to the terminal window for that), and/Volumes/userX-N
with the name of the volume that you verified above.I learned this method from this answer.
Nevertheless I prefer the first method I mentioned, now that I discovered it, because:
Note: Both solutions require that you do not remove the
.DS_store
file on the server.