I was hoping someone would be able to give me some assistance with using rclone (with google drive) and samba together, so that I can share the mount with computers on my network and thus they don’t need to have a mounted drive themselves.
Sadly I am getting poor/inconsistence results, on the windows computers I frequently get not responding explorer windows, transfer that just randomly stop (I use teracopy).
I’ve tried various configuration options, and tried using a cache and still the same issues.
I’m not overly concerned about speed more about just getting a reliable experience.
I am using the following options at present, I have 3 mount points just so I could try things out to see what worked well and what didn’t, two of them are cache remotes and one is just a standard remote no cache. I’m not using any encryption.
As you can probably see I tested a few different flags, and also the --vfs-cache-mode to see if this improved things at all.
rclone mount --allow-non-empty --allow-other --umask 000 --bwlimit 8.5M --cache-db-purge --vfs-cache-mode full --transfers 4 --checkers 1 --contimeout 60s --timeout 300s --retries 50 --low-level-retries 20 --drive-chunk-size=32M --buffer-size=32M --drive-upload-cutoff=64M --verbose --progress --stats 5s gdcache1: /mnt/rclone/gdcache1
rclone mount --allow-non-empty --allow-other --umask 000 --bwlimit 8.5M --cache-db-purge --vfs-cache-mode full --transfers 4 --checkers 1 --contimeout 60s --timeout 300s --retries 50 --low-level-retries 20 --drive-chunk-size=32M --buffer-size=32M --drive-upload-cutoff=64M --verbose --progress --stats 5s gdcache2: /mnt/rclone/gdcache2
rclone mount --allow-non-empty --allow-other --umask 000 --bwlimit 8.5M --transfers 4 --checkers 1 --contimeout 60s --timeout 300s --retries 50 --low-level-retries 20 --drive-chunk-size=32M --buffer-size=32M --drive-upload-cutoff=64M --verbose --progress --stats 5s gdrive: /mnt/rclone/gdrive
I was curious so I have tried using plain old windows explorer for the transfer, but same problems occur, also the rclone mount stops working via samba, with explorer saying it’s not accessible and asking me to check if I am still connected to the network.
This is the contents of .rclone.conf file.
[gdrive]
type = drive
client_id =
client_secret =
token = {"access_token":"*** REMOVED ***","token_type":"Bearer","refresh_token":"*** REMOVED ***","expiry":"2019-01-08T13:58:43.391217448Z"}
[gdcache1]
type = cache
remote = gdrive:/Path1
chunk_size = 32M
info_age = 1d
chunk_total_size = 10G
db_purge = true
read_retries = 50
workers = 4
[gdcache2]
type = cache
remote = gdrive:/Path2
chunk_size = 32M
info_age = 1d
chunk_total_size = 10G
db_purge = true
read_retries = 50
workers = 4
I’ve added my samba configuration file below also, in case it was useful in some way.
# Global parameters
[global]
interfaces = 127.0.0.0/8 enp30s0
server string = %h server (Samba, Debian)
log file = /var/log/samba/%m.log
max log size = 50
syslog = 0
panic action = /usr/share/samba/panic-action %d
usershare allow guests = Yes
client min protocol = SMB2
max xmit = 65535
min receivefile size = 16384
server min protocol = SMB2
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passdb backend = smbpasswd
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
passwd program = /usr/bin/passwd %u
security = USER
server role = standalone server
unix password sync = Yes
deadtime = 15
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536 SO_KEEPALIVE
dns proxy = No
idmap config * : backend = tdb
hosts allow = 192.168.0. 192.168.1. 192.168.2. 127.0.0.1
aio read size = 16384
aio write size = 16384
use sendfile = Yes
[homes]
comment = Home Directories
browseable = No
create mask = 0775
directory mask = 0775
read only = No
[mnt]
comment = "/mnt"
path = /mnt
hide unreadable = Yes
create mask = 0644
read only = No