Mount
Plex on Google Drive, with plenty of memory
For a library kept encrypted on Google Drive, on a server with memory to spare.
- Media servers
- Google Drive
- Encrypted
Type your own: the command below follows.
rclone mount gcrypt: /mnt/gmedia \ --allow-other \ --dir-cache-time 48h \ --vfs-read-chunk-size 16M \ --vfs-read-chunk-size-limit 2G \ --buffer-size 512M \ --vfs-cache-mode full \ --cache-dir /var/cache/rcloneAdd to Rclone UI opens it in the app’s Templates window, ready to save. No app yet? Download Rclone UI, free.
What it does
Shows a remote as a folder on this computer, so that any app can open its files. rclone’s docs for mount
- gcrypt: stands for a crypt remote on top of Google Drive. Use the name of yours.
- The cache has no size limit here. Add
--vfs-cache-max-sizeif the disk is small.
Each flag
- --allow-other
- Lets other users of this computer open the mount, such as the account a Plex or Jellyfin server runs as. On Linux it also needs
user_allow_otherin/etc/fuse.conf. It does nothing on Windows. - --dir-cache-time 48h
- How long folder listings are remembered before rclone asks the remote again. Longer means fewer requests and faster browsing, but changes made elsewhere show up later.rclone’s default: 5m
- --vfs-read-chunk-size 16M
- The size of the first piece rclone asks for when an app reads a file. Smaller pieces start playback sooner. Larger ones need fewer requests.rclone’s default: 128M
- --vfs-read-chunk-size-limit 2G
- While a file keeps being read, each piece is twice the size of the one before, up to this size. With off, the pieces keep growing.rclone’s default: off
- --buffer-size 512M
- Memory set aside for each file being read or copied, so that rclone can read ahead of the app. Each open file takes this much memory.rclone’s default: 16Mi
- --vfs-cache-mode full
- How much of each file is kept on this computer’s disk. With off, apps can read files but most can’t save them. With writes, files being saved are cached, so apps can save. With full, whole files are cached as they are read, so apps can jump around in them and read them again from disk.rclone’s default: off
- --cache-dir /var/cache/rclone
- The folder where rclone keeps its cache. The one here is a usual place on a Linux server: use a folder with room for the cache.rclone’s default: a folder in your home folder