Name/Path of mounted server changed and has now a "-1" extension.
I have a VPN to my company (and also apple private relay) and regularly mount a server called "data" via "Connect to Server" and a smb protocol (smb://).
Recently, something went wrong with the connection to the server, which meant that I could not unmount the server. Also I could mount another instance of the server, both icons appearing on the desktop looking identical. So I rebooted and everything seems back to normal.
However, I now realize that the mounted server is named the usual way in the Finder (= "data"), however the name in `/Volumes` changed to `/Volumes/data-1/".
This is a problem, because I have quite a number of scripts, connecting to the server, for which I would not like to change every single path.
Is there a way to get the mounting back to normal? I suspect I have somewhere a corpse of that first server mount, which is blocking the original name.
My "/Volumes" looks like this:
Data
Macintosh HD
data-1
Your help is appreciated. Thank you!
MacBook Pro 14″, macOS 12.1