Ok, one of my problems from BS 11.3 onwards, has been that I can't simply mount shared volumes at startup.
I can mount the volumes as normal, then drag them into Login Items in my Users and Groups. However, when I do that, it mounts the volumes, and opens them, taking up my desktop real estate. I have to manually close them before I continue.
Under Mojave, Catalina and BS up to and including 11.2.3, I could --
- Mount one or more volumes
- Make aliases of those volumes
- Drag the aliases into my Login Items
- Reboot
- The volumes would be mounted, the icons on my desktop, but the windows wouldn't be opened.
That's what I have been wanting. It hasn't been working since 11.3. The volumes simply don't mount if I have put the aliases to the volumes in my Login Items.
I have now found a solution.
- Create a folder in my User --
mkdir ~/Volumes
- Mount the remote volume in that folder with
mount -t afp afp://username:password@server/VolName ~/Volumes/VolName
I have been able to script that
Code:
#!/bin/zsh
mount -t afp afp://username:password@server/VolName1 ~/Volumes/VolName1
mount -t afp afp://username:password@server/VolName2 ~/Volumes/VolName2
and save it in my 'bin' folder as
mountafp.sh
and I then put a line in my .zprofile file
~/bin/mountafp.sh
Reboot, and my volumes are mounted, but not opened. Happy, happy, joy, joy...
BTW, my server is a RPi 4, and with this I can read and write files as fast as my 1Gbit network can handle.
If anybody wants to know how to make a RPi into an AppleShare server, let me know and I can start a thread somewhere.