Adding flags to rclone.conf

What is the problem you are having with rclone?

Trying to figure out how to add a flag to remote in rclone.conf

i want to add --vfs-cache-mode full to my Onedrive remote without adding to the command line:

[onedrive]
vfs-cache-mode = full

I tried adding this line to the config file, only it did not work. rclone still complains when mounting.

vfs-cache-mode = full

<5>NOTICE: OneDrive root '': --vfs-cache-mode writes or full is recommended for this remote as it can't stream

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

rclone v1.65.0

  • os/version: debian 11.8 (64 bit)
  • os/kernel: 6.1.55-06877-gc83437f2949f (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.21.4
  • go/linking: static
  • go/tags: none

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

Onedrive

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

Paste command here

rclone mount dkod: onedrive

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

Paste config here

[dkod]
type = onedrive
vfs-cache-mode = writes
token = xxxx
drive_id = xxxx
drive_type = personal

A log from the command that you were trying to run with the -vv flag

Paste  log here

rclone -vv mount dkod: leowankerddd
<7>DEBUG : rclone: Version "v1.65.0" starting with parameters ["rclone" "-vv" "mount" "dkod:" "leowankerddd"]
<7>DEBUG : rclone: systemd logging support activated
<7>DEBUG : Creating backend with remote "dkod:"
<7>DEBUG : Using config file from "/home/dking/.config/rclone/rclone.conf"
<7>DEBUG : dkod: Loaded invalid token from config file - ignoring
<7>DEBUG : OneDrive root '': Token expired but no uploads in progress - doing nothing
<7>DEBUG : Saving config "token" in section "dkod" of the config file
<7>DEBUG : Keeping previous permissions for config file: -rw-r--r--
<7>DEBUG : dkod: Saved new token in config file
<7>DEBUG : OneDrive root '': Next delta token is: aTE09NjM4Mzc2NTg4NzE1NjA7SUQ9OTRGRDQ1RUQxMUMzNEY4QyExMDM7TFI9NjM4Mzc2NzQ5MjQ5MTc7RVA9MjA7U0k9NTY7RExFUD0wO1NHPTE7U089NjtQST0z
<5>NOTICE: OneDrive root '': --vfs-cache-mode writes or full is recommended for this remote as it can't stream
<7>DEBUG : OneDrive root '': Mounting on "leowankerddd"
<7>DEBUG : : Root:
<7>DEBUG : : >Root: node=/, err=
<7>DEBUG : /: Lookup: name=".Trash"
<7>DEBUG : /: Lookup: name="autorun.inf"
<7>DEBUG : /: >Lookup: node=, err=no such file or directory
<7>DEBUG : /: Attr:
<7>DEBUG : /: Lookup: name=".xdg-volume-info"
<7>DEBUG : /: Lookup: name="BDMV"
<7>DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
<7>DEBUG : /: >Lookup: node=, err=no such file or directory
<7>DEBUG : /: >Lookup: node=, err=no such file or directory
<7>DEBUG : /: >Lookup: node=, err=no such file or directory
<7>DEBUG : /: Lookup: name=".Trash-1000"
<7>DEBUG : /: >Lookup: node=, err=no such file or directory
<7>DEBUG : /: ReadDirAll:
<7>DEBUG : /: >ReadDirAll: item=82, err=
<7>DEBUG : /: Attr:
<7>DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
<7>DEBUG : /: ReadDirAll:
<7>DEBUG : /: >ReadDirAll: item=82, err=
<7>DEBUG : /: Attr:
<7>DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
<7>DEBUG : /: ReadDirAll:
<7>DEBUG : /: >ReadDirAll: item=82, err=
<7>DEBUG : /: Attr:
<7>DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
<7>DEBUG : /: ReadDirAll:
<7>DEBUG : /: >ReadDirAll: item=82, err=
<7>DEBUG : /: Attr:
<7>DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
<7>DEBUG : /: ReadDirAll:
<7>DEBUG : /: >ReadDirAll: item=82, err=
<7>DEBUG : /: Attr:
<7>DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
<7>DEBUG : /: ReadDirAll:
<7>DEBUG : /: >ReadDirAll: item=82, err=
<7>DEBUG : /: Attr:
<7>DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
<7>DEBUG : /: ReadDirAll:
<7>DEBUG : /: >ReadDirAll: item=82, err=
<7>DEBUG : /: Attr:
<7>DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
<7>DEBUG : /: ReadDirAll:
<7>DEBUG : /: >ReadDirAll: item=82, err=
<7>DEBUG : /: Attr:
<7>DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
<7>DEBUG : /: ReadDirAll:
<7>DEBUG : /: >ReadDirAll: item=82, err=
<7>DEBUG : /: Attr:
<7>DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
<7>DEBUG : /: ReadDirAll:
<7>DEBUG : /: >ReadDirAll: item=82, err=
<7>DEBUG : /: Attr:
<7>DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
<7>DEBUG : /: ReadDirAll:
<7>DEBUG : /: >ReadDirAll: item=82, err=
<7>DEBUG : /: Attr:
<7>DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
<7>DEBUG : /: ReadDirAll:
<7>DEBUG : /: >ReadDirAll: item=82, err=
<7>DEBUG : /: Attr:
<7>DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
<7>DEBUG : /: ReadDirAll:
<7>DEBUG : /: >ReadDirAll: item=82, err=
<7>DEBUG : /: Attr:
<7>DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
<7>DEBUG : /: ReadDirAll:
<7>DEBUG : /: >ReadDirAll: item=82, err=
<7>DEBUG : /: Attr:
<7>DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
<7>DEBUG : /: ReadDirAll:
<7>DEBUG : /: >ReadDirAll: item=82, err=
<7>DEBUG : /: Attr:
<7>DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
<7>DEBUG : /: ReadDirAll:
<7>DEBUG : /: >ReadDirAll: item=82, err=
<7>DEBUG : /: Attr:
<7>DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
<7>DEBUG : /: ReadDirAll:
<7>DEBUG : /: >ReadDirAll: item=82, err=
<7>DEBUG : /: Attr:
<7>DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
<7>DEBUG : /: ReadDirAll:
<7>DEBUG : /: >ReadDirAll: item=82, err=
<7>DEBUG : /: Attr:
<7>DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
<7>DEBUG : /: ReadDirAll:
<7>DEBUG : /: >ReadDirAll: item=82, err=
<7>DEBUG : /: Attr:
<7>DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
<7>DEBUG : /: ReadDirAll:
<7>DEBUG : /: >ReadDirAll: item=82, err=
<7>DEBUG : /: Attr:
<7>DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
<7>DEBUG : /: ReadDirAll:
<7>DEBUG : /: >ReadDirAll: item=82, err=
<7>DEBUG : /: Attr:
<7>DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
<7>DEBUG : /: ReadDirAll:
<7>DEBUG : /: >ReadDirAll: item=82, err=
<7>DEBUG : /: Attr:
<7>DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
<7>DEBUG : /: ReadDirAll:
<7>DEBUG : /: >ReadDirAll: item=82, err=
<7>DEBUG : /: Attr:
<7>DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
<7>DEBUG : /: ReadDirAll:
<7>DEBUG : /: >ReadDirAll: item=82, err=
<7>DEBUG : /: Attr:
<7>DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
<7>DEBUG : /: ReadDirAll:
<7>DEBUG : /: >ReadDirAll: item=82, err=
<7>DEBUG : /: Attr:
<7>DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
<7>DEBUG : /: ReadDirAll:
<7>DEBUG : /: >ReadDirAll: item=82, err=
<7>DEBUG : /: Lookup: name="autorun.inf"
<7>DEBUG : /: >Lookup: node=, err=no such file or directory

Flags generally can't go into the rclone.conf.

OK thanks.

I'll have to contact the developer of roundsync for Android and ask them to add it there.

Roundsync is rclone for Android. Currently when you create a new remote there is no option to include any Flags. It has the ability to import your windows or Linux rclone.conf. that was going to be my solution.

A few months ago I could have sworn I saw the option to either put flags on the command line or in the config file.

I need the flag for Microsoft OneDrive.

Thanks.

fwiw, i wanted to check that out, when i tried to load the website, this happened.
so be careful, i would not trust them.

Thank you for the concern. I agree his website is not secure. However the files for installation are not hosted necessarily on the website I don't think well perhaps they are but they're primarily hosted and localized at GitHub.

That's where I download the software from. Not his website. I work occasionally with the developer to fix bugs.

You can check it out from here:

I have it on my phone my tablet and my Chromebook.

just wanted to be sure, that you know about running rclone on android using termux.
get full command line, so can use any flags you need.
bonus: can access termux terminal over ssh, create bash scripts.

that is what i use for backups and whatnot.

check out my wiki
https://github.com/rclone/rclone/wiki/turn-your-android-phone-into-a-media-server

I am very glad you mentioned Android and Termux.

I have literally been ripping my hair out for the last 48 hours. I stayed up through the night last night trying to get rclone to work in my Android phone with about four or five different kinds of Linux & software programs.

  1. Andronix
  2. AnLinux
  3. Termux
  4. UserLand
  5. Ubu-Works

I must have ten installations of Linux on my cell phone right now!
The only purpose for doing this is to use the real rclone on my Android phone and tablet.

So far, I'm batting zero for 10. Not one installation of rclone in any of the operating systems in any of the software programs allows me to mount a remote.

I'm at the point where I was going to post something on the forum. I have run out of options to figure it out on my own at this point.

Thank you for the link to your wiki. I will check it out after I finish this post.

I'm getting hung up on FUSE. It keeps refusing to mount a remote because of some permission issues.

I've tried setting up the software as a regular user, And also as root and I can't get either one of them to have the proper permissions necessary for the software to mount the remote.

I can list the files in the remote fine and I can copy files back and forth too.

I just can't mount the remote.

Here is the error I get on every installation.

rclone mount s7: s7 2023/12/09 07:46:14 mount helper error: fusermount3: failed to open /dev/fuse: Permission denied2023/12/09 07:46:14 Fatal error: failed to mount FUSE fs: fusermount: exit status 1

mount helper error: fusermount3: failed to open /dev/fuse

Also, the whole thing is pointless if I can't allow other apps and file managers to see the remotes that are mounted.

I have a file manager on Android called "Files", not Google. It can see my Roundsync remotes and browse through the files, going from remote to remote.

I have about 10 cloud accounts that I mount with Rclone and Rounsync.

I'm currently a beta tester officially for the company Mega. They provide cloud storage services compatible with Amazon S3. And regular too. I'm in the S4 beta program.

I connect with, and test rclone on Windows, Chrome OS Linux, and Linux. Also with Roundsync.

And I have to say that there are problems with rclone and Mega S4. Not exactly sure where the problems are but I have connectivity issues that are serious. One time I transferred files with rclone And all of the dates of the files on the server were set back to like 1900.

They regularly upload to the server with whatever the timestamp is at the time that I upload the file. There's absolutely no way for the software to properly synchronize between the source and the destination on the second try because the dates are all screwed up.

If I create a password protected crypt vault using rclone on windows, Rounsync on Android won't recognize it. There is absolutely no way for me to take advantage of the softwares file encryption because my phone won't be able to see the files used on windows.
It accepts the password I think if I recall correctly and then shows an empty folder so I can upload files to the cloud with both platforms and software products and they're both putting files in the same folder and neither one can see the other's files.

I'm running the release version of Roundsync on my cell phone.

I need to run the beta version on my tablet because of bugs that I discovered that needed to be fixed because the software wouldn't run on a tablet. I captured a log file with the Android debugging software and sent the developer's logs and he was able to recognize what the problem was and fix it in a few days and now I have a beta version that works.

The issue is that the beta has a bunch of other problems. I have open bug reports with round sync and I need to open a couple more.

I don't see a way for the Rclone Developers to connect and duplicate the S4 problems Unless somebody signs up for the beta program and gets approved. They have a sign up link on their website.

Well, now it's time for coffee and then check out your wikki.

Here is a short screencast I just did. A quick introduction to Roundsync (Rclone on Android) and Rclone running on Chrome OS.

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