Slow Folder Browsing When Using SAMBA

asked 2019-02-14 09:47:40 -0500

ARS gravatar image

updated 2019-02-14 09:50:54 -0500

For some reason browsing folders in a mapped shared drive on Windows is fast but when I use SAMBA it is unbearably slow.

I have the Fedora Release 29 and I am accessing the share on a remote Windows PC.

Some things I noticed are:

  • The more files the folder has the longer it takes to load.

  • The browsing was slow when using a VPN on Windows but after I got a new firewall and removed the VPN the browsing is crazy fast again on Windows but not on Linux. Linux folder browsing is too slow still. However, the folder browsing on Windows with the VPN was never as slow as browsing on Linux is right now.

  • If I use a different file manager although not ideal the browsing is a bit faster.

This is my fstab command in the last line of fstab:

//my_ip/my_share /media/my_local_share cifs uid=my_uid,gid=my_guid,credentials=/home/my_username/.smbcredentials,x-systemd.automount,x-systemd.device-timeout=10,x-systemd.idle-timeout=60,iocharset=utf8,sec=ntlm,domain=my_domain,vers=1.0 0 0

So maybe the problem is the version I am using? If I change the version to 3.0 or 2.1 I get the following error message:

mount error(22): Invalid argument

Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

edit retag flag offensive close merge delete