Apple CLI command to mount an SMB share that isn't abysmally slow
from ragingHungryPanda@piefed.keyboardvagabond.com to selfhosted@lemmy.world on 18 Apr 11:33
https://piefed.keyboardvagabond.com/c/selfhosted/p/316739/apple-cli-command-to-mount-an-smb-share-that-isn-t-abysmally-slow

I’ve finally got tired of how bad the latency and transfer speeds are when mounting my TrueNas SMB shares on my macbook. I looked online for some solutions, but didn’t really have much success with them. I managed to get to this command that seems to be a lot better:
mount_smbfs -o soft,nobrowse "//<username>@<domain or ip>/apps" "$HOME/mnt/apps"
where /mnt/apps is a directory that I created for myself. In this case I’m mounting a share called “apps”. For now it actually seems to be pretty responsive and loads directories and files at an acceptable speed.

#apple #applesilicon #fileshare #mac #selfhosted #selfhosting #smb #truenas

threaded - newest

makyo@lemmy.world on 18 Apr 12:16 next collapse

I’m going to try this, SMB support on Mac has been a thorn in my side for years

MagnificentSteiner@lemmy.zip on 18 Apr 12:45 next collapse

You can transfer files using rsync over SSH without needing to mount the drive which should give you better speeds.

ragingHungryPanda@piefed.keyboardvagabond.com on 18 Apr 12:52 next collapse

oh that’s good to know! I’ll definitely try using rsync next time I need to move something over 🤞

MagnificentSteiner@lemmy.zip on 18 Apr 13:08 collapse

FYI you just replace the destination with username@IP:filelocation like this that I use to backup my laptop to my server

rsync -av --delete /home/me me@192.168.1.2:/srv/dev-disk-by-uuid-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Backups/PCs/Laptop/home

ragingHungryPanda@piefed.keyboardvagabond.com on 18 Apr 13:09 collapse

saving this comment. thank you!

Damage@feddit.it on 18 Apr 13:14 collapse

Why would rsync be faster? SSH traffic is encrypted, it’s usually slower than normal file transfers

MagnificentSteiner@lemmy.zip on 18 Apr 13:38 next collapse

I dunno. I suspect it’s the GUI file manager but don’t know for certain.

possiblylinux127@lemmy.zip on 18 Apr 15:55 collapse

SMB is also encrypted

You don’t want it any other way

Decronym@lemmy.decronym.xyz on 18 Apr 13:20 next collapse

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

Fewer Letters More Letters
IP Internet Protocol
NFS Network File System, a Unix-based file-sharing protocol known for performance and efficiency
SMB Server Message Block protocol for file and printer sharing; Windows-native
SSH Secure Shell for remote terminal access

[Thread #244 for this comm, first seen 18th Apr 2026, 13:20] [FAQ] [Full list] [Contact] [Source code]

nomecks@lemmy.wtf on 18 Apr 14:04 next collapse

Can you export the share as SMB and NFS at the same time? It’ll probably be faster mounted with NFS

ragingHungryPanda@piefed.keyboardvagabond.com on 18 Apr 21:01 collapse

I don’t know if I did something wrong, but NFS only let me see one at the mounted root level. I couldn’t navigate the directory tree

ripcord@lemmy.world on 18 Apr 23:49 next collapse

You’ll need to export each volume individually I would expect, are you saying you could only see one volume?

cantankerous_cashew@lemmy.world on 19 Apr 00:16 collapse

You might have to patch your nfs config; the default one supplied by Apple is using an older protocol. Run this and reboot:

printf "\nnfs.client.mount.options = vers=4\n" | sudo tee -a "/etc/nfs.conf" &> /dev/null
paraphrand@lemmy.world on 18 Apr 15:30 collapse

Why is this better than what you do with the Finder GUI? I’d just like to understand the mechanism.

ragingHungryPanda@piefed.keyboardvagabond.com on 18 Apr 21:00 collapse

there seems to be issues with the apple silicon smb implementation that’s absolutely abysmal and painful in performance. But once I mounted the shares this way, it became tolerable even in finder

ripcord@lemmy.world on 18 Apr 23:47 collapse

Ah, if it’s limited to Apple silicon maybe that’s why. Ive never noticed any particular speed problems on any of my Macs (2004 or so through 2019)

ripcord@lemmy.world on 18 Apr 23:50 collapse

I regularly get 100-200MByte/sec throughput to the Linux, Mac, and Synology SMB servers in my home