How to connect cloud storage to Jellyfin Media Server
Jellyfin is an open-source media server software that lets you stream your media collection on devices like your TV, Mobile, or PC at home and when away. By default, Jellyfin does not have native support for cloud storage services such as Google Drive, MEGA, or Amazon S3 unlike Plex and Emby, so I will be showing you how to connect your cloud storage media to your Jellyfin Media Server.
This only covers on mounting and setting up your cloud storage for Jellyfin and that's it. No setting up RClone or other steps. You will have to find other guides like on how to set up RClone Remotes before you use this guide.
Linux
Prerequisites:
Steps:
- Create an empty directory on your Hard Drive or External Drive to mount your cloud storage
- Open up your Command Line / Terminal and type in
rclone mount --allow-other --allow-non-empty --vfs-cache-mode writes <your rclone remote here>: /path/to/local/mount/folder/here &
. The--allow-other
flag is to allow Jellyfin and other users to read and access the mounted directory, the--allow-non-empty
flag is to allow non-empty folders to be mounted, and--vfs-cache-mode writes
is enabling a write-cache mode. If you want to make the mounted directory read-only where you don't want to touch, move, or modify any files, you can add the--read-only
flag and remove the--vfs-cache-mode writes
flag, the good thing about--read-only
is that it makes things fast. - In Jellyfin, create a new Media Library / Folder and make the media library path to where you mounted your cloud storage. If you are using a Docker image of Jellyfin, you will have to stop the container Jellyfin is on and then create a new bind volume for it that's the path of where you mounted your cloud storage before you create your Media library.
- Let Jellyfin scan and read the mounted files. If you want to make the script start up when you boot your computer or server, you can create this Shell Script / SH File below:
#!/bin/bash
/usr/bin/rclone mount --allow-other --allow-non-empty --vfs-cache-mode writes <your rclone remote here>: /path/to/local/mount/folder/here &
After that, run the command crontab -e
and then at the bottom line of the crontab text file you see, add @reboot sh /path/to/rclone/shell/script
and save the crontab file. I recommend running this script automatically at startup because if you don't do this, you will have to repeat the command all over again and wait for Jellyfin to scan your media-library.
If you want to unmount your storage, you can run fusermount -u /path/to/local/mount/folder/here
Windows
Prerequisites: