yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] agnostic-apollo:
damn, this is still going on... I wrote my comment and all the rclone scripts and everything in like nov and also some bind mount security issues i discovered, but never got around to posting anything... I guess will take time out soon... Was kinda waiting to setup my apt repo...

---------- Post added at 18:50 ---------- Previous post was at 18:46 ----------

Thanks for the mention, but I am not the creator/maintainer of the magisk module, that is Geofferey...

I only provided the rclone binaries for all archs... and will provide rclone mount scripts and tasker projects soon...
[Miscellaneous Android Development] player594:
I ran that in terminal and it says nsenter not found.
[Miscellaneous Android Development] mirfatif:
Tragic!

"nsenter" is a busybox applet or get from Termux (by running: "pkg install util-linux").

Termux is a terminal emulator app.

Or try:

su --mount-master -c rclone mount GDrive: /mnt/runtime/write/emulated/0/GDrive --gid 9997 --dir-perms 0771 --file-perms 0660 --umask=0 --allow-other

If "su" is not found then you need to root your device.

If "--mount-master" doesn't work try '"-mm" or "-M".

If configuration file not found, run like "rclone --config /path/to/rclone.conf".

If you don't have configuration file then see manual: https://rclone.org/commands/rclone_config

If you get error no such directory when mounting, create: "mkdir /sdcard/GDrive".
[Miscellaneous Android Development] player594:
I don't see nsenter in BusyBox. What does Termux do?
[Miscellaneous Android Development] player594:
None of the mount suggestions you gave work. They all say not found.
[Miscellaneous Android Development] player594:
Still can't get this to work.
[Miscellaneous Android Development] ddogishere:
Hi m8 can you get it to work, mine was working fine on my android TV box:

Himedia Q10pro

Android 7

Rooted with latest rclone magisk.

but stopped few months now...

Have raised an issue on your github https://github.com/Magisk-Modules-Repo/com.piyushgarg.rclone

but no response so far.

Please
[Miscellaneous Android Development] ddogishere:
This is ridiculous is literally been abandoned mods might as well close this thread
[Miscellaneous Android Development] agnostic-apollo:
Maybe your current fusermount binary is the one compiled for termux. Replace the fusermount binary provided by the module with the one from [here](https://github.com/agnostic-apollo/fuse/releases) for your arch and try again. Find arch with `arch -m` command. The module is using the same ones since july '19, maybe yours didn't get updated for some reason. I don't use magisk or the module so can't help much.
[Miscellaneous Android Development] ddogishere:
Hi Thx for helping, I'm a novice so how do i do that? Thank you for patience in helping me.

Little Rant:

btw is not u my gripe is, is [MENTION=289981]Geoffrey[/MENTION] that guy is a blanker, he creates something noob friendly(magisk rclone) which i am grateful for but don't bother with users issues, check out his github no response to issues at all. I've seen he's been online here but doesn't even responds to the pm I've sent him, he's total blanker he might as well remove it from magisk
[Miscellaneous Android Development] agnostic-apollo:
There should be binary directory in the magisk module directory for the module. Replace the fusermount there and set executable permissions 0755 to it.

The issue could be related to recent changes in magisk though implemented by john wu. I don't have much time to look into it all.

I just noticed the issues too before posting. Maybe he is busy or doesn't want to engage with amateurs or he could have any number of reasons, maybe he saw the issues and is going to fix the issues when he has time, he is committing to the repo lately so likely possible, can't really comment on it. Be patient.
[Miscellaneous Android Development] ddogishere:
Thx will try that.

Yeah you maybe right. But still it will be nice of him to just drop on here or github or even reply to pm to say he's busy and will look at it later.

---------- Post added at 10:55 PM ---------- Previous post was at 10:45 PM ----------

Hi Thx for the help i replace the fusermount in magisk module(root/data/adb/module) with the your one(using my arch of armeabi-v7a-himedia q10pro), i cab see the cloud mount folder but is not showing my gdrive files just a for called .nomedia.

I am ready to abandon magisk rclone, is there a step by step to start again and get rclone to mount on my box, it's rooted.

Many thanks.
[Miscellaneous Android Development] agnostic-apollo:
check here.
[Miscellaneous Android Development] ddogishere:
Cheers m8 will give that a shot and report back.
[Miscellaneous Android Development] ddogishere:
Hi m8 how do fix rootfs not user mountable in fstab? I tried it with su first but then when i get to creating the gdrive folder it permission denied

---------- Post added at 12:59 AM ---------- Previous post was at 12:22 AM ----------

Ok so i manage to follow you script and it created the gdrive folder, now how do i config it show my files?

Thx
[Miscellaneous Android Development] mirfatif:
I'm not sure what exactly you want to achieve, see this if it helps.

Also related: https://android.stackexchange.com/q...folder-inside-sdcard-with-correct-permissions

And with due respect, I won't be able to help you on basic usage of shell or commamds like "mount" and "mkdir". Please don't get annoyed. Community members here and on other forums just help each other, usually without getting any direct benefits. But no one is bound to address each and everything others ask. For basic learning a web search mostly helps.
[Miscellaneous Android Development] ddogishere:
All i want is to mount my gdrive as a accessible folder to my rooted android tv box, it was working before with magisk rclone but now all i get inside is an empty folder.

Tried your method even installed the linux pkg but like others said you get "No command found".
[Miscellaneous Android Development] ddogishere:
OK so I have gone back to rclone magisk because all the above suggestions did not work and as the magisk module was working before...

This is the log off magisk module:

2020/06/03 07:33:54 mount helper error: CANNOT LINK EXECUTABLE "fusermount": library "libandroid-support.so" not found

2020/06/03 07:33:54 Fatal error: failed to mount FUSE fs: fusermount: signal: aborted

Any ideas how to fix this?
[Miscellaneous Android Development] mirfatif:
Package name is "util-linux", not "linux", and it's to provide you "nsenter" command. Which command not found?

---------- Post added at 01:36 PM ---------- Previous post was at 01:34 PM ----------

Be more specific and explain "did not work". So that I may figure out what's going wrong.
[Miscellaneous Android Development] ddogishere:
OK so i did installed pkg install util-linux, then typed your code:

$ su --mount-master -c rclone mount GDrive: /mnt/runtime/write/emulated/0/GDrive --gid 9997 --dir-perms 0771 --file-perms 0660 --umask=0 --allow-other

And this is what I get:

/system/bin/sh: rclone: not found

But I know rclone is there with the rclone version I get the latest rcone installed.
[Miscellaneous Android Development] agnostic-apollo:
try

su --mount-master -c export PATH=/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets; export LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib; rclone mount GDrive: /mnt/runtime/write/emulated/0/GDrive --gid 9997 --dir-perms 0771 --file-perms 0660 --umask=0 --allow-other
[Miscellaneous Android Development] ddogishere:
This is the outcome:

2020/06/03 09:13:23 Failed to create file system for "GDrive:": didn't find section in config file
[Miscellaneous Android Development] agnostic-apollo:
oh boy, run "rclone config" command and replace "GDrive:" with the name of your rclone remote that you configured.
[Miscellaneous Android Development] mirfatif:
[MENTION=5537582]ddogishere[/MENTION] I think you need a complete step by step guide. Consider asking a question on https://android.stackexchange.com. I'll try to answer in detail if no one else does.
[Miscellaneous Android Development] ddogishere:
2020/06/03 09:32:15 Fatal error: Can not open: /mnt/runtime/write/emulated/0/rclone_gdrive: open /mnt/runtime/write/emulated/0/rclone_gdrive: permission denied

---------- Post added at 09:45 AM ---------- Previous post was at 09:34 AM ----------

Totally understand but I've done all you and apollo have asked, got probably 3 types of rclone mount on my device now(yours, apollo & magisk) with my system now termux in a confused mode right now and still...

All i want which I've stated from the beginning is to mount and view my gdrive as a accessible folder.

---------- Post added at 10:10 AM ---------- Previous post was at 09:45 AM ----------

Done.

https://softwarerecs.stackexchange.com/questions/74834/rclone-mount-android
[Miscellaneous Android Development] jutphaas:
I get an error

Using rclone installed by magisk 20.4 on xperia xz2 compact Android 9

type = dropbox

token = {"access_token" deleted this ,"token_type":"bearer","expiry":"0001-01-01T00:00:00Z"}

--------------------

y) Yes this is OK (default)

e) Edit this remote

d) Delete this remote

y/e/d> y

2020/07/19 11:51:11 Failed to save config after 10 tries: Failed to create temp file for new config: open /.rclone.conf683676049: read-only file system

1|:/storage/emulated/0/Android/data/com.sonelli.juicessh/files #

What can i do?
[Miscellaneous Android Development] player594:
Wait for it to be updated with a fix for config file location. The root location "/.rclone" can't be created because of permissions. It should be saved to sdcard/.rclone
[Miscellaneous Android Development] mirfatif:
Set $HOME environment variable or use "--config" option. By default rclone reads/saves config file from/to "$HOME/.config/rclone/rclone.conf".
[Miscellaneous Android Development] darfri:
I cannot find this in the rclone config wizard.
[Miscellaneous Android Development] darfri:
Did you find a solution?
[Miscellaneous Android Development] player594:
Nope. Not updated yet
[Miscellaneous Android Development] mirfatif:
Mount it manually from comandline. It's simple: https://android.stackexchange.com/q/225604/218526
[Miscellaneous Android Development] player594:
That's all well and good but my rooted Shield K1 says it can't exicute mnt.
[Miscellaneous Android Development] mirfatif:
What does "exicute mnt" mean?
[Miscellaneous Android Development] player594:
I just mean terminal says mnt or mm or mount master not found when I try to run those terms
[Miscellaneous Android Development] mirfatif:
Doesn't make sense. Show me the exact command you execute and the exact error message it throws.
[Miscellaneous Android Development] player594:
I'll have to do it when I get home. At work the moment.
[Miscellaneous Android Development] darfri:
Did you type in "su" command in termux for start before going with mount commands?
[Miscellaneous Android Development] player594:
First thing I did.
[Miscellaneous Android Development] ForForkSake:
Successfully using this on my Redmi Note 9s. (Dynamic partitioning)

I too was getting the permissions error... Simply running the command

mount -o remount,rw /

Then running rclone config again, everything works great. Xfered 100GB from external storage to OneDrive only issue i had is my slow upload speeds. :silly:
[Miscellaneous Android Development] iooxda:
Has anyone that mounts rclone on Android using Fusermount been able to preserve the modified timestamp? Whenever I copy a file into an rclone mount I always lose the modified time and instead get the current date and time.

This presents a major problem for anyone trying to do a sync or other backup project using an rclone mount.

I have tried different file managers, different file commands etc. Nothing appears to work.

Is it possible that the Android fusermount does not have the ability to preserve the timestamp at all? I am using the implementation from the awesome Magisk project here: https://github.com/Magisk-Modules-Repo/com.piyushgarg.rclone/
[Miscellaneous Android Development] mirfatif:
There must be some problem with the tools/apps you are using. Modified time is updated with all three of "touch", "cp" and "mv":

~$ mkdir /sdcard/RClone
~$ /sbin/su -c 'rclone --config /sdcard/rclone.conf -v mount --daemon --vfs-cache-mode writes --cache-dir /sdcard/rclone_cache GDrive: /mnt/runtime/write/emulated/0/RClone --gid 9997 --dir-perms 0771 --file-perms 0660 --umask=0 --allow-other'
~$ touch /sdcard/RClone/test
~$ stat -c %y /sdcard/RClone/test
2020-11-15 22:45:22.431000000 +0500
~$ touch /sdcard/RClone/test
~$ stat -c %y /sdcard/RClone/test
2020-11-15 22:45:39.025377634 +0500
~$ touch /sdcard/test
~$ cp -p /sdcard/test /sdcard/RClone/
~$ stat -c %y /sdcard/test /sdcard/RClone/test
2020-11-15 22:45:54.699005771 +0500
2020-11-15 22:45:54.699000000 +0500
~$ touch /sdcard/test
~$ stat -c %y /sdcard/test
2020-11-15 22:46:40.495461482 +0500
~$ mv /sdcard/test /sdcard/RClone/
~$ stat -c %y /sdcard/RClone/test
2020-11-15 22:46:40.495000000 +0500
[Miscellaneous Android Development] iooxda:
Thank you for taking the time to confirm this. I have been reading threads that suggested that the google implementation of FUSE does not preserve the mod time, that it was a long standing issue that has not been fixed.

I spoke with the rclone dev and he confirmed that the issue is due to my cloud provider not supporting mod time updates specifically when when syncing to a cache, so a bit of an outside case..

---------- Post added at 10:54 PM ---------- Previous post was at 10:12 PM ----------

Is anyone familiar with the magisk rclone module (https://github.com/Magisk-Modules-Repo/com.piyushgarg.rclone/)? [MENTION=289981]Geoffrey[/MENTION]?

There is a script inside it "syncd.sh" that I am trying to better understand but I am having limited success with it.

Specifically, I do not believe the inotifywait part is working on my device:

if [[ ! -e ${SYNC_PENDING} ]]; then

${HOME}/inotifywait "/storage/emulated/${PROFILE}/${SYNCDIR}" -e modify,create,moved_to,close_write -q >> /dev/null 2>&1 && touch ${SYNC_PENDING}

I believe the intention of this code is to monitor a directory for changes using inotifywait and fire an rclone copy command command.

inotifywait in a binary included in the magisk module. If I run it as a stand alone I get this:

CANNOT LINK EXECUTABLE "inotifywait": library "libnotifytools.so" not found.

Does this mean I need to install the library it is asking about? Any ideas how this can be done?

The script looks like a really intelligent solution for automatically backing up files on android but without it inotifywait part working, the script just loops over and over hammering my remove provider several times every second with file list commands which could lead to throttling or a ban.
[Miscellaneous Android Development] mirfatif:
My comment to your question: https://android.stackexchange.com/q...inary-i-am-getting-an-er#comment303471_231138
[Miscellaneous Android Development] iooxda:
Thank you for your assistance. I did get it working with the external library.
[Miscellaneous Android Development] killerlearner:
Hey Guys,

I Am trying to setup it in my device Redmi note 8 pro Miui a9 rom but I can't setup it says Failed to create temp file for new config: open /.rclone.conf186269046: read-only file system

When I try to make config. Anyone know how can I solve it.

Edit: Fixed that issue but still cant use any remote cuz only blank folders 😔. Any solution anyone have. 🤔
[Miscellaneous Android Development] mirfatif:
You definitely cannot create config file in rootfs (that's not accessible to apps for writing). Create config in app specific directory or in shared storage.

By the way you don't need to write everything in bold :)
[Miscellaneous Android Development] killerlearner:
I changed it to Global but still can't see anything in folder 😔. Any solution.
[Miscellaneous Android Development] mirfatif:
After changing to Global, Force Stop the app you are using to run the commands so that it gets new su shell.
[Miscellaneous Android Development] park130:
I have been trying for weeks to get rclone to work on an Android 9. I am getting this error. Fatal error: failed to mount FUSE fs: fusermount: signal: bad system call. Can someone please help me with details on how to mount a google drive on a Android? Please help.
[Miscellaneous Android Development] mirfatif:
seccomp blocks syscalls for normal apps. Run with root. If still doesn't work, your root is limited.
[Miscellaneous Android Development] MtnX2:
I'm running Magisk (and App) v23.0. I installed rclone-mount v1.16 by piyushgarg using Magisk.

1|:/data/ssh/root # ls -la /data/adb/modules/com.piyushgarg.rclone
total 244
drwxr-xr-x 3 root root 4096 2021-10-10 23:19 .
drwxr-xr-x 8 root root 4096 2019-04-16 23:02 ..
drwxrwxrwx 3 root root 4096 2021-10-10 23:19 .config
-rwxr-xr-x 1 root root 55256 2021-10-10 23:18 fusermount
-rwxr-xr-x 1 root root 306 2021-10-10 23:18 fusermount-wrapper.sh
-r-xr-xr-x 1 root root 67608 2021-10-10 23:18 inotifywait
-rw-r--r-- 1 root root 70696 2021-10-10 23:18 libandroid-support.so
-rw-r--r-- 1 root root 444 2021-10-10 23:18 module.prop
-rwxr-xr-x 1 root root 0 2021-10-10 23:18 rclone
-rwxr-xr-x 1 root root 4813 2021-10-10 23:18 rclonew
-rwxr-xr-x 1 root root 14543 2021-10-10 23:18 service.sh
-rw-r--r-- 1 root root 0 2021-10-10 23:18 skip_mount
-rwxr-xr-x 1 root root 2028 2021-10-10 23:18 syncd.sh

Obviously, the rclone binary should not be zero bytes. I get this error when running it:

:/data/ssh/root # rclone config
sh: rclone: not found

Any ideas about what I did wrong?
[Miscellaneous Android Development] MtnX2:
I made some progress. After installing, rclone can correctly list all the files at my remote server. But I am not getting the fuse mounts at any of the locations listed in the readme.

I opened this issue with a detailed list of all my steps:

Requesting help to troubleshoot where my install is going wrong. No automatic fuse mounts · Issue #107 · Magisk-Modules-Repo/com.piyushgarg.rclone

If anyone can assist, I am grateful.
[Miscellaneous Android Development] MtnX2:
OK, I seem to have both of my devices working with rclone-mount and pCloud. Latest update:

How to automate rclone-mount without Termux or Magisk? - Android Enthusiasts Stack Exchange
[Miscellaneous Android Development] gfrank227:
Hi all, I am in need of some assistance. I am trying to install fusermount from this thread. I found the instructions and am trying to execute the config and make commands to install but i am getting a series of errors. I am getting errors of permission denied. To make a long story short, it gives me the following error:

cannot create regular file './config.rpath': Permission denied.

The program's files are located in the termux $home directory. If somebody can give me the steps to install this correctly, I'd be grateful. I'm relatively new to linux commands. Thanks.

My ultimate goal is to be able to mount my NAS storage on my home network as a local directory on internal storage, so if i'm on the wrong track completely (which is possible), then any help in this regard would be appreciated. thanks.

EDIT: I am making some progress. I ran chmod and then i was able to run the makeconf.sh command. The command for ./configure returns an error saying that the c compiler (gcc?) cannot create executables.
[Miscellaneous Android Development] MtnX2:
When I did this I did not have to compile any binaries from source.

Are you a developer? If not, and since you are relatively new to linux commands, do this without compiling from source. I'm not sure why you are compiling from source.
[Miscellaneous Android Development] gfrank227:
How?
[Miscellaneous Android Development] MtnX2:
My answer is at the Android Enthusiasts link I posted previously (immediate above your message). You'll see from the comments there that my solution is not the perfect solution, but it worked for me. It's still working. That's the best answer I can offer you.
[Miscellaneous Android Development] gfrank227:
Thanks for your reply. This seems way too complicated for me. First few command all have errors. I assume it's me and not your instructions. I suppose I'll have to give up. :-(
[Miscellaneous Android Development] MtnX2:
I found it very complicated and I have a lot of Linux experience (although not as much with Android).

Regarding my commands, I first did it in a trial & error way on one phone. But then I did it a second time on another phone and made the approach much more organized and repeatable. Because I completed the 2nd phone this way, I know the approach works. But my commands in that post are not meant for copy-paste.

My posts are meant to be part of the larger conversation on this topic, meaning you need to read the other posts too. In particular, I said:

I would like to find an Android developer with the skills to make this solution super simple for any user. I would consider hiring this person to create the solution, but that would require enough users who would pay for the app we create so that I could at least break even on the investment. Or maybe we need to do some kind of crowd-funding program. I'm interested in creating a really good solution for rclone mount on Android, in whatever way the community supports.

Edit: If we could come up with an entirely free and high-quality solution, that would be great But that would obviously require a developer who is willing to volunteer and the ability to make the solution happen without a financial investment. I suggested a paid solution as one alternative if we cannot make the free solution happen. I was thinking that offering a pay a developer might lead to a really good solution, but I guess that depends on how the community feels about all this.
[Miscellaneous Android Development] gfrank227:
While I would not be in a position to make an investment, I would certainly commit to buying such an app at a reasonable price. According to the research I have done, there used to be several apps that did this or a form of it; but they seem to have been removed from the play store or otherwise have died.
[Miscellaneous Android Development] MtnX2:
I am willing to make an investment, but I need to find the right Android developer to work with, and I need to understand what kind of solution the community will really support.
[Miscellaneous Android Development] gfrank227:
Thanks for not making me feel stupid...lol

Is there any ready way to create a symbolic link with the target being an Nas drive instead of a local folder? I assume there isn't because someone would have thought of it already...
[Miscellaneous Android Development] MtnX2:
In Linux symbolic links are just text strings. They can point to something but they do not implement filesystem or network connectivity functionality. (If what they point to is not accessible, you have a broken link.) You need a **network file system** to actually connect your NAS to your device. Network file systems are like NFS, Samba (CIFS), SSHFS, etc. rclone-mount uses FUSE (Filesystem in Userspace). That's why you need both the rclone binary and the fusermount binary. When I set up rclone mount, I connected to my NAS using SSH. FUSE facilitates the SSHFS (SSH Filesystem) connection.

I am very happy with this functionality. It's a game-changer IMO. I believe Android should have this functionality baked in, honestly.
[Miscellaneous Android Development] gfrank227:
I might be making progress. Termux now recognizes both rclone and fusermount command. But I get the following error when trying to mount:

Fatal error: failed to mount FUSE fs: fusermount: signal: bad system call

Any advice?

EDIT: OK putting sudo I front of the command works. I've also got it to confirm that it reads the config file. But it simply hangs and does nothing. Can you confirm the exact command I should use?

I'm trying to put the nas to /storage/emulated/0/test.

Thanks

Edit 2: I'm almost certain I have the right command but when I put it in termux just hangs and does nothing. If I run it as root directly without sudo, it doesn't hang but it doesn't work either.