Google drive mounted in Windows/Linux

Hey all

Am curious about using these Microsoft or Google Drives to host some media... Have an Oracle Ubuntu VPS which should be able to run Plex or Emby and pull from the Cloud Drives , and the client devices pull from the VPS. Also which of the Drives is best in terms of longevity.

This should work Just not sure how ? I'd be able to do this on Windows but not sure how to in Linux

Thanks

I use https://swizzin.ltd/ on my oracle box.

If you take the ZA one no need to use a reverse proxy if you take an international one then you can setup a cloudflare reverse proxy for better speeds.

You can use either Onedrive or Gdrive and mount it with rclone. Once mounted your apps likes sonarr and radarr can copy files to it automatically once downloaded and with the webhooks it can tell plex to scan the imported files so it's available for viewing immediatly.
 
I use https://swizzin.ltd/ on my oracle box.

If you take the ZA one no need to use a reverse proxy if you take an international one then you can setup a cloudflare reverse proxy for better speeds.

You can use either Onedrive or Gdrive and mount it with rclone. Once mounted your apps likes sonarr and radarr can copy files to it automatically once downloaded and with the webhooks it can tell plex to scan the imported files so it's available for viewing immediatly.

Thanks for the assistance @cavedog , I have an Ampere one locally , how do you get rclone on Ubuntu to work or is there something easier?

Unable to get Plex Media Server on ARM Ubuntu running , the normal way makes it run as a client

Anyone had luck or can guide me
 
Last edited:
Thanks for the assistance @cavedog , I have an Ampere one locally , how do you get rclone on Ubuntu to work or is there something easier?

Unable to get Plex Media Server on ARM Ubuntu running , the normal way makes it run as a client

Anyone had luck or can guide me

That is why I used https://swizzin.ltd/

It does everything for you. In terms of assisting with a manual install I can't be much help there sorry.
 
1651255582971.png

Any reason why the folder shared by rclone not being allowed to be selected under the plex libary
 
Permission issue.

Did you mount as root or user?
Seems user as I did not use sudo and I am doing everything under user "ubuntu"

Edit: reinstalled and added a flag to the rclone config and plex has started scanning my OneDrive :D
 
Last edited:
Seems user as I did not use sudo and I am doing everything under user "ubuntu"

Edit: reinstalled and added a flag to the rclone config and plex has started scanning my OneDrive :D

Okay great. It's the -allow other flag I think.

You using the Dev sub for OneDrive?
 
Okay great. It's the -allow other flag I think.

You using the Dev sub for OneDrive?

Yes I am , although I must say scanning the library is taking really long it’s been at it for 8 hours now and it’s only half way I understand it won’t be the same as local but it’s a rather small library with 54 series
 
Yes I am , although I must say scanning the library is taking really long it’s been at it for 8 hours now and it’s only half way I understand it won’t be the same as local but it’s a rather small library with 54 series

Remember to increase the storage to 5TB for drives.

What is your mount flags? If you use cache mode reads and writes it should speed it up a bit.
 
Remember to increase the storage to 5TB for drives.

What is your mount flags? If you use cache mode reads and writes it should speed it up a bit.
These are my flags: rclone --vfs-cache-mode writes mount OneDrive5TB: ~/OneDrive --allow-other

not sure if it is 100% correct, as it takes very long to play something that plex gives up and throws a network error, playing it from VLC directly on the machine also took long but eventually played but not sure how to solve the plex issue

Edit: it does play via Plex but it takes a whole 10 minutes to start playing and the buffer bar is not far ahead
 
Last edited:
These are my flags: rclone --vfs-cache-mode writes mount OneDrive5TB: ~/OneDrive --allow-other

not sure if it is 100% correct, as it takes very long to play something that plex gives up and throws a network error, playing it from VLC directly on the machine also took long but eventually played but not sure how to solve the plex issue

Edit: it does play via Plex but it takes a whole 10 minutes to start playing and the buffer bar is not far ahead

This is my mount.


screen rclone mount gdrive0: /home/cavedog/gdrive0/ --allow-other --buffer-size 3G --dir-cache-time 30m --timeout 1h --umask 002 --daemon --vfs-read-chunk-size 256M --vfs-read-chunk-size-limit off --vfs-cache-mode writes


You can adjust the times and sizes a bit but works well for me.
 
Sorry, but I'm a bit blind here. The storage is created as 1tb per "user" and I don't see any option to increase storage size?


Basically go here https://go.microsoft.com/fwlink/?linkid=2185072 signin with the admin user.

Click OneDrive Storage limit and make is 5120 which is the max.

You may need to increase it manually for each user already created.
 

Basically go here https://go.microsoft.com/fwlink/?linkid=2185072 signin with the admin user.

Click OneDrive Storage limit and make is 5120 which is the max.

You may need to increase it manually for each user already created.
Thanks. I managed to sort it out this morning, after discovering that each user must be updated individually.
 
This is my mount.


screen rclone mount gdrive0: /home/cavedog/gdrive0/ --allow-other --buffer-size 3G --dir-cache-time 30m --timeout 1h --umask 002 --daemon --vfs-read-chunk-size 256M --vfs-read-chunk-size-limit off --vfs-cache-mode writes


You can adjust the times and sizes a bit but works well for me.

I’ll try this exact one and see If it works … hopefully it does
 
This is my mount.


screen rclone mount gdrive0: /home/cavedog/gdrive0/ --allow-other --buffer-size 3G --dir-cache-time 30m --timeout 1h --umask 002 --daemon --vfs-read-chunk-size 256M --vfs-read-chunk-size-limit off --vfs-cache-mode writes


You can adjust the times and sizes a bit but works well for me.

Thanks @cavedog like to see what others are using this running as cron jobs.

I have 2 mounts

rclone mount --daemon --allow-non-empty --allow-other --vfs-cache-mode=minimal GooDriveCrypyted: /media

Plex

rclone mount --daemon --allow-non-empty --allow-other --dir-cache-time 103h --vfs-read-chunk-size 16M --vfs-read-chunk-size-limit 2G --buffer-size 1024M GooDriveCrypyted: /home/green/media2
 
I see when i upload to OneDrive from a browser it maxes my connection at 500Mbps upload.

Gdrive is around 200Mbps and when I use rclone for both it's even slower. :unsure:

Even using the OneDrive app works better. Might need to move from Google to OneDrive.

Screenshot 2022-05-02 162229.png
 
Last edited:
This is my mount.


screen rclone mount gdrive0: /home/cavedog/gdrive0/ --allow-other --buffer-size 3G --dir-cache-time 30m --timeout 1h --umask 002 --daemon --vfs-read-chunk-size 256M --vfs-read-chunk-size-limit off --vfs-cache-mode writes


You can adjust the times and sizes a bit but works well for me.
I've tried this and even adjusting the times and it does nothing different, struggles even on the host machine and remotely nothing loads

Doing a copy and paste on the local machine from the OneDrive folder downloads at like 50kb/s
 
I've tried this and even adjusting the times and it does nothing different, struggles even on the host machine and remotely nothing loads

Doing a copy and paste on the local machine from the OneDrive folder downloads at like 50kb/s

Maybe the scanning of the onedrive triggered some sort of throttle?
 
Top
Sign up to the MyBroadband newsletter
X