[HowTo] Configuring rclone mount on NVIDIA Shield to replace Plex Cloud

Hmm you are really close. I’m trying to figure out where I might have skipped a step in the guide or your permissions are wrong.

Yeah FX and ls -l sees them under /data/media/0/Drive but not /data/media/0/Mount.

That is expected.

/sdcard (/storage/emulated/0) shows same as plex visualisation.

This is true even with FX or ls?

Is the owner critical for the fbind because you specify media_rw in your doc but I could only get the rclone to mount to Drive when its owner was set to root despite having --allow-other flag?

Same here. When rclone mount is enabled the permissions are changed to root. Take a look:

/storage/emulated/0/Drive is the main filesystem available to all other apps. I think it also represents the wrapper file system for /data/media/0/ so that all Android apps can read natively without root access.

Try creating the folders in /data/media/0/ and set the proper permissions. Does Plex see both folders without rclone mount enabled?

True with ls or FX, once I changed perms to root was all good and, as you say, your perms also set to root for Drive

So I revert Mount to media_rw??

Do I need to manually create the Drive and Mount folders under /storage/emulated/0 because no, neither is appearing there.

Plex sees all the files under /storage/emulated/0 (/sdcard)


Virus-free. www.avast.com

Do I need to manually create the Drive and Mount folders under /storage/emulated/0 because no, neither is appearing there.

No. With cd /data/media/0 && mkdir test I can see test in Plex under “Internal Shared Storage”. It also appears in /storage/emulated/0/ and /sdcard/ without changing any of the permissions. It sounds like this isn’t true for you, so something deeper must be going on. :confused:

Do you have an external drive mounted as internal storage maybe?

I have a USB key as adopted storage for the Plex system files (otherwise the Plex library will blow the internal “16” GB of storage)

Hm ok. Either try removing the USB key (you don’t need it for this anyway, files get cached and are removed when the stream ends) or if you need to keep it try creating the folder manually on /storage/emulated/0/ and launch your rclone / fbind on there.

Yeah, tried that also but ran short of time because was just visiting my friend. I have a Shield also so might root that and try it there myself. You need the USB key for the metadata for Plex. If I replace my VPS server, based on that it will require about 100 GB for the Plex metadata (without video preview thumbnails).

Yes, I have a 1TB external drive for all the metadata and music, but I made sure not to convert it to adopted storage. That might be your problem :wink:

Interesting, didnt even know that was an option …


Virus-free. www.avast.com

The fbind command doesn’t seem to do anything when I run it, it seems to give me a few new spaces and < at the end like it is looking for more from the command. I have ran fbind -b /source/path /dest/path & and also the fbind -b /destpath /sourcepath & and when do a listing of the /sourcepath it gives me the files but not on the destination path. No other applications can see the files. Can anyone tell me what I need to do to correct this? I am using version 7.2.3 of the dev build so I have root. I haven’t been able to get the adb root commands to work but from what I read I need a version lower than 7.2 to get this to work.

It seems to me that the fbind command is just hanging. I also tried to mount the partition with a terminal emulator and as su -M and it produces the same results. Do I need any special user parameters or anything?

I ran into similar trouble with fbind and other applications “seeing” the rclone mount folder because of Android’s locked permissions. You are restricted to the directories you can mount to. I haven’t figured out how to do it another way.

You need to make sure your /destpath is in a folder that is replicated as a readable/writeable folder in Android. Did you follow the instructions exactly or are you trying to change the directories?

For me, everything is viewable in /storage/emulated/0/ but I’m not actually modifying that directory at all because /data/media/0 (not rewriteable) is replicated in /storage/emulated/0/ (rewriteable).

fbind -b /you/wont/see/this/dir /you/should/see/this/after/rclonemounting

I updated the guide at the request of a few people clarifying some things. The guide still works with the latest version of everything. Apparently, SDCardFS is coming to the Shield in future releases which might change things substantially.

2 Likes

I do not understand what am I doing wrong, does this changes with v8.0.1?
I can only see gdive content in /data/media/0/Drive but its permission is root:root
I created folders in step 5 using tsu.

how do I make sure fbind is working?

Hi, does it still work on newest nvidia shield please ?
I want to do : NSP + PMS + Gdrive

I’m not sure. I have the 2017 Shield not the 2019 Shield. If you can find out how to root the 2019, I’m fairly certain it works.

1 Like

Hi dude, thanks for your reply…Maybe you can help me, here is the thing : I am currently under config: PMS on VPS + Gdrive.
It does not work too badly, however I would like to have more freedom by increasing my reading capacity, and especially to avoid restarting PMS on my VPS every day.

That’s why I would like to get an NVIDIA SHIELD TV PRO. The problem being that I do not know if in addition to serving as a server it will be able to access my GDRIVE. You understood it, I would like the PMS on NSTV PRO to be able to connect to my drive without intermediary. Please help :slight_smile:

Thank you in advance !!

Yes it will work if you root your Shield (I’m not sure where to find a guide on the latest 2019 Shield), install Magisk, and get this Magisk module.

Hi.
I solved all the steps until execute rclone.

Finally I could execute it (despite it’s a 32bits arch) and I thought that I won when I saw the GDrive directories doing an “ls” command

But later, in Kodi (same think will happen on Plex for sure) I discovered that it has no visibility of anyone:

I tried a “chmod”, and I was thinking with a “chown”, because it seems like a permissions issue (as root is the owner of this folders as image shows:)


(by the way, interesting these “total 0” isn’t it?)

But if I want to know the user that executes kodi, with an “ps aux | grep kodi” nothing is showed (and it seems here is not showing all the process of the Android System).
Has anyone solved this?

I’m not sure the root cause of your exact issue.

Can you see the folder via ls in

/storage/emulated/0/rclone

Either way, instead of going through this I recommend you just install this Magisk module: GitHub - Magisk-Modules-Repo/com.piyushgarg.rclone

Hi. Thanks for the response.
I used the installation of this Magisk module to execute rclone… I have to say it doesn’t work as it says:
From one hand, it’s true that it mounts automatically the remotes at startup, firstly on /mnt/cloud (mounted yes, but in a directory still not visible for the applications)


(until here, all ok. And I stopped to execute rclone mount command by myself when I discovered this, so I deleted my custom rclone folder and I located the rclone.conf on the directory they specify, and also used the custom params for an especific remote)

But on the other hand, it doesn’t mount/bind the remotes on the /sdcard/cloud as it says on the main Github description and in the issue #5.


This is the only step that I miss and I need. I’m very close but can’t reach it.

I don’t know what I’m doing wrong… I opened an issue on their Github repo, but I see that they are not responding the issues since long time ago… hehe
Thanks for your support again

I tried this route before and had to root my shield and do all sort of all things… running rclone and encfs in nvidia shield. its a totally mess. it works but usually breaks after shield update

i just resorted having my shield as dedicated plex server and a RPI 3/4 (doing all the dirty works) on the side running rclone mount on my encrypted files on gdrive, and using encfs reverse to decrypt gdrive mount and share the final decrypted mount by samba in shield. it works really well. i havent had any problem even with shield fw upgrade or plex server update.

1 Like