First let''s clarify terms - just to be sure we're both using them consistently
A "share" - in this instance - refers exclusively to your NAS and is defined as a network accessible folder on the NAS which you control the contents of and access rights to.
A "mount point" is a folder on your Mac which, once the share is mounted by the Mac, is where you see the contents of the NAS share
So if we assume you are trying to, for example, mount a share called "music" such that it is mounted at the mount point "/mnt/music" (ie "music" being a subfolder of folder "mnt", which is in the root of your OSX filesystem)
Create parent folder of mount point /mnt:
- Code: Select all
mkdir /mnt
Create mount point:
- Code: Select all
mkdir /mnt/music
or
- Code: Select all
cd /mnt
mkdir music
Mount share:
- Code: Select all
mount -t afp "afp://nas-xx-xx-xx (AFP)._afpovertcp._tcp.local/music" /mnt/music
Notes:
- the above is exactly what finder does when you mount a share via the finder GUI - but it uses the parent folder /Volumes instead of /mnt
- parent folder /mnt was only an example - you can use virtually any name, or even none - it's up to you. Your key error has been not creating the mount point correctly (
- the share name abov must be in quotes because of the space character in the name (between nas-xx-xx-xx and (AFP) ), else you get an error as previously reported