When mounting a volume with the Finder, it’ll be no permanent mount. Upon restart or even after logout the mount points are lost.
We’ll use automount to get it done in seconds.
I’ll assume your server is named myserver, and has two shares MyShare1 and MyShare2, which are located under /exported/path/ on the remote server.
It’s easy as adding a descriptor to /etc/auto_master:
Save and create a file named /etc/auto_myserver.
Add the following lines to this file:
MyShare1 myserver.local:/exported/path/MyShare1 MyShare2 myserver.local:/exported/path/MyShare2
To check if mounting works, run:
sudo automount -vc
The shares should have been mounted now under /myserver/MyShare1 and /myserver/MyShare2, and get mounted each time, you restart your Mac. Et voilà!