Has anyone mounted a G Suite remote drive to there synology or qnap plex server, I want to get a Nas from either of these 2, but need to know if it is possible, I am currently in the process of uploading 4tb of data to G Suite and want to be able to utilise it, as I intend to move away from a windows 10 based plex server using file stream.
I can only speak for synology, as that is the only nas I have.
I have my G Suite drive mounted on my Synology DS1815+
I use rclone to mount the G Suite drive, and then the plex libraries are set to folders in the mounted G Suite Drive.
In order to get it to work I did have to add the synocommunity repo to the Synology Package Center in order to install sshfs, (as this was the easiest way I found to get the fuse libraries installed)
And you will need to comfortable using the command line.
@blim5001 Can you put step by step instructions on how you did this or the guide you used? I am trying to get this to work on my DS918+, but I am having a ton of issues. I can’t seem to find a good guide to setup rclone > plexdrive/rclone cache.
Thanks.
How far have you got?
There is a load of useful info that @per_PLEX_ed has written up here https://www.techperplexed.ga/
While a lot of it is to do with running on a vps, most of the rclone stuff should be just as relevant to running on your nas
in particular: https://www.techperplexed.ga/2017/04/part-4-setting-up-rclone-andor-plexdrive.html
I use rclone with the vfs options as cache just adds another layer of complexity and is not really necessary since the vfs options became available
So I followed the instructions you sent and skipped over adding the Client Secret and ID per the documentation. If I don’t have to use Plexdrive that is fine, but how do I setup vfs or it is baked in already? Also, how do I get past the API ban if I didn’t enter API credentials when setting up rclone per documentation.
Also, all of my 4k content that I want this to work on is already in G-Suite. I am just trying to get the API stuff to work, so I can consistently play my content from Google Drive. Does that make sense?
Hi, VFS is baked in to rclone, it’s just to do with your rclone mount settings.
this is my rclone mount command
/path/to/rclone mount gDrive: /path/to/mount/gDriveFiles --allow-other --dir-cache-time 672h --vfs-cache-max-age 675h --vfs-read-chunk-size 64M --vfs-read-chunk-size-limit 1G --buffer-size 32M
In this example gDrive is whatever you called your google drive when you set it up in rclone and gDriveFiles is the folder you are mounting your google drive on.
(Works for me but YMMV, There are plenty of other examples in the threads about vfs on the rclone forum https://forum.rclone.org/)
I have just started playing a 4K file in PMP, and that is playing (Direct play) just fine, but you do need a fast internet connection or 4K will not play well (I had buffering problems when I only had 60Mbs download speed, but now have 350Mbs and it’s all good)
Although I can not guarantee it, but using VFS you should not get hit by the api bans. But it could depend on the size of your library. (fwiw I have not been hit by any bans since using VFS)
What is the usual path on Synology for /path/to/mount/ ?
I created mine here:
/volume1/media/gDrive
(I have a Shared folder setup via the DSM called media, so I just created a folder in there, that way I can browse to it from my other machines)
But it’s wherever you want it to be as long as you can point plex to it
This is what appears at the bottom after putting in the command. “Command mount needs 2 arguments maximum”. Is that correct?
No, that should not happen, is it all on one line?
Do you want to show me your mount command, or send it in a PM if you would prefer not to paste it here.
/usr/bin/rclone mount Gdrive: /volume1/Plex/Gdrive --allow-other --dir-cache-time 672h --vfs-cache-max-age 675h --vfs-read-chunk-size 64M --vfs-read-chunk-size-limit 1G --buffer-size 32M
Hmm, just copied that line, and changed a couple of things to make it work in my environment and it mounted my drive
I would possibly not have the mount inside that Plex directory. lets try creating a folder /volume1/gdrive and try mounting it there.
Now we will try breaking it down a bit.
So once you have created the folder /volume1/gdrive
then just try just this bit of the mount command:
/usr/bin/rclone mount -v Gdrive: /volume1/gdrive &
(the -v will just make rclone output more info and the & will put into the background)
If that does not throw up any errors, then try
ls /volume1/gdrive
and see if it can see the files
then unmount it with this command:
fusermount -uz /volume1/gdrive
If it does mount DO NOT point plex at it yet as we still need to get the other settings applied
When I type /usr/bin/rclone mount -v Gdrive: /volume1/PlexCloud &, I get the below message:
“Fatal error: Directory is not empty: /volume1/PlexCloud If you want to mount it anyway use: --allow-non-empty option”
When I do ls /volume1/Plexcloud, it shows the folder @eaDir
If I add --allow-non-empty option, I get the “Command mount needs 2 arguments maximum” message.
Also as I noticed before, none of my movie files are stored locally on my NAS. They are already on Google Drive.
Those blinking @eaDir directories 
I would just delete that @eaDir dir
ok so first off run this:
fusermount -uz /volume1/PlexCloud
to make sure it’s not mounted
then
cd /volume1/PlexCloud
run
ls
just to make sure there is nothing else apart from the @eaDir dir in that directory
and delete that @eaDir
rm -r \@eaDir
(check that it has gone)
then try the mount command again
/usr/bin/rclone mount -v Gdrive: /volume1/PlexCloud &
Alright so I deleted the @eaDir directory and when I ran the mount command I got the Folder not empty message, but when I did ls it’s showing my 4kMovies folder from Google Drive.
well at least that’s some progress 
so now un mount it with:
fusermount -uz /volume1/PlexCloud
and then while in the /volume1/PlexCloud directory run
ls -la
to see all hidden files and see if there is anything else in there
It says
total 0
d---------+ 1 root root 0 Sep 14 14:53 .
drwxr-xr-x 1 root root 360 Sep 14 14:22 …
ok, so I am not quite sure why you are getting the Folder not empty message if there is nothing in it.
So now we need to workout why it is not accepting the flags.
so while the drive is not mounted try adding --allow-other
to the mount command, but type it in manually rather than copy paste
(what program are you connecting to nas with?)
I am using Terminal on my Mac. Am I suppose to type the mount command from root or /volumes1/PlexCloud?
When I do it from /volumes1/PlexCloud, I get
[1] 7787
Ok so your on a mac as well, same as me
i would probably come out of the actual directory before running the mount command
so lets do these steps
if you are in the /volumes1/PlexCloud type
cd ..
Which should put you into the volume1 directory
type:
mount
to see what is mounted
if the drive is mounted you should see something like this in the list
Gdrive: on /volume1/PlexCloud type fuse.rclone…