如果我使用 Nautilus 或手动使用“gvfs-mount smb://SERVER-IP/Share”使用/访问 SMB 共享,我的性能很差,在我的 100 Mbit 网络上只有大约 7 mb/s。
如果我在 Windows 上访问相同的共享,我将获得 100 Mbit(大约 11 mb/s)的sudo mount -t cifs //SERVER-IP/Share /mountpount全速,如果我使用 cifs 而不是 gvfs 进行安装,我也会获得全速,所以任何人都可以告诉我是否存在性能问题/错误在 gvfs 中或 gvfs 如何以不同方式使用 SMB 共享?
我使用多个文件测试了读取性能(来自我的网络 SMB 共享),并且总是,cifs 版本是全速的,而 GVFS 版本的速度要少一些 mb/s。
经过一番研究,我发现了一些优化 Ubuntu 安装的 SMB 设置的技巧和一些网络调整技巧,但是随着 CIFS 挂载共享获得完整的网络速度,我不相信这是那种问题。
I am following MountWindowsSharesPermanently to mount a samba share on boot
As said in wiki, I added these lines to /etc/fstab:
# auto-mounting the samba share 'Seagates' on raspberry pi
//192.168.2.2/Seagates /home/edward/samba/raspberry cifs uid=1000,gid=1000,credentials=/home/edward/.smbcredentials,iocharset=utf8,sec=ntlm 0 0
Run Code Online (Sandbox Code Playgroud)
and after that, since it is a password protected share, I added login credentials in ~/.smbcredentials and rebooted
The mount is failing with these errors, taken from journalctl | grep samba:
Nov 10 22:39:27 flippingbits systemd[1]: Mounting /home/edward/samba/raspberry...
Nov 10 22:39:33 flippingbits …Run Code Online (Sandbox Code Playgroud) 在 MacOS 10.13 High Sierra 中使用 APFS 格式化的磁盘上,无法再通过 AFP 共享文件(请参阅Apple 支持站点上的这篇文章)。因此,该指南在这里不再适用于Ubuntu的服务器上做一个时间机器备份位置。
有没有人对如何将 TimeMachine 备份目标设置为在 SMB 上可见有任何想法?或者其他一些可能的解决方案?