Vfs-cache-mode writes How to change directory?

Hello!

Can someone please tell me how do I change the VFS cache directory while using --vfs-cache-mode writes please ? It's driving me crazy, I can't find this information anywhere :frowning:

Thanks!

It's --cache-dir

https://rclone.org/commands/rclone_mount/#file-caching

1 Like

Hello @Animosity022 thanks for your lightning fast answer !

Anyway, It doesnt work for me. It's still using the default directory (C:\Users\USERNAME\AppData\Local\rclone).

I'm using this to mount my drive :

cd c:\rclone
rclone mount gdrive: X: --vfs-cache-mode writes
--cache-dir F:\rclone
--allow-other
--allow-non-empty

Anything I'm doing wrong? I'm on windows btw, thanks !

I'd remove allow-non-empty and never use it as it allows for over mounting and hiding things.

Run the same mount command with -vv on it and share the output as that will tell us if it is working or not.

Ok now I've tried this :

cd c:\rclone
rclone mount gdrive: X: --vfs-cache-mode writes
--vv
--cache-dir F:\rclone
--allow-other

But still not working :frowning:

Do you have another idea?

EDIT:
FFS I'm retarded. I've used --vv. Let me try -vv instead :sleeping:

Need to share the output :slight_smile:

Excuse I'm new to this, what do you mean by share the output, what i'm supposed to do? And does the fact that I used "--vv" instead of "-vv" change anything?

When you type in that command to mount it, it creates output to the screen/logfile.

If you can share the output of when you ran that command so I can see what it is doing from the logs, that helps me to understand what the cause would be.

The "-vv" creates debug output so we can identify why the flag that should be working isn't.

Here you go :slight_smile:

C:>cd c:\rclone

c:\rclone>rclone mount gdrive: X: --vfs-cache-mode writes -vv
2019/05/31 15:06:45 DEBUG : rclone: Version "v1.47.0" starting with parameters ["rclone" "mount" "gdrive:" "X:" "--vfs-cache-mode" "writes" "-vv"]
2019/05/31 15:06:45 DEBUG : Using config file from "C:\Users\Charly\.config\rclone\rclone.conf"
2019/05/31 15:06:45 DEBUG : Google drive root '': Mounting on "X:"
2019/05/31 15:06:45 DEBUG : vfs cache root is "C:\Users\Charly\AppData\Local\rclone\vfs\gdrive"
2019/05/31 15:06:45 DEBUG : Adding path "vfs/forget" to remote control registry
2019/05/31 15:06:45 DEBUG : Adding path "vfs/refresh" to remote control registry
2019/05/31 15:06:45 DEBUG : Adding path "vfs/poll-interval" to remote control registry
2019/05/31 15:06:45 DEBUG : Google drive root '': Mounting with options: ["-o" "fsname=gdrive:" "-o" "subtype=rclone" "-o" "max_readahead=131072" "-o" "attr_timeout=1" "-o" "atomic_o_trunc" "-o" "uid=-1" "-o" "gid=-1" "--FileSystemName=rclone" "-o" "volname=gdrive"]
2019/05/31 15:06:45 DEBUG : Films 1080p HDLight/Les Indestructibles 2 (2018)/Incredibles 2 2018 MULTi TRUEFRENCH 1080p WEB-DL H264-SiGeRiS.mkv: updateTime: setting atime to 2019-05-31 14:44:36.4798909 +0200 CEST
2019/05/31 15:06:45 DEBUG : Films 1080p HDLight/Searching - Portรฉe disparue (2018)/Searching.2018.MULTi.TRUEFRENCH.1080p.BluRay.Light.x264.AC3-ACOOL.mkv: updateTime: setting atime to 2019-05-31 14:59:03.9155933 +0200 CEST
2019/05/31 15:06:45 INFO : Cleaned the cache: objects 6 (was 0), total size 7.005G (was 0)
2019/05/31 15:06:45 DEBUG : Google drive root '': Init:
2019/05/31 15:06:45 DEBUG : Google drive root '': >Init:
2019/05/31 15:06:45 DEBUG : /: Statfs:
2019/05/31 15:06:45 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:274877906944 Bfree:274877906944 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2019/05/31 15:06:45 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/05/31 15:06:45 DEBUG : /: >Getattr: errc=0
2019/05/31 15:06:45 DEBUG : /: Readlink:
2019/05/31 15:06:45 DEBUG : /: >Readlink: linkPath="", errc=-40
The service rclone has been started.
2019/05/31 15:06:45 DEBUG : /: Statfs:
2019/05/31 15:06:45 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:274877906944 Bfree:274877906944 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2019/05/31 15:06:45 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/05/31 15:06:45 DEBUG : /: >Getattr: errc=0
2019/05/31 15:06:45 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/05/31 15:06:45 DEBUG : /: >Getattr: errc=0
2019/05/31 15:06:45 DEBUG : /: Opendir:
2019/05/31 15:06:45 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2019/05/31 15:06:45 DEBUG : /: >OpenFile: fd=/ (r), err=
2019/05/31 15:06:45 DEBUG : /: >Opendir: errc=0, fh=0x0
2019/05/31 15:06:45 DEBUG : /: Releasedir: fh=0x0
2019/05/31 15:06:45 DEBUG : /: >Releasedir: errc=0
2019/05/31 15:06:45 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/05/31 15:06:45 DEBUG : /: >Getattr: errc=0
2019/05/31 15:06:45 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/05/31 15:06:45 DEBUG : /: >Getattr: errc=0
2019/05/31 15:06:45 DEBUG : /: Opendir:
2019/05/31 15:06:45 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2019/05/31 15:06:45 DEBUG : /: >OpenFile: fd=/ (r), err=
2019/05/31 15:06:45 DEBUG : /: >Opendir: errc=0, fh=0x0
2019/05/31 15:06:45 DEBUG : /: Releasedir: fh=0x0
2019/05/31 15:06:45 DEBUG : /: >Releasedir: errc=0
2019/05/31 15:06:45 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/05/31 15:06:45 DEBUG : /: >Getattr: errc=0
2019/05/31 15:06:45 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/05/31 15:06:45 DEBUG : /: >Getattr: errc=0
2019/05/31 15:06:45 DEBUG : /: Opendir:
2019/05/31 15:06:45 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2019/05/31 15:06:45 DEBUG : /: >OpenFile: fd=/ (r), err=
2019/05/31 15:06:45 DEBUG : /: >Opendir: errc=0, fh=0x0
2019/05/31 15:06:45 DEBUG : /: Releasedir: fh=0x0
2019/05/31 15:06:45 DEBUG : /: >Releasedir: errc=0
2019/05/31 15:06:49 DEBUG : /autorun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/05/31 15:06:49 DEBUG : /autorun.inf: >Getattr: errc=-2
2019/05/31 15:06:49 DEBUG : /autorun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/05/31 15:06:49 DEBUG : /autorun.inf: >Getattr: errc=-2
2019/05/31 15:06:49 DEBUG : /autorun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/05/31 15:06:49 DEBUG : /autorun.inf: >Getattr: errc=-2
2019/05/31 15:06:49 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/05/31 15:06:49 DEBUG : /: >Getattr: errc=0
2019/05/31 15:06:49 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/05/31 15:06:49 DEBUG : /: >Getattr: errc=0
2019/05/31 15:06:49 DEBUG : /: Opendir:
2019/05/31 15:06:49 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2019/05/31 15:06:49 DEBUG : /: >OpenFile: fd=/ (r), err=
2019/05/31 15:06:49 DEBUG : /: >Opendir: errc=0, fh=0x0
2019/05/31 15:06:49 DEBUG : /: Releasedir: fh=0x0
2019/05/31 15:06:49 DEBUG : /: >Releasedir: errc=0
2019/05/31 15:06:49 DEBUG : /AutoRun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/05/31 15:06:49 DEBUG : /AutoRun.inf: >Getattr: errc=-2

You didn't add --cache-dir F:\rclone to your mount command.

1 Like

Ohhh I got it : I was doing it like that : https://gyazo.com/e7eae238a2d7433ad3989065c30810c1

And apparently It wouldn't work...

And now using this : https://gyazo.com/973afa4bbd81ef3ec7349cb7a042f5c0

Thank you very much !!

And then :

C:>cd c:\rclone

c:\rclone>rclone mount gdrive: X: --vfs-cache-mode writes -vv --cache-dir F:\rclone --allow-other
2019/05/31 15:12:04 DEBUG : rclone: Version "v1.47.0" starting with parameters ["rclone" "mount" "gdrive:" "X:" "--vfs-cache-mode" "writes" "-vv" "--cache-dir" "F:\rclone" "--allow-other"]
2019/05/31 15:12:04 DEBUG : Using config file from "C:\Users\Charly\.config\rclone\rclone.conf"
2019/05/31 15:12:04 DEBUG : Google drive root '': Mounting on "X:"
2019/05/31 15:12:04 DEBUG : vfs cache root is "F:\rclone\vfs\gdrive"
2019/05/31 15:12:04 DEBUG : Adding path "vfs/forget" to remote control registry
2019/05/31 15:12:04 DEBUG : Adding path "vfs/refresh" to remote control registry
2019/05/31 15:12:04 DEBUG : Adding path "vfs/poll-interval" to remote control registry
2019/05/31 15:12:04 DEBUG : Google drive root '': Mounting with options: ["-o" "fsname=gdrive:" "-o" "subtype=rclone" "-o" "max_readahead=131072" "-o" "attr_timeout=1" "-o" "atomic_o_trunc" "-o" "uid=-1" "-o" "gid=-1" "--FileSystemName=rclone" "-o" "volname=gdrive" "-o" "allow_other"]
2019/05/31 15:12:04 DEBUG : Google drive root '': Init:
2019/05/31 15:12:04 DEBUG : Google drive root '': >Init:
2019/05/31 15:12:04 DEBUG : /: Statfs:
2019/05/31 15:12:04 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:274877906944 Bfree:274877906944 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2019/05/31 15:12:04 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/05/31 15:12:04 DEBUG : /: >Getattr: errc=0
2019/05/31 15:12:04 DEBUG : /: Readlink:
2019/05/31 15:12:04 DEBUG : /: >Readlink: linkPath="", errc=-40
The service rclone has been started.
2019/05/31 15:12:04 DEBUG : /: Statfs:
2019/05/31 15:12:04 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:274877906944 Bfree:274877906944 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2019/05/31 15:12:04 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/05/31 15:12:04 DEBUG : /: >Getattr: errc=0
2019/05/31 15:12:04 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/05/31 15:12:04 DEBUG : /: >Getattr: errc=0
2019/05/31 15:12:04 DEBUG : /: Opendir:
2019/05/31 15:12:04 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2019/05/31 15:12:04 DEBUG : /: >OpenFile: fd=/ (r), err=
2019/05/31 15:12:04 DEBUG : /: >Opendir: errc=0, fh=0x0
2019/05/31 15:12:04 DEBUG : /: Releasedir: fh=0x0
2019/05/31 15:12:04 DEBUG : /: >Releasedir: errc=0
2019/05/31 15:12:04 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/05/31 15:12:04 DEBUG : /: >Getattr: errc=0
2019/05/31 15:12:04 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/05/31 15:12:04 DEBUG : /: >Getattr: errc=0
2019/05/31 15:12:04 DEBUG : /: Opendir:
2019/05/31 15:12:04 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2019/05/31 15:12:04 DEBUG : /: >OpenFile: fd=/ (r), err=
2019/05/31 15:12:04 DEBUG : /: >Opendir: errc=0, fh=0x0
2019/05/31 15:12:04 DEBUG : /: Releasedir: fh=0x0
2019/05/31 15:12:04 DEBUG : /: >Releasedir: errc=0
2019/05/31 15:12:04 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/05/31 15:12:04 DEBUG : /: >Getattr: errc=0
2019/05/31 15:12:04 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/05/31 15:12:04 DEBUG : /: >Getattr: errc=0
2019/05/31 15:12:04 DEBUG : /: Opendir:
2019/05/31 15:12:04 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2019/05/31 15:12:04 DEBUG : /: >OpenFile: fd=/ (r), err=
2019/05/31 15:12:04 DEBUG : /: >Opendir: errc=0, fh=0x0
2019/05/31 15:12:04 DEBUG : /: Releasedir: fh=0x0
2019/05/31 15:12:04 DEBUG : /: >Releasedir: errc=0
2019/05/31 15:12:08 DEBUG : /autorun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/05/31 15:12:08 DEBUG : /autorun.inf: >Getattr: errc=-2
2019/05/31 15:12:08 DEBUG : /autorun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/05/31 15:12:08 DEBUG : /autorun.inf: >Getattr: errc=-2
2019/05/31 15:12:08 DEBUG : /autorun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/05/31 15:12:08 DEBUG : /autorun.inf: >Getattr: errc=-2
2019/05/31 15:12:08 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/05/31 15:12:08 DEBUG : /: >Getattr: errc=0
2019/05/31 15:12:08 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/05/31 15:12:08 DEBUG : /: >Getattr: errc=0
2019/05/31 15:12:08 DEBUG : /: Opendir:
2019/05/31 15:12:08 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2019/05/31 15:12:08 DEBUG : /: >OpenFile: fd=/ (r), err=
2019/05/31 15:12:08 DEBUG : /: >Opendir: errc=0, fh=0x0
2019/05/31 15:12:08 DEBUG : /: Releasedir: fh=0x0
2019/05/31 15:12:08 DEBUG : /AutoRun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2019/05/31 15:12:08 DEBUG : /AutoRun.inf: >Getattr: errc=-2
2019/05/31 15:12:08 DEBUG : /: >Releasedir: errc=0

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