Victor Augusteo
Mar 5, 2017 · 1 min read

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

Problem

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.

Solution

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

Result

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

References

VFS Fruit

Forum post by TimFitz

Victor Augusteo

Written by

Software Engineer in Silicon Valley | www.augusteo.com

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