Rclone mount behavior differs on picture and pdf

What is the problem you are having with rclone?

I'm experimenting with vfs with mount to see if there any speedup on file read and observed the following in the cache dir:

  • if I'm accessing a pdf file, then only that pdf file is cached
  • if I'm trying to access a photo, then all the photos & videos in that folder will be cached and I can't do anything before all of them are downloaded

Q: How may I change the service configuration to make picture/media file caching in the same way that pdf is?

Some notes of my config:

  • I'm using --vfs-cache-mode full
  • I'm specifically setting --vfs-read-chunk-size 1M to speed up small file readings, as I noticed when it set to larger value, I wait much longer waiting on something (tested on photo files) never been cached before (verified by looking at the cache folder changes)
  • I have 4 different drives mounted, 2 OneDrive, 1 Mega and 1 Box. OneDrives are my major used ones.

Run the command 'rclone version' and share the full output of the command.

rclone v1.59.1
- os/version: debian 10.10 (64 bit)
- os/kernel: 5.18.4-amd64-desktop-hwe (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.18.5
- go/linking: static
- go/tags: none

Which cloud storage system are you using? (eg Google Drive)

OneDrive is the one I'm observing this behavior, others not tested.

The command you were trying to run (eg rclone copy /tmp remote:tmp)

Just click the photo in the mounted drive, no command running.

The rclone config contents with secrets removed.

Description=RClone mount of users remote %i using filesystem permissions



#Check that rclone is installed
ExecStartPre=/usr/bin/test -x /usr/bin/rclone
#Check the mount directory
ExecStartPre=/usr/bin/test -d ${MOUNT_DIR}
ExecStartPre=/usr/bin/test -w ${MOUNT_DIR}

#Mount rclone fs
ExecStart=/usr/bin/rclone mount \
		--dir-cache-time 720h \
		--poll-interval 30s \
		--buffer-size 8M \
		--vfs-cache-mode full \
		--vfs-cache-max-age 1h \
		--vfs-read-chunk-size 1M \
		--vfs-read-chunk-size-limit 1G \
		--vfs-read-ahead 32M \
		--use-mmap \
		--vfs-fast-fingerprint \
		# --no-modtime \
		# --write-back-cache \
		# --allow-other \
		# --no-traverse \

#Execute Post Mount Script if specified
ExecStartPost=/bin/sh -c ${POST_MOUNT_SCRIPT}

# Perform lazy unmount
ExecStop=/usr/bin/fusermount -zu ${MOUNT_DIR}

# Restart the service whenever rclone exists with non-zero exit code

# Autostart after reboot

A log from the command with the -vv flag

Paste  log here

First step would be to include a log file showing the issue.

Which file manager are you using?

You need to tell it not to show thumbnails for the rclone mount and that will speed it up enormously.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.