Please help rclone auto mount on startup macos

how to auto mount on startup for macos ??

So this is what i did put this command on a text file save it as .command and put it in the log item
this is not the best way of doing it but it work .. its not safe to put your root password on a text file

    echo mypassword | sudo -S /usr/local/bin/rclone cmount onedrive: /Users/jackiezhao/onedrive \
    --allow-other \
    --dir-cache-time 96h \
    --vfs-cache-max-age 48h \
    --vfs-read-chunk-size 64M \
    --vfs-read-chunk-size-limit 2G \
    --vfs-cache-mode writes \
    --cache-dir=/Users/jackiezhao/rclone_cache \
    --buffer-size 32M \
    --umask 002 \
    --config /Users/jackiezhao/.config/rclone/rclone.conf \

You don't need to run rclone as root - you should be able to run it as your own user.

check my logs .. i get this error

Zhis-MBP:~ jackiezhao$ /usr/local/bin/rclone cmount onedrive: /Users/jackiezhao/onedrive \

> --allow-other \

> --dir-cache-time 96h \

> --vfs-cache-max-age 48h \

> --vfs-read-chunk-size 64M \

> --vfs-read-chunk-size-limit 2G \

> --vfs-cache-mode writes \

> --cache-dir=/Users/jackiezhao/rclone_cache \

> --buffer-size 32M \

> --umask 002 \

> --config /Users/jackiezhao/.config/rclone/rclone.conf \

> -vv

2020/10/08 03:19:51 DEBUG : rclone: Version "v1.53.1-DEV" starting with parameters ["/usr/local/bin/rclone" "cmount" "onedrive:" "/Users/jackiezhao/onedrive" "--allow-other" "--dir-cache-time" "96h" "--vfs-cache-max-age" "48h" "--vfs-read-chunk-size" "64M" "--vfs-read-chunk-size-limit" "2G" "--vfs-cache-mode" "writes" "--cache-dir=/Users/jackiezhao/rclone_cache" "--buffer-size" "32M" "--umask" "002" "--config" "/Users/jackiezhao/.config/rclone/rclone.conf" "-vv"]

2020/10/08 03:19:51 DEBUG : Creating backend with remote "onedrive:"

2020/10/08 03:19:51 Failed to load config file "/Users/jackiezhao/.config/rclone/rclone.conf": open /Users/jackiezhao/.config/rclone/rclone.conf: permission denied

if i dont add in config file i get this error

Zhis-MBP:~ jackiezhao$ /usr/local/bin/rclone cmount onedrive: /Users/jackiezhao/onedrive \

> --allow-other \

> --dir-cache-time 96h \

> --vfs-cache-max-age 48h \

> --vfs-read-chunk-size 64M \

> --vfs-read-chunk-size-limit 2G \

> --vfs-cache-mode writes \

> --cache-dir=/Users/jackiezhao/rclone_cache \

> --buffer-size 32M \

> --umask 002 \

> -vv

2020/10/08 03:21:57 DEBUG : rclone: Version "v1.53.1-DEV" starting with parameters ["/usr/local/bin/rclone" "cmount" "onedrive:" "/Users/jackiezhao/onedrive" "--allow-other" "--dir-cache-time" "96h" "--vfs-cache-max-age" "48h" "--vfs-read-chunk-size" "64M" "--vfs-read-chunk-size-limit" "2G" "--vfs-cache-mode" "writes" "--cache-dir=/Users/jackiezhao/rclone_cache" "--buffer-size" "32M" "--umask" "002" "-vv"]

2020/10/08 03:21:57 DEBUG : Creating backend with remote "onedrive:"

2020/10/08 03:21:57 Failed to load config file "/Users/jackiezhao/.config/rclone/rclone.conf": open /Users/jackiezhao/.config/rclone/rclone.conf: permission denied

Zhis-MBP:~ jackiezhao$

That's saying that root probably owns that file so you'd have to fix permissions on it.

so should i just move that file to another dir ?

so i fix the problem with conf file not is the cache dir how to fix this ?

2020/10/08 13:06:55 DEBUG : Creating backend with remote "onedrive:"

2020/10/08 13:06:55 DEBUG : Using config file from "/Users/jackiezhao/.config/rclone/rclone.conf"

2020/10/08 13:06:56 INFO : One drive root '': poll-interval is not supported by this remote

2020/10/08 13:06:56 DEBUG : vfs cache: root is "/Users/jackiezhao/rclone_cache/vfs/onedrive"

2020/10/08 13:06:56 DEBUG : vfs cache: metadata root is "/Users/jackiezhao/rclone_cache/vfs/onedrive"

2020/10/08 13:06:56 DEBUG : Creating backend with remote "/Users/jackiezhao/rclone_cache/vfs/onedrive"

2020/10/08 13:06:56 ERROR : Failed to create vfs cache - disabling: failed to make cache directory: make cache directory failed: mkdir /Users/jackiezhao/rclone_cache/vfs/onedrive: permission denied

2020/10/08 13:06:56 DEBUG : One drive root '': Mounting on "/Users/jackiezhao/onedrive"

2020/10/08 13:06:56 DEBUG : One drive root '': Mounting with options: ["-o" "fsname=onedrive:" "-o" "subtype=rclone" "-o" "max_readahead=131072" "-o" "attr_timeout=1" "-o" "atomic_o_trunc" "-o" "noappledouble" "-o" "volname=onedrive" "-o" "allow_other"]

You need to fix the permissions on the directory like you did for the other one. It's the same error.

already fixed .. i deleted the cache folder and remount it

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