Connecting a NAS correctly...

Hey guys,


So i want some advice on connecting a NAS. This is a two part questions, starting with protocol.


The internet is full of conflicting opinions, whether SMB or AFP is better. AFP sounds good to me as it allows for mac features like spotlight. But apparently it's not being developed anymore which doesn't sound good. What is the general opinion among mac users on correct protocol?


Secondly, what is the correct / typical way to connect the NAS to a mac (not including the NAS software)? As it stands, i go to finder > go > connect to server - then type in afp://ipaddress and then my credentials. I then have access to it from my sidebar and i also add a few folders to my favourites.


Maybe this is the correct way? But I feel like this isn't the most correct / efficient method for a few reasons..


  1. It feels clunky... i go to connect to server and the field is pre populated with some long *** ugly address (maybe i typed it once before i dont know) but either way, if i try to connect to that it fails. SO i have to delete it and type in another address...
  2. How is the average person meant to know the address? Im slightly more technical than your typical punter, so I can figure out where to find the IP address and that i should type afp:// before it. But surely it should just show me a list of network devices connected to my network and i just click the one i want to add...
  3. Its not be the most reliable. Sometimes i find that the favourites folders no longer connect... i have to access the NAS drive directly, underneath "locations" on the finder first. Almost as if it reconnects itself. And sometimes i have found that the NAS isnt even under locations so i have to go through the above steps again.
  4. All the online tutorials say i need to drag the mounted drive into "login items" under settings > users for it to connect automatically when i boot up. Ive never done this, but yet its always there when i boot up - which i know sounds like a good thing, but doesnt fill me with confidence that whatever method ive used is correct.


So this makes me think that surely there is another method i SHOULD be using to work with NAS?


Edit: I also have a third point to add kinda related to the above but also i d like some opinions on it. My time machine integration with the NAS is extremely bad. It'll randomly corrupt and apple will start popping up messages saying it needs to rebuild the whole backup and delete the old one. This happens once every couple weeks. I have disabled it now as its more annoying than useful. So that makes me think ive done something wrong... but also id like to ask that maybe this is just usual for wifi connected NAS drives?

iMac Line (2012 and Later)

Posted on Aug 20, 2019 3:13 AM

Reply

Similar questions

6 replies

Aug 20, 2019 6:51 AM in response to theviewer1985

AFP is deprecated. Eventually, Apple won't support reading or writing via that protocol, and you'll have to use SMB. For now, we're still using AFP with our NAS. Mostly because our main client likes using characters in their file names the Windows SMB format doesn't allow.


  1. What feels clunky? It's a networked device, so it naturally has a network IP address.
  2. Initially, you don't. Your router assigns it one automatically, just as it does with all of your other networked connections. With our Synology NAS, it came with a small utility to search the network for the NAS to let you know what IP address had been assigned to it.
  3. Favorites isn't the place to connect to a server. That's for after you're already connected. From the desktop (Finder), press Command+K to call up the network connection dialogue. If you have no entries (likely not), press the Browse button. Select the NAS and enter the user name and password you gave yourself in the NAS' settings.
  4. Adding the NAS to the login items is fine if you always want it to connect when you turn your Mac on. The NAS itself of course has to already by on and ready before you turn the Mac on. Since we don't use ours every day, we connect manually with Command+K. Otherwise, we'd get an error most times we turn our Macs on that the server couldn't be found.


There are no other methods. As mentioned under number 1, it's a networked device. You have to connect to it via an IP address, just like any other networked device. The main difference is, the router knows it's there when you turn the NAS on, but it's not (normally) going to mount itself for you.


I personally wouldn't try using a NAS for Time Machine. Most of them run on a version of Linux, though that itself shouldn't really make any difference. But there are a few issues trying to do this:


  1. A server doesn't have separate partitions. When you create a new sharepoint, it's really just a folder the server treats as if it's an independent drive or partition, when in reality, all of the sharepoints are actually all using the entire available space of the drive at the same time.
  2. That leads to this. A NAS typically won't return the correct drive format in use to the Mac. Since Linux is controlling it, the drive is usually neither HFS, HFS+, APFS, FAT32 or NTFS. The NAS has its own format and tells the connecting computer something else (via AFP or SMB). Windows computers and Macs think they're using a Windows drive (SMB) or a Mac drive (AFP), when they're really using neither. Ours reports the drive as HFS. Which is impossible since we have one 3 TB drive in the NAS now, and HFS can address drives no larger than 4 GB. It would also limit file sizes to a maximum of 2 GB. To at least make some sense, it should report the drive as HFS+, but it doesn't.
  3. The point of all of that is Time Machine is probably confused. TM requires a drive to be case sensitive. But the NAS can't do that without changing the entire drive to case sensitive. Remember, a sharepoint is just a folder, not a separate area of the drive. It can't carve out just a section of the NAS as case sensitive. If you were able to control the NAS' drive format and chose APFS, then an SMB connection would be required to access it. AFP wouldn't work at all.

Aug 20, 2019 10:54 AM in response to theviewer1985

You should set up your router to reserve a single IP address for the NAS, then you never have to do any research. You'll have to do some research to figure out how to do that, but it should be a feature of every router on the market.


You can add mounted shares to the Sidebar, but if you click on it while the NAS is not available, there is a delay/freeze for a few seconds while it tries to sort it out.


You can do the same in your Login Items, but that will open a Finder window of the Share when you log in.


You can also create a folder full of Aliases that point the the desired Shares on the NAS. You could then put that folder in your Dock and select from the shares listed in the Grid/List/Fan when you click on the folder in the Dock.

Aug 20, 2019 7:36 AM in response to theviewer1985

Coming from a long time windows user, with them i'd just browse to network and it'll list every device on my network, I right click the one i want and say "map".

That's essentially what you're doing when you press Command+K. You're browsing the network for servers and choosing/mapping one to connect to. The last server you connected to will be listed in the pulldown menu, as seen here:



All you have to do to connect is Command+K to bring up this dialogue box and hit Enter, or click the Connect button.


For multiple servers, you can choose each one you've accessed from the drop down menu and click the + button to add them to the Favorites field. Then it's Command+K, and double click as many server names in that list as you want to connect.


I've never taken the time to learn how to add them to the login since I have no need to. But I know it can be done. I've freelanced in various large printing and advertising firms where their Macs automatically attach to their servers when the Mac is turned on.

Aug 20, 2019 1:12 PM in response to theviewer1985

If they in fact do show up on the Desktop, then create a new Folder maybe named Shares on/in the Desktop, drag all those Shares shown on the Desktop to that Folder, drag that Folder to the right side of the Dock between Applications & Trash, this should give you a popup menu to select from.:-)


Mount that Share once, then once the Globe Icon shows up on the Desktop, drag that Globe Icon to the right side of the Dock between Applications & Trash. You now have a Dynamic Mount, a quick click on the Icon in the Dock will connect you.


On the multiple Shortcuts...


Mount them all, when show up on the Desktop, then create a new Folder maybe named Shares on/in the Desktop, drag all those Shares shown on the Desktop to that Folder, (you can even rename them once there, if you wish), drag that Folder to the right side of the Dock between Applications & Trash, this should give you a popup menu to select from.:-)


To automount them, drag those Aliases to the Accounts Pref Pane's Login Items Window.


Aug 21, 2019 7:01 PM in response to theviewer1985

Depending on your network & router configurations, you may be able to use a DNS name to access your NAS, but you should definitely manually assign/reserve an IP address for the NAS as suggested by another user.


Without any special router configuration you can access network devices on the local subnet using the following address format which is fine for small simple home networks:

smb://<name-of-system>.local

Aug 20, 2019 7:14 AM in response to Kurt Lang

Thanks for the detailed response.


I think what feels clunky is having to research off my own back what the ip is and that i have to put afp:// before it with no clear sign that I am meant to - i had to research online to find the AFP thing out. It makes me feel like i am doing something wrong - more than Macos is doing something wrong. Coming from a long time windows user, with them i'd just browse to network and it'll list every device on my network, I right click the one i want and say "map". With Mac, I am browsing to my routers app on my phone, looking for the NAS, making a note of the ip and only then, mapping it. Just doesn't feel right.


As for putting it on my login items, that was the point i was making. Its NOT on my login items but yet its constantly mapped when i turn on the Mac. This is how i want it to behave, but its just confusing me how i managed to do that when apparently you HAVE to put it on login items for it to work like that.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Connecting a NAS correctly...

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.