How to mount remote shares that have the same name, and easily differentiate them in the Finder? 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?
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:


I added the name of the particular server as a comment to each of the volumes.
In the finder view options, I added the comment column so that it shows when the folder is in list view, and checked the "always open in list view" option.


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.


Create a dummy folder or use some existing folder in your own home folder. Change its tag to whatever you want the volume to have.
Get info on the volume you want to change, to see its current name. That is, if the share name is your username userX, and you have more than one such share mounted, one will be named userX, the next userX-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:

xattr -wx com.apple.metadata:_kMDItemUserTags "$(xattr -px com.apple.metadata:_kMDItemUserTags /Users/userX/dummyFolder )" /Volumes/userX-N
xattr -wx com.apple.FinderInfo "$(xattr -px com.apple.FinderInfo /Users/userX/dummyFolder )" /Volumes/userX-N


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:


It displays actual textual information rather than a color I have to remember the meaning of (though of course I could go for a text tag rather than a color tag).
It requires no command-line access, only simple finder operations.
It doesn't change anything in the volume that isn't supposed to be changed.


Note: Both solutions require that you do not remove the .DS_store file on the server.