What's new

SMB 2 broken on Mavericks (MAX OS 10.9)

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

guipel

Occasional Visitor
I have a share on ASUS RT-N66U.

Before updating to Mavericks everything was fine with smb shares.

After the update I realized a very big difference regarding transfer speeds, mainly when using unrar to unpack local files -> shares on asus router.

I am almost sure that the problem is OSX forcing the connection using SMB1 fallback:

Code:
SERVER_NAME                   192.168.1.1
                              USER_ID                       501
                              [B]SMB_NEGOTIATE                 AUTO_NEGOTIATE[/B]
                              [B]SMB_VERSION                   SMB_1[/B]
                              SMB_SHARE_TYPE                UNKNOWN
                              UNIX_SUPPORT                  TRUE
                              LARGE_FILE_SUPPORTED          TRUE
When I try to force the connection using SMB_2:

Code:
sudo vi ~/Library/Preferences/nsmb.conf

[default]
smb_neg=smb2_only
I got the error:
There was a problem connecting to the server “192.168.1.1”. Check the server name or IP address, and then try again. If you continue to have problems, contact your system administrator.

There are some vendors, like Sinology, deploying fixes to allow mac users to be able to connect using SMB2 again.

Any guesses to work around this on N66U in order to mount shares using SMB_2 protocol?

Tks
 
Last edited:
Any guesses to work around this on N66U in order to mount shares using SMB_2 protocol?

Asuswrt does not support SMB2.
 
I didn't know that.
So, my bad, I was pretty sure that was the problem.

The main difference after updating to mavericks is related to transfer speeds, If there is no change in protocol, I have no idea what is happening.

Right now I am doing a lot of tests here, I would to share with the experts here.

1) Unpacking local files to Router directly on command line with rarlabs tool:

$ ../rar/unrar x homeland.s03e11.proper.hdtv.x264-killers.rar /Volumes/NTFS_1TB/done/
Extracting /Volumes/NTFS_1TB/done/Homeland.S03E11.PROPER.HDTV.x264-KILLERS.mp4

Getting 760kb/s transfer speed

2) Unpacking local files to router directly on command line with The Unarchiver tool:

../unar1.8.1/unar homeland.s03e11.proper.hdtv.x264-killers.rar -o /Volumes/NTFS_1TB/done/
Homeland.S03E11.PROPER.HDTV.x264-KILLERS.mp4 (388593643 B)...

Getting 760kb/s transfer speed

3) Rsyncing on command line the rar files to same directory:

rsync --progress homeland.s03e11.proper.hdtv.x264-killers.r* /Volumes/NTFS_1TB/done/
homeland.s03e11.proper.hdtv.x264-killers.r00
20000000 100% 4.16MB/s 0:00:04 (xfer#1, to-check=19/20)
homeland.s03e11.proper.hdtv.x264-killers.r01
20000000 100% 3.90MB/s 0:00:04 (xfer#2, to-check=18/20)
homeland.s03e11.proper.hdtv.x264-killers.r02
14450688 72% 3.33MB/s 0:00:01

Getting a very fast transfer, same when I was on montain lion.

4) Copying files on command line to same directory:

cp homeland.s03e11.proper.hdtv.x264-killers.r* /Volumes/NTFS_1TB/done/

Getting the same speed I got on Rsync

Is there any sense on that? Before Mavericks update my transfer speed when unpacking was the same when copying.

I tried to change some parameters on smbd.conf, but every time I restart the router or the service this conf file is overwriten with original one.

Is there any way to tweak the smbd.conf?

Best
 
Could be a buffering issues, where the rar tool isn't doing an efficient job at writing unpacked blocks.

One thing to try would be to enable NTFS Sparse support, under USB -> Servers -> Misc settings (the last page). It will help performance when creating a large file on a shared disk.
 
Spent some weeks trying to find a solution and nothing... :(

Merlin, is there a way to put smb2 to work in asuswrt?
 
Spent some weeks trying to find a solution and nothing... :(

Merlin, is there a way to put smb2 to work in asuswrt?

That would require upgrading Samba to 3.6, which wouldn't fit in the flash.
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top