Giter VIP home page Giter VIP logo

com.piyushgarg.rclone's Introduction

Rclone Remount v1.8


Remount cloud storage locally during boot via rclone & fusermount directly on your Android powered smart device.

Virtually limitless storage expansion with support for dozens of cloud providers including Dropbox, GDrive, OneDrive, SFTP & many more. Extremely useful for devices without physical storage expansion capabilities. Also great for streaming large media files without need for full caching. Binaries compiled using Termux.

We are constantly striving to improve this project & make it the best. If you experience any issues or have suggestions please file them HERE. Contributions to this project are welcomed.

Features

  • Support for arm, arm64, & x86

  • Huge list of supported cloud storage providers

  • Apps with ability to specify paths can access /mnt/cloud/

  • Most file explorers work just fine (issue #9)

  • Mount points use names of remote(s) in rclone.conf

  • Specify custom rclone params for each remote via /sdcard/.rclone/.REMOTE.param

  • Access remotes via http://127.0.0.1:38762

  • Access remotes via ftp://127.0.0.1:38763

  • Mount bind to /sdcard/ (see issue #5)

  • Support for Work Profiles


Configuration (pre-installing)

  1. Copy your rclone.conf file to /sdcard/.rclone/rclone.conf (not required)

  2. Add custom params at /sdcard/.rclone/.*.param (if needed)

  3. Install the module via Magisk Manager

  4. Run rclone config via term if additional setup required

  5. All your rclone mount points will show up under /mnt/cloud/ & /storage/cloud/ or /sdcard/cloud/

For more detailed configuration of rclone please refer to official documentation


Custom Params

Custom params have been created as a means for users to adjust this modules default parameters which are set for all remotes inside your rclone.conf.

Specification of rclone parameters on a per remote basis can be created inside hidden files ending with the .param extension

  /sdcard/.rclone/.*.param

Where * is replaced with the name of remote

  • Custom parameters, their default values & rclone params they represent in ( )

      LOGFILE=/sdcard/.rclone/rclone.log  ( --log-file )
    
      LOGLEVEL=NOTICE  ( --log-level )
    
      CACHEMODE=off  ( --vfs-cache-mode )
    
      CHUNKSIZE=1M  ( --cache-chunk-size )
    
      CHUNKTOTAL=1G  ( --cache-chunk-total-size )
    
      READCHUNKSIZE=1M  ( --vfs-read-chunk-size )
    
      CACHEWORKERS=1 ( --cache-workers )
    
      CACHEINFOAGE=1h0m0s  ( --cache-info-age )
    
      DIRCACHETIME=30m0s  ( --dir-cache-time )
    
      ATTRTIMEOUT=30s  ( --attr-timeout)
    
      BUFFERSIZE=0  ( --buffer-size )
    
      READAHEAD=128k  ( --max-read-ahead )
    
      M_UID=0  ( --uid )
    
      M_GID=1015  ( --gid )
    
      DIRPERMS=0775  ( --dir-perms )
    
      FILEPERMS=0644  ( --file-perms )
    
      UMASK=002  ( --umask )
    
      BINDSD=0  ( default binds remote to /sdcard/Cloud/* )
    
      SDBINDPOINT=  ( relative to /storage/emulated/0)
    
      SDSYNCDIRS= (relative to /storage/emulated/0)
    
      ADD_PARAMS=0
    
      REPLACE_PARAMS=0
    
      PROFILE=0
    
      SUBPATH= ( root directory of share )
    

    NOTE: _The above are defaults for all remotes without .*.param files containing opposing values.

  • Custom remote params example #1

    The following configuration will disable caching for remote [Movies], bind to /sdcard/Movies & add the -fast-list/--allow-non-empty flags to it's mounting command.

       /sdcard/.rclone/.Movies.param
    
       1| CACHEMODE=off
       2| BINDSD=1
       3| SDBINDPOINT=Movies
       4| ADD_PARAMS=--fast-list --allow-non-empty
       5| 
    

    NOTE: There is no need to specify values you do not wish to change. Ensure a line break/carriage return exist after each specified param or they will not be parsed. For more information see issue #2

  • Custom remote params example #2 (using SUBPATH)

    The following configuration will mount the remote subdirectory Batman as the root directory of the share [Movies].

       /sdcard/.rclone/.Movies.param
    
       1| SDBINDPOINT=BatmanMovie
       2| SUBPATH=Batman
       3| 
    

    Now the mounted directory /sdcard/BatmanMovie is actually the remote directory Movies/Batman.


Custom Globals

Specification of global rclone parameters can be created in

  /sdcard/.rclone/.global.param
  • Global Specific Parameters

      NETCHK=1
    
      NETCHK_ADDR=google.com
    
      NETCHK_IF=
    
      HTTP=1
    
      HTTP_ADDR=127.0.0.1:38762
    
      FTP=1
    
      FTP_ADDR=127.0.0.1:38763
    
  • Excluded Parameters

      SDBINDPOINT=
      SDSYNCDIRS=
    
  • Custom globals params example #1

    The following configuration will enable minimal caching for all remotes, bind to /sdcard/Cloud/*, disable HTTP/FTP & add the --fast-list/--allow-non-empty flags to their mounting command(s).

       /sdcard/.rclone/.global.param
    
       1| CACHEMODE=minimal
       2| BINDSD=1
       3| ADD_PARAMS=--fast-list --allow-non-empty
       4| HTTP=0
       5| FTP=0
       6| 
    

    NOTE: Global parameters effect all remotes without .*.parm files containing opposing values. Some parameters are specific to globals while others have been excluded.


Replacing & Adding Params

In order for users to appropriately utilize ADD_PARAMS= or REPLACE_PARAMS= they will need a little background on the parameters that are set by default.

  • Currently specified params shown here ↓

    (directly from service.sh):

    RCLONE_PARAMS=" --log-file ${LOGFILE} --log-level ${LOGLEVEL} --vfs-cache-mode ${CACHEMODE} --cache-dir ${CACHE} --cache-chunk-path ${CACHE_BACKEND} --cache-db-path ${CACHE_BACKEND} --cache-tmp-upload-path ${CACHE} --vfs-read-chunk-size ${READCHUNKSIZE} --vfs-cache-max-size ${CACHEMAXSIZE} --cache-chunk-size ${CHUNKSIZE} --cache-chunk-total-size ${CHUNKTOTAL} --cache-workers ${CACHEWORKERS} --cache-info-age ${CACHEINFOAGE} --dir-cache-time ${DIRCACHETIME} --attr-timeout ${ATTRTIMEOUT} --cache-chunk-no-memory --use-mmap --buffer-size ${BUFFERSIZE} --max-read-ahead ${READAHEAD} --no-modtime --no-checksum --uid ${M_UID} --gid ${M_GID} --allow-other --dir-perms ${DIRPERMS} --file-perms ${FILEPERMS} --umask ${UMASK} ${READONLY} ${ADD_PARAMS} "

                              ^
    

    NOTE: When using the ADD_PARAMS= it will append any additonal params you wish to specify at the point of ${ADD_PARAMS} (above) in a fill in the blank manner.

  • The script then takes RCLONE_PARAMS= and fills in blank at ${RCLONE_PARAMS}

    rclone mount ${remote}: ${CLOUDROOTMOUNTPOINT}/${remote} --config ${CONFIGFILE} ${RCLONE_PARAMS} --daemon &

    NOTE: Everything before and after ${RCLONE_PARAMS} cannot not be replaced even with REPLACE_PARAMS= specified.

  • When using REPLACE_PARAMS= RCLONE_PARAMS= becomes RCLONE_PARAMS=" ${REPLACE_PARAMS} "


Work Profiles & Users

As of v1.8 support for isolating & binding to work profiles or additional users has been included which may provide for some interesting use cases.

When adding work profiles through sandboxing apps such as Island or Shelter it will create a virtual SD for your sandboxed apps. This virtual SD can now be used with rclone remount.

  • Work profile example #1 (Cloud Camera w/ Shelter)

      open Shelter > find camera > clone to work profile
    
      /sdcard/.rclone/.cloud-DCIM.param
    
      1| BINDSD=1
      2| SDBINDPOINT=DCIM
      3| PROFILE=10
      4| ISOLATE=1
      5| CACHEMODE=writes
      6| 
    

    NOTE: Virtual SDs for work profiles & or additional users start at /storage/emulated/10. Additional profiles increase the ending directory integer (e.g. /storage/emulated/11). This integer is used with PROFILE=


SD Sync & Remotes

  • SD sync example # 1

       /sdcard/.rclone/.Backup.param
    
       1| SDSYNCDIRS=DCIM/Camera:Photos:My Projects
       2| CACHEMODE=writes
       3| CACHEINFOAGE=11s
       4| DIRCACHETIME=10s
       5| ATTRTIMEOUT=10s
       6| 
    

    NOTE: SDSYNCDIRS= paths are relative to /storage/emulated/PROFILE=0. Paths are to be separated using a : . This variable is should be whitespace friendly.


Known Issues

  • VLC takes a long time to load media as it opens file in write mode when using it's internal browser.

    a. Create remote type alias for media dirs in rclone.conf and specify CACHEMODE=off in /sdcard/.rclone/.ALIASNAME.param

  • Encrypted devices can not mount until unlock

  • Encrypted rclone.conf causes reboots

  • High cpu/mem in some apps with storage perms (issue #9)

  • The fusermount bin may not be compatible on all devices (see thread)


Disclaimer

Neither the author nor developer's will be held responsible for any damage/data loss that may occur during use of this module. While we have done our best to make sure no harm will come about, no guarantees can be made. Keep in mind the binaries included in this project were originally intended to be ran on PCs which may cause unforseen issues. Always check this document before updating to new releases as significant changes may occur.


Credits

  • rclone devs
  • pmj_pedro@xda
  • agnostic-apollo@xda
  • rclone binaries from rclone.org
  • fusermount binaries from xda-devs
  • improvements geofferey@github

Changelog

v1.16

  • Reverted 1.15
  • faster download via magisk
  • Download rclone during installation from the https://beta.rclone.org/test/testbuilds-latest
  • DLNA support, use DLNA=1(0->default), DLNA_ADDR(default->:38792) and DLNA_NAME=(default->media) in /sdcard/.rclone/.global.param
  • Require busybox (curl and gunzip)
  • Drastically removed module size.

v1.14

v1.13

v1.12

  • Fixed restart problems.

v1.11

v1.10

  • fixed fusermount wrapper

v1.9

v1.8

  • Support for Work Profiles PROFILE=
  • Isolate to Work Profiles ISOLATE=1
  • Support syncing from SD to remote

v1.7

  • Add ability to disable HTTP/FTP
  • Link rest of default params to custom vars
  • Exclude some custom params from globals
  • Make some globals exclusive
  • Change BINDPOINT= to SDBINDPOINT=
  • Fix bug with custom params
  • Set PATH= to change priority of used bins

v1.6

  • Simplify custom global parameters
  • Fix & improve binding to SD
  • Specify additional rclone ops with ADD_PARAMS=
  • Replace rclone mount ops via REPLACE_PARAMS=

v1.5

  • Replace arm/arm64 rclone 1.48 bins built with Termux
  • Replace arm/arm64 fusermount built with Termux
  • Add arm/arm64 libandroid-support.so from Termux
  • Support for mounting to SD
  • Squash missing rclone.conf install bug
  • Tune default parameters
  • Include a wrap for rclone config
  • Include fusermount-wrapper.sh
  • General Improvements

v1.4

  • Add ability to disable a remote
  • Add a wrapper script for rclone
  • Access remotes via http & ftp
  • Use without rebooting device
  • Add wrapper cmds to rclone help
  • Make remount possible via su -M -c

v1.3

  • Move user rclone.conf & related to /sdcard/.rclone/
  • Control global --vfs-cache-mode via simple files placed in /sdcard/.rclone/
  • Specify custom params for individual remotes via /sdcard/.rclone/.REMOTENAME.params

v1.2

  • Change install process
  • Changes for full systemless
  • Improve mount reliability
  • Symlink mountpoint to /storage/

v1.1

  • Initial release
  • rclone mount

HitCount

com.piyushgarg.rclone's People

Contributors

geofferey avatar jasonsyoung avatar piyushgarg avatar power78 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

com.piyushgarg.rclone's Issues

Deadlock with /sbin/rclone

Android version: 10
Phone model: Oneplus 7
Magisk version: 20.4
Module version: 1.10

Problem

Deadlock when executing rclone in root shell, console not responding.

Step to reproduce

  1. Install Rclone Remount module.
  2. Reboot.
  3. Enter root shell.
  4. Execute rclone.

Cause

  • /sbin/rclone is a symbol link to ${MODDIR}/rclone-wrapper.sh
  • In rclone-wrapper.sh, MODDIR=${0%/*} is used to get the current module path.
  • However, when we execute rclone or /sbin/rclone, ${0%/*} expand to /sbin but not /data/adb/nodule/com.piyushgarg.rclone, as it doesn't resolve symlink.
  • In rclone-wrapper.sh, when it execute ${HOME}/rclone, /sbin/rclone is executed instead of /data/adb/nodule/com.piyushgarg.rclone/rclone.
  • Boom deadlock

Solution

  • Use MODDIR="$(dirname "$(readlink -f "$0")")" to get current module path. (Tested)
  • Add a 2nd level wrapper script.

Why does rclone keep downloading?

I mounted my NAS (6T) using FTP. After mounting, the device kept downloading, causing the device to freeze and restart.

Is my configuration inappropriate?

this is my .global.param
`NETCHK=1

NETCHK_ADDR=qq.com

CACHEMODE=minimal

BINDSD=1

ADD_PARAMS=--fast-list --allow-non-empty

HTTP=0

FTP=0

rclone unlimited gdrive not enough space

hi my device is himedia q10 pro everything setup gdrive unlimited not team drive, it created a folder in storage/cloud but when copy 1gb+ files it says not enough space.
please help thank you

Update rclone

Hi, I need the latest version of rclone. Is there a way to disentangle the rclone application from this module?

Uploading files to mounted remote results in error

While most file operations are working without a hitch, there was no success when attempting to upload files to the mounted cloud remote.
This is the rclone log output:

2019/07/29 05:37:11 ERROR : path_to_file: WriteFileHandle.New Rcat failed: Failed to create temporary local FS to spool file: stat /data/data/com.termux/files/usr/tmp: no such file or directory
2019/07/29 05:37:11 ERROR : path_to_file: WriteFileHandle.Write error: io: read/write on closed pipe
2019/07/29 05:37:11 ERROR : path_to_file: WriteFileHandle.Write error: io: read/write on closed pipe
2019/07/29 05:37:11 ERROR : path_to_file: WriteFileHandle.Write error: io: read/write on closed pipe
2019/07/29 05:37:11 ERROR : path_to_file: WriteFileHandle.Flush error: Failed to create temporary local FS to spool file: stat /data/data/com.termux/files/usr/tmp: no such file or directory
2019/07/29 05:37:11 ERROR : path_to_file: WriteFileHandle.New Rcat failed: Failed to create temporary local FS to spool file: stat /data/data/com.termux/files/usr/tmp: no such file or directory
2019/07/29 05:37:11 ERROR : path_to_file: WriteFileHandle.Write error: io: read/write on closed pipe
2019/07/29 05:37:11 ERROR : path_to_file: WriteFileHandle.Write error: io: read/write on closed pipe
2019/07/29 05:37:11 ERROR : path_to_file: WriteFileHandle.Write error: io: read/write on closed pipe
2019/07/29 05:37:11 ERROR : path_to_file: WriteFileHandle.Flush error: Failed to create temporary local FS to spool file: stat /data/data/com.termux/files/usr/tmp: no such file or directory

Using OneDrive Business and MiXplorer.
I'll try a different cloud service and a different file explorer next.

EDIT: Turns out that files under 100KiB are transfered just fine. Anything above that ends up as a corrupted 100KiB file on the cloud.
Is it a rclone configuration issue?

How to synchronize the modification date of a file?

I mounted FTP, but when I modify directly on the FTP server, the modification date will not be synchronized to the local, the modification date of the file on the phone is the phone's own!

This problem prevented my phone from viewing files by "sort by modification date" at all! Because the modification date is wrong ...

*How do I set. . Param to synchronize the modification date to the local?

Bind SD Issues

When using rclone mount for Android with the .bindsd feature enabled (see issue #5) some apps and file managers may cause rclone to consume excessive amounts of CPU & RAM.

When examining debug logs I have noticed an abnormal amount of Lookup in the entries, possibly due to media scans that do not respect the .nomedia file. If your remote contains a complex directory structure and large amount of files this issue will become apparent rather quickly.

Currently there is no known fix besides disabling the feature or discontinuing use of the app(s) that aggravate the problem. Luckily rclone only seems to be effected by a small handful of apps utilizing storage permissions.

Known Problem Apps

When I find other apps that cause problems I will update this list.

  • ES File Explorer

    Seems as though ES File Explorer's new files feature is causing this problem, unfortunately there is no way to disable it.

  • Substratum Theme Engine

cant/mnt/cloud

I'm on Lineage 16 (OnePlus3T) and Magisk 20.1. The Module seem to work fine. Installation had no issues and rclone remount also has no problems. Maybe I'm doing something wrong, but all my remotes (onedrive) are only mounted readonly under /mnt/cloud. I don't use sdbind. When I try to create a Test-File (touch in terminal after su or using solid explorer) the is an I/O Error

Refactoring of custom parameters and others

This module is absolutely brilliant. I think it can be improved a few ways:

  1. Refactor custom params

I have 10+ custom rclone mount settings. Some are covered with the custom params file, others aren't (listed below).

Having a custom parameters file is a little confusing since we need to map rclone variables to new "com.piyushgarg.rclone" variables and put them in a file. The custom parameters also don't seem to support all the available rclone parameters. Instead, I recommend having a file that's simply interpreted and appended directly as entered. Doing away with creating another set of variables that need customizing with a huge list of other global rclone parameters simplifies setup.

e.g. create your own custom parameters file with options you want rclone to use while mounting

custom.param

[name of remote]
 --buffer-size 32M \
 --vfs-cache-mode minimal \
 --vfs-cache-max-size 4G \
 --vfs-read-chunk-size 64M \
 --dir-cache-time 72h \
 --dir-perms 775 \
 --file-perms 775 \
 --allow-other \
 --allow-non-empty \
 --fast-list \
 --use-mmap \
 --exclude "/Music/**" \
 --log-level INFO \
 --log-file=/storage/emulated/0/temp/rclone-mount.log \
 --daemon
  1. Customize the mount point

I'd like to put the mount at /storage/emulated/0/ since that's my default working directory on Android. Maybe this can be combined with suggestion 1.

e.g.

custom.param

[name of remote] [custom mount point]
--param 1 \
--param 2 \
  1. Access remotes via http://127.0.0.1:38762

This doesn't work for me. When I type it in the browser I get "net::ERR_CONNECTION_REFUSED"

Can't create files only directories

I'm on Lineage 16 (OnePlus3T) and Magisk 20.1. The Module seem to work fine. Installation had no issues and rclone remount also has no problems. Maybe I'm doing something wrong, but all my remotes (onedrive) seem properly mounted under /mnt/cloud. I don't use sdbind. When I try to create a test-file (touch in terminal after su or using solid explorer) there is an error. But a directory can be created without any problems...

Cannot run config on Android 10 (Q)

Trying to run rclone config results in:
error: "/sbin/.core/img/com.piyushgarg.rclone/rclone": executable's TLS segment is underaligned: alignment is 8, needs to be at least 64 for ARM64 Bionic Aborted
This is on a Pixel 2XL with Android Q beta 6.
Googling the issue I think this is an issue with Go(lang), so updating that will probably resolve the issue.

rclone works right after installing but fails after rebooting

It is not working after a reboot on Pixel Experience Plus Android 10.

It works right after installing it in magisk, and configured endpoints are mounted under /mnt/cloud, but after rebooting, rclone does not work anymore, it does not even show the help from a command line.

At the moment I workaround it by installing the magisk module again without rebooting.

What logs could be useful?

Crypt remote not working

Hi,

I have a Gdrive remote (let's call it drive: ) mounting correctly on my android.
However the crypt remote (drive_crypt: ) referencing this drive: is not mounting.

When I type on a terminalrclone ls drive_crypt:/ I can see all my folders.

Is crypt mounting really supported ?

Rclone not getting detected after fresh install

I'm on Nvidia Shield 8.0.1 Android 9.

I factory reset the Shield, installed Magisk, rooted, and then installed the modules SSH for Magisk and rclone-mount.

However, whenever I SSH in and try to run rclone to setup the config it gives me the error

sh: rclone: not found

Any ideas what is going on here? I can run rclone directly from /data/adb/modules/com.piyushgarg.rclone/rclone but I'd obviously not what to do that, plus when I setup the config through there the /storage/cloud folder never shows.

NET_CHK() issue

In China, google.com can't access normally. Must use VPN. Can you change the network detection address to bing.com ?

cannot mount on Android tv box

i am install rclone magisk module on my shield tv that installed pie and rooted
All steps are fine.
i can see 'done' message, but cannot see my google drive folder at /mnt/cloud/gdrive
cannot mount on tv box?

About Internal SD Support

As of version 1.5 experimental support for mounting to the internal SD will be included. By default I have disabled it due to concerns for users data integrity after losing data during my development process. However, since working out how I think mounting/un-mounting should be done I haven't seemed to have the same issues.

If you wish to test this feature out backup your data first. Ensure no folder named Cloud exist in /sdcard/ then place BINDSD=1 in /sdcard/.rclone/.*.param & run rclone remount or reboot.

Once you have performed these steps all your remotes should be available under /sdcard/cloud/. Do not remove files named .bound or .nomedia as they are intended to indicate a proper bind to /sdcard/ & stop media scans from consuming large amounts of data RAM and CPU.

Hang with "please wait..." by fresh install

I had a hang during install at the point "please wait..." (waited several minutes) during fresh install.
Module was later listed under Modules, but I guess I have to uninstall and reinstall it again... ???
Can I provide any logs?

My device is a Samsung S7 with LOS 15.1 and latest dev build Magisk...

Screenshot_20190710-155950_Magisk_Manager

About config dir

How about using $XDG_CONFIG_HOME ? Normally the config file is in home directory as a file called .config/rclone/rclone.conf (or .rclone.conf if created with an older version). If $XDG_CONFIG_HOME is set it will be at $XDG_CONFIG_HOME/rclone/rclone.conf.Use this to easily change the configuration file path

Magisk 19.4+ cause instabilities.

I just recently updated magisk to 19.4, and having rclone installed while on 19.4 beta or above canary builds cause my device to freeze, and then reboot. As soon as I uninstalled rclone, device started functioning as normal. I am on Moto z3 Play Android 9.0. I'll be going back to 19.3 because I love rclone, but thought I'd let you know about the issues before 19.4 stable is released.

How to synchronize remote operations to local?

I mounted OneDrive. If I create, delete, modify, etc. on my phone locally, these operations will be synchronized to the OneDrive cloud;

But, if I create, delete, or modify on the OneDrive webpage (onedrive.com), these operations will not be synchronized to the local. How can I synchronize changes in the cloud to the local?

(The local changes only when I remount)

this is my .global.param
`NETCHK=1

NETCHK_ADDR=qq.com

CACHEMODE=minimal

BINDSD=1

ADD_PARAMS=--fast-list --allow-non-empty

HTTP=0

FTP=0

`

No option to specify path in SFTP

It is quite hard to specify some custom path in sftp mounting, because rclone implements
rclone mount sharename:/path/to/folder/to/be/mounted /local/path/for/mounting/to so we can't basically choose anything apart from home folder of ssh user, which is kinda limiting.

Rclone remote wont mount unless CACHEMODE=off

My rclone wont mount unless CACHEMODE is set to off.
I tried all minimal/writes/full options but all result in just creating the empty mount folder, with nothing int it /mnt/cloud/xxxx

If CACHEMOD=OFF it mount just fine,

Tried with 1.7 /1.7a / 1.8a

SD Bind Issues

Hi, I enabled SD Bind, but after it mounts all I get is an empty Cloud folder. The main mount point works fine, but SD does not show any files.

Rclone version is outdated

Please update the rclone version within this module, or even better, (also) tell me how to do it then I'll do it myself :) I have termux and installed building tools.

I'd like to use stuff they fixed in recent betas.

About Custom Params

About Custom Params

Custom params is an addition I made to allow specification for a handful of rclone parameters on a per remote basis, without users having to modify main scripts or needing to write their own. Parameters are specified as PARAM=value inside a file. Each PRAM= is an arbitrary representation of a specific rclone argument/option with it's value following =.

All .*.param files should be placed in /sdcard/.rclone/ where * represents the name of a [remote] inside your rclone.conf

  • Here is an example rclone.conf with [remotes]:

InShot_20190705_175308622

Take note of [Ubuntu-VM], [Backup] & [Movies] in screenshot as the values inside [ ] will be used throughout Use Cases. The example above includes one real remote & two aliases to sub dirs accessible via the main remote [Ubuntu-VM]. Because of the way SFTP remotes work dirs outside your home are inaccessible & that's where aliases come in.

  • Example .*.param files in /sdcard/.rclone/:

InShot_20190705_231200926

  • List of cust params and the rclone ops they represent:

InShot_20190706_153837961

  • Example .*.param file content format:

InShot_20190706_122633426

Note: The above is just an example of specifiable params and their default values. There is no need to specify values you do not wish to change. Also take note of the empty line 7 after DISABLE=0, which is required for proper parsing of the file.


Use Cases

  • Workaround for VLC streaming issues:

VLC has an issue where it will attempt to fully cache media when playing from it's internal browser. The only recourse is to disable caching on the remote entirely or create a separate alias remote "[Movies]" and disable caching there.

InShot_20190706_161842938

  • Disable remote when only type = alias needed:

Because of the way SFTP remotes work you need to create aliases for directories outside of your starting directory. You may not want to mount the remote [Ubuntu-VM] that aliases exist for even though it is required inside rclone.conf

InShot_20190706_163809516

rclone installation stuck to mount

Android 6.0.1
Magisk 19.3

Forever stuck on please wait when installing through Magisk or TWRP.
There were no conf files on the /sdcard/.rclone directory as it was my first time using rclone.

This happened after a forceful reboot and trying to setup a mount.

2019/07/24 20:01:09 mount helper error: CANNOT LINK EXECUTABLE: cannot locate symbol "__aeabi_memcpy" referenced by "fusermount"...
2019/07/24 20:01:09 mount helper error: page record for 0xb6f0e00c was not found (block_size=16)
2019/07/24 20:01:09 Fatal error: failed to mount FUSE fs: fusermount: exit status 1
2019/07/24 20:50:50 mount helper error: CANNOT LINK EXECUTABLE: cannot locate symbol "__aeabi_memcpy" referenced by "fusermount"...
2019/07/24 20:50:50 mount helper error: page record for 0xb6ee700c was not found (block_size=16)
2019/07/24 20:50:50 Fatal error: failed to mount FUSE fs: fusermount: exit status 1
2019/07/24 23:01:05 mount helper error: CANNOT LINK EXECUTABLE: cannot locate symbol "__aeabi_memcpy" referenced by "fusermount"...
2019/07/24 23:01:05 mount helper error: page record for 0xb6f7500c was not found (block_size=16)
2019/07/24 23:01:05 Fatal error: failed to mount FUSE fs: fusermount: exit status 1

BINDSD not unset

I set BINDSD=1 in .cache.param,and .cxyzzzoss.param use default,then remount,the oss also use BINDSD=1
Screenshot_2019-08-09-09-44-15-851_com termux

Mixed up config file names

I can't quote for specific places, but actually it is quite often ..param and ..params is spotted, meaning to be a single config file, and not sure which one is correct. Plus description is not very understandable in means of installing (not straightforward), and rclone remount command also does nothing (not existent).

1 2 3 steps for mounting storage will help using this better, plus in-magisk configurator also could help in choosing whether to mount in internal/cloud/sharename or not.

Empty folder inside mounted drive and "rclone config" connection refused

  1. I had 4 remote connection on my rclone.conf and without any custom params
root@android:/storage/emulated/0 # rclone remount                
Default CACHEMODE writes                               
                                                       
[gdrive_personal] available at: -> [/mnt/cloud/gdrive_personal]
                                                       
[gsuite] available at: -> [/mnt/cloud/gsuite]          
                                                       
[office_365] available at: -> [/mnt/cloud/office_365]  
                                                       
[onedrive_personal] available at: -> [/mnt/cloud/onedrive_persona
l]                                                     
                                                       
Notice: /mnt/cloud served via HTTP at: http://127.0.0.1:38762
Notice: /mnt/cloud served via FTP at: ftp://127.0.0.1:38763
                                                       
...done                                                
  1. 4 remote is mounted in /mnt/cloud/<remote_name>, but no contents at all inside each of them
    Screenshot_20190712063141-270x540

  2. Trying to add new remote with "rclone config" isn't working, it gives this error (below is auto yes and using auto no also doesn't work)

Remote config
Use auto config?
 * Say Y if not sure
 * Say N if you are working on a remote or headless machine
y) Yes
n) No
y/n> y
If your browser doesn't open automatically go to the following li
nk: http://127.0.0.1:53682/auth
Log in and authorize rclone for access
Waiting for code...
Got code
2019/07/11 23:27:54 Failed to configure token: failed to get toke
n: Post https://accounts.google.com/o/oauth2/token: dial tcp: loo
kup accounts.google.com on [::1]:53: read udp [::1]:48836->[::1]:
53: read: connection refused

Degoo

Is it possible to add support for Degoo cloud storage

Can't work on redmi note 5 ? Empty folder !

my phone :redmi note 5
Android 8.1.0
MIUI 91.0.6
Magisk manager 7.3.2
Magisk 19.3
com.piyushgarg.rclone v1.7b

I had 1 remote connection on rclone.conf and with custom params
.global.param:

CACHEMODE=minimal
ADD_PARAMS=--fast-list --allow-non-empty
HTTP=0
FTP=0
Screenshot_2019-08-23-19-16-33-748
Screenshot_2019-08-23-19-16-39-958

install OK but empty folder ?

I can see the folder "mnt\cloud\nsysu", but there is nothing ?

May I miss any step ??

Can not download

Can not download the zip file through magisk manager. Shows error downloading file.

Bind to SD card only gives r/o access

I tried binding my mount points to SD card. One, it still mounted the point in /mnt/cloud and two, the one in /sdcard/cloud was only read access. Is this an issue or do I need to pass additional parameters to the param file. I had hoped that it would pick the default ones from the settings automatically, while using the additional ones I passed to Mount in SD card.

Am I missing something here?

Error

/sbin/rclone-mount
/sbin/rclone-mount[10]: .: /sbin/module.prop: No such file or directory
$

模块重启挂载不上

你好,模块重启后不会自动挂载,并且我尝试手动挂载也挂载不上,只有空文件夹
[GoogleDrive] available at: -> [/mnt/cloud/GoogleDrive]
/sbin/.core/img/com.piyushgarg.rclone/service.sh[414]: su: not found

[Onedrivefuli] available at: -> [/mnt/cloud/Onedrivefuli]
/sbin/.core/img/com.piyushgarg.rclone/service.sh[414]: su: not found

Mounted but folder empty

hi all, i use this command rclone mount -vv "mydrive:" /mnt/cloud/myfolder
I see that the emulator has been mounted, but I don't see any file or folder inside the chosen folder.
How can I solve it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.