Quantcast
Channel: Active questions tagged mount+fstab - Ask Ubuntu
Viewing all articles
Browse latest Browse all 699

Samba Share runs slow on Linux but not windows

$
0
0

I have a Samba Share version 4.2.14-Debian setup on a cloud server running Ubuntu 18.04. When connecting via network share on any Windows machine the read write times are very fast but when accessing from an Ubuntu machine using fstab mount it takes extremely long. We had 10 min instance just to load the folder once, yet a windows laptop on the same network, so speeds not an issue, opened immediately. We are using Linux Mint 19.1 Tessa

What can I do. I tried various config edits I found online but no luck

Below is my fstab settings

//111.111.111.11/monthlyfolders /media/monthly cifs credentials=/home/thor/.smbcredentials, users,rw,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777 0 0,vers=3.0

Below is my smb config settings

[global]
    security = user
    log file = /var/log/samba/samba.log
    netbios name = FILESERVER
    max log size = 1000
    admin users = root
    dns proxy = no
    server string = TurnKey FileServer
    guest account = nobody
    unix password sync = yes
    delete group script = /usr/sbin/groupdel '%g'
    passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n
        *password\supdated\ssuccessfully* .
        add group script = /usr/sbin/groupadd '%g'
        socket options = TCP_NODELAY SO_KEEPALIVE SO_RCVBUF=17520 SO_SNDBUF=17520 IPTOS_LOWDELAY
        read raw = No
        write raw = Yes
        min receivefile size = 16384
        use sendfile = true
        aio read size = 16384
        aio write size = 16384
        kernel oplocks = yes         
        add user script = /usr/sbin/useradd -m '%u' -g users -G users
    delete user script = /usr/sbin/userdel -r '%u'
    vfs object = recycle
    workgroup = WORKGROUP
    client max protocol = SMB3
    add user to group script = /usr/sbin/usermod -G '%g''%u'
    recycle:keeptree = yes
    pam password change = yes
    os level = 20
    recycle:exclude_dir = tmp quarantine
    panic action = /usr/share/samba/panic-action %d
    recycle:touch = yes
    obey pam restrictions = yes
    passwd program = /usr/bin/passwd %u
    #protocol = NT1
    #client max protocol = SMB3
    syslog = 0
    passdb backend = tdbsam
    restrict anonymous = 2
    recycle:versions = yes
    encrypt passwords = true
    wins support = true

Viewing all articles
Browse latest Browse all 699

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>