NAS mounted on Mac with protocol SMB or AFP

Hi, I searched on the web many times and I found many persons with the same problems but no solution. I ask here on this forum the most competent people not of the earth but of the whole galaxy.
I have a Mac M3 under Sonoma 14.7 (23H124) and a Synology DS216J. My Mac is on the network using an ethernet cable directly on the box and my Synology is on the network on a CPL Lenovo Magic 2 (the quickest they say).
It take more than 30 minutes to copy a 500 Mo file when connecting with AFP. It crash (error -51) when I connect it using SMB. It was as long when the Synology was connected directly on the box with an ethernet cable.
I have a PC-Windows Lenovo (connected to the network with Wifi) which is mounted on my Mac using SMB, it take few minutes to copy the same file.

If my Synology would have a 56k modem, I thought I could use it and it would be quickest.


Maybe setting two option in the advaned tab may help you:

don’t you have any antivirus program on your mac ?
if you send a file from the mac to the syno but using the navigator and the file station app of the syno how much time does it take ?

take care that you are not connected to the syno with AFP protocol. Since macOS 12, it’s better use SMB. In that case go to menu ‘Go’ , then select ‘Connect To Server…’ and type ‘smb://xxx.xxx.xxx.xxx’ and connect.

Im on my PC-Windows actually, I changed the SMB settings as Thomas Roemerts screencapture. My PC copy on my NAS (mounted with SMB) a 700 Mo file in 1 minutes.
I have ClamXav on my Mac but it should slow down when copy on the PC too and I’ve no problem to copy file from Mac to PC (and vice-versa).
I tried to mount my NAS in SMB but I can’t copy file, I obtain an error -51.
I will try again on my Mac with the new settings.
Thank you for yours answers.

I ran into this not to long ago and found that the SMB settings on macOS always require encryption and I’d bet that’s the root of your problem. When I get back from lunch, I’ll dig out the instructions on how to disable that.

It made a world of difference for me.

Greg, I found this page Adjust SMB browsing behavior in macOS which tell to enter:

defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE

but as I don’t really understand what it means I didn’t enter this code line in the Terminal. Is it what you’re talking about?

I’m now trying to copy the same file I copied from my PC in 1 minutes, I began 4 minutes ago and there is 0 octets copied at this time, still preparing the copy. I cancel it.

I open my NAS in Safari the open a window with File Station and I drag&drop my test file (700 Mo) to copy it. Only 2% after 3 or 5 minutes, I cancelled it.

Note: I suspended ClamXav before my test.

It’s not. There’s a modification that you need to make to SMB.conf

I found this page which is about QNAP: How can I improve SMB transfer speeds between macOS and QTS?
but if you find something Greg, I prefer to wait for your answer.

Edit: It’s late here and time to eat. I will try tomorrow.
Note: I just had to restart my Mac after another attempt to copy the 700 Mb file because the Finder was showing the multicolor ball during more than 4 minutes.

ok, with your SMB volume mounted, run the following command:

smbutil statshares -a

you’ll get the status of the connection, including a statement that looks like this:

SMB_CURR_ENCRYPT_ALGORITHM

on my machine that says “OFF”

To make sure your machine doesn’t use encryption, you can edit the /etc/nsmb.conf file:

sudo nano /etc/nsmb.conf

and add the following lines to the end:

 [default]
  signing_required=no

You can replace [default] with [your share name]

SERVER_NAME                   DS216jFamRob
                              USER_ID                       501
                              SMB_NEGOTIATE                 SMBV_NEG_SMB1_ENABLED
                              SMB_NEGOTIATE                 SMBV_NEG_SMB2_ENABLED
                              SMB_NEGOTIATE                 SMBV_NEG_SMB3_ENABLED
                              SMB_VERSION                   SMB_3.1.1
                              SMB_ENCRYPT_ALGORITHMS        AES_128_CCM_ENABLED
                              SMB_ENCRYPT_ALGORITHMS        AES_128_GCM_ENABLED
                              SMB_ENCRYPT_ALGORITHMS        AES_256_CCM_ENABLED
                              SMB_ENCRYPT_ALGORITHMS        AES_256_GCM_ENABLED
                              SMB_CURR_ENCRYPT_ALGORITHM    OFF
                              SMB_SIGN_ALGORITHMS           AES_128_CMAC_ENABLED
                              SMB_SIGN_ALGORITHMS           AES_128_GMAC_ENABLED
                              SMB_CURR_SIGN_ALGORITHM       AES_128_GMAC
                              SMB_SHARE_TYPE                DISK
                              SIGNING_SUPPORTED             TRUE
                              EXTENDED_SECURITY_SUPPORTED   TRUE
                              UNIX_SUPPORT                  TRUE
                              LARGE_FILE_SUPPORTED          TRUE
                              OS_X_SERVER                   TRUE
                              FILE_IDS_SUPPORTED            TRUE
                              DFS_SUPPORTED                 TRUE
                              FILE_LEASING_SUPPORTED        TRUE
                              MULTI_CREDIT_SUPPORTED        TRUE
                              DFS_SHARE                     TRUE
                              SESSION_RECONNECT_TIME        0:0
                              SESSION_RECONNECT_COUNT       0

Then it seems to be off too (I didn’t modified anything, I just entered “smbutil statshares -a”)

Edit: I entered in the Terminal “sudo nano /etc/nsmb.conf” and the result is:


(I didn’t enter anything, that’s what I see).

Interesting. I had to make that change myself.

That line prevents Mac OS to write .DS_Store files on network shares, FYI.

Thank you Arnaud. Greg I transfered my account user from my old MacBookPro-intel to my new MacBookPro-arm then maybe those settings are from my old MacBook? But I’m nearly sure I didn’t enter any Terminal command for this problem.
I just try again to copy my file using File Station (QuickConnect in Safari) but it is as long.
I think I will give up :frowning: . Thanks again for your help.

Did you try mounting the target folder? Press Cmd k and enter “smb://” to open a folder selection. Select the target folder and it will be mounted on your desktop.

Do you use a wired or a wireless network? If wireless, what is the net transfer rate of the connection?

Yes, my default use is to mount the NAS.
I corrected the problem, now I copy a 1,35 Go file in more or less 2 minutes.
I used fixed IP for a while. My old Box (previous provider) affected IP in the plug order (2, then 3, then 4, etc.) and I set them as fixe. My new Box (new provider) did affect IP in random order (as far as I see). Yesterday, I reordered them all 192.168.1. x.
x=1 is the box (router), 2 to 5 are my 4 CPL Devolo (I think it’s logic to set them first), then my Printer, EvyzCam, TV, Mac, NAS, etc. .
And now I mount my NAS using SMB and it is ok. Was there a ghost IP? Is it possible the NAS or my Mac had 2 IPs affected and that was the problem? They did not have the same IP, I checked it. Or maybe one of the CPL did something wrong with the IP? My CPL are configured to not be router, as for the one which is Wifi, it does not affect the IP and does not have a separate Network name, it use the same as the Box, then it is as a repetitor.
I don’t know, I just can say that re-affected all my IP to each equipment, then restart my NAS, my Box and each CPL, resolved the problem. If someone has the same problem, he/she may try that.

Note: Sorry, I may not use the good technical word as I don’t know them in French neither.