Posted on 11-06-2019 01:04 PM
Hello,
When I make a connection with our server by the finder, "Connect to Server" with the following command
smb://server/department/people/mycode
the mount point is
/Volumes/mycode
That is ok for me.
I drag and drop the icon from the desktop to the login items.
At the next login the mount point is
/Volumes/department
How to change the mount point to
/Volumes/mycode
Thanks in advance for your answer(s),
André
Posted on 11-06-2019 03:23 PM
Instead of using "Login Items," create a little script that uses mount_smbfs <server/share> <existing folder> that you want to use as a mount point. Save it somewhere. make it excutable. Then create a plist file to put in ~/Library/Launch Agents that points to the shell script you saved. Now launchd takes over and always automounts the share at the mount point you specify.
The mount point can be inside /Volumes or it can be anywhere you tell it. I just whipped up a launchd item that connects to a share and mounts it at ~/Desktop/MYSHIT.
So if I'm in Terminal, I cd to MYSHIT and there's all my stuff on the share. Interestingly enough Finder won't display the directory MYSHIT. Instead it replaces that name with the sharename on the server. I assume that you do a lot of work in Terminal rather than Finder, so doing it this way gives you more control and more consistency.