Image for post
Image for post

Fixing slow macOS finder connection to Linux Samba server

Victor Augusteo
Mar 5, 2017 · 1 min read

As a bonus, this will also enable searching on Samba too.

I have a external HDD plugged into a Raspi which acts as a seed box of some kind. The files are served with Samba. The problem was:

  1. Listing large amount of file in a directory takes ages.
  2. Search doesn’t work at all, it just got stuck at “Searching”.
  3. Transfer speed was very slow.

After much searching, the fix is quite simple actually.

First, SSH into the server with $ ssh serverIp

Then edit the Samba config by typing $ vim /etc/samba/smb.conf

Once it is open add these lines to your particularly slow Samba shares:

vfs objects = fruit
fruit:aapl = yes
fruit:encoding = native
fruit:locking = none
fruit:metadata = stream
fruit:resource = file

Lastly restart the server with $sudo service smbd restart

Now the listing large directory should be pretty fast, search should work as normal and transfer speed should be around 10x faster.

VFS Fruit

Forum post by TimFitz

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store