I just updated to OSX 10.12 / Sierra. Usually when I reboot my computer, I run the following in a script to mount my network drives:
mount -t afp afp://user:[email protected]/SKYDEDAGE /Volumes/SKYDEDAGE2015
This has always worked. However after updating to OSX 10.12 / Sierra, this command no longer works. In the script I run, Prior to using the mount command, I make a directory/mountpoint in 'Volumes'. The command still doesn't work, even though the directory/mountpoint exists.
I get this error code:
mount_afp: AFPMountURL returned error 1, errno is 1
Any ideas why this aren't working anymore?
Just in case anyone else stumbles over this question and needs a solution, in OS X 10.12, you can use "open":
open smb://<user>:<password>@server/<Volume>
The extra step with creating the folder in /Volumes can be omitted
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With