Rclone Mount using Systemd

This guide is for advanced users only and it serves as a guide for you to use rclone. The systemd files here are the recommended settings for our slots and will subject to change whenever there are new configurations that are appropriate for the slots. Furthermore, Ultra.cc is not responsible for any data loss or application errors due to this setup should you proceed and will not provide official support for it due to the large volume of variables and different configurations possible with rclone. You may visit the community discord server for help.

Please make yourself aware of the Ultra.cc Fair Usage Policy. It is very important not to mount your Cloud storage to any of the premade folders, this creates massive instability for both you and everyone else on your server. Always follow the documentation and create a new folder for mounting. It is your responsibility to ensure usage is within acceptable limits. Ignorance is not an excuse.

Please do not mount to any of the default directories such as:
or any pre-created directory found on your Ultra.cc Slot

Rclone's mount allows you to mount any of your cloud storage accounts as part of your slot's file system using FUSE. In this guide, we will teach you how to run a rclone mount using systemd. Take note that this guide is setup using Google Drive as the cloud storage provider used. Should you use any other cloud storage providers, you may need consult rclone documentation for the appropriate flags for your setup.

There are many ways to mount rclone. You can run the rclone mount using the screen utility, create a script for running rclone mount and checking if the command is still alive, using the --daemon flag, just to mention a few.

We recommend using systemd for several reasons:

  1. Easy to set up and configure
  2. Restarts rclone mount automatically when there's a server restart or error
  3. You can manually restart the service when there're problems.

Before we proceed, you may have to install rclone and configure your cloud storage first. If you haven't, visit this guide: Installation, Configuration & Usage of rclone

If you don't need to upload files to your mount, follow this guide.

Should you need to upload files or you're planning an automated setup involving your cloud storage, we recommend to use Rclone VFS and MergerFS Setup instead.


  • Login to your seedbox's SSH
  • Do pwd and take note of the output. In this case, the output is /home6/kbguides
  • Then, create a folder by doing mkdir >folder name<
  • For this guide, we'll be making a folder named Mount. So we will run mkdir Mount
kbguides@lw902:~$ pwd
kbguides@lw902:~$ mkdir Mount
  • Next, create a folder named scripts. This is where you'll find logs of the rclone mounts should there be any problems.
kbguides@lw902:~$ mkdir scripts
  • Confirm your remote name by running rclone config and take note of the name you've set. Once that's done, type q to quit config.
$ rclone config
Current remotes:

Name                 Type
====                 ====
gdrive               drive 

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config

Downloading Rclone Service File

  • Choose and run the following command below
  • There are 2 systemd files listed here. You have to choose either one of these files.
    • The first one should work on most remotes supported by rclone.
    • The second one is specific for Google Drive that is optimized for streaming.

Rclone Mount for Most Remotes

wget -P ~/.config/systemd/user/ https://raw.githubusercontent.com/ultraseedbox/UltraSeedbox-Scripts/master/MergerFS-Rclone/Service%20Files/rclone-normal.service && nano ~/.config/systemd/user/rclone-normal.service

Google Drive Rclone Mount for Media Streaming

wget -P ~/.config/systemd/user/ https://raw.githubusercontent.com/ultraseedbox/UltraSeedbox-Scripts/master/MergerFS-Rclone/Service%20Files/rclone-vfs.service && nano ~/.config/systemd/user/rclone-vfs.service

Editing your service file

  • After you run the command, a nano text window appears. In this example service file, we'll be using Google Drive Rclone Mount for Plex Streaming.
  • Edit /homexx/yyyyy to your output in pwd and to your preferred folder, which in this case is /home6/kbguides/Mount.
  • Replace remote: to the remote name you set previously from the previous guide.
  • You may also add or edit some rclone flags here if you wish
  • Then save it by doing CTRL + O, press ENTER then exit nano by doing CTRL + X.

Shown below are example service files. Do not copy and paste anything from the example files as it does not always reflect the contents of the service files from our repository and in this guide. Please read the guide thoroughly before setting it up.

Example rclone-normal.service

Description=RClone Normal Mount Service


ExecStart=/home6/kbguides/bin/rclone mount remote: /home6/kbguides/Mount \
  --config /home6/kbguides/.config/rclone/rclone.conf \

ExecStop=/bin/fusermount -uz /home6/kbguides/Mount


Example rclone-vfs.service

Description=RClone VFS Service


ExecStart=/home6/kbguides/bin/rclone mount remote: /home6/kbguides/Mount \
  --config /home6/kbguides/.config/rclone/rclone.conf \
  --use-mmap \
  --dir-cache-time 1000h \
  --poll-interval=15s \
  --vfs-cache-mode writes \
  --tpslimit 10

ExecStop=/bin/fusermount -uz /home6/kbguides/Mount


Do not attempt to mount your rclone remote directly on your home directory. This will lead to instabilities. Instead, always mount to an empty folder within your home directory.

Running Rclone Mount

  • Reload systemd Daemon by doing systemctl --user daemon-reload. You will do this every time you change something in your system files.
  • After that enable and start the service that we added immediately by doing systemctl --user enable --now rclone-vfs.service
    • enable --now will run the rclone mount service and will keep it alive. It also automatically starts during server restarts and rclone crashes.
  • To check if your service is running, do systemctl --user status rclone-vfs.service. It should have both loaded and active (running), noting that the rclone mount is executed and running.
  • Then, to check if your mount is actually mounted to the folder properly, do ls Mount. Your files from your cloud storage account should show up.
kbguides@lw902:~$ systemctl --user daemon-reload
kbguides@lw902:~$ systemctl --user enable --now rclone-vfs.service
kbguides@lw902:~$ systemctl --user status rclone-vfs.service
● mount.service - RClone Service
   Loaded: loaded (/home6/kbguides/.config/systemd/user/rclone-vfs.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2019-06-30 18:32:24 CEST; 19h ago
 Main PID: 38563 (rclone)
   CGroup: /user.slice/user-xxxx.slice/user@xxxx.service/rclone-vfs.service
           └─38563 /home6/kbguides/bin/rclone mount gdrive: /home17/usb770/Stuff/Mount --allow-other --buffer-size 1M --drive-chunk-size
kbguides@lw902:~$ ls Mount
Linux ISOs  Documents  Legally Acquired Files  Homework  grocery-list.txt
  • In the event the mount fails to show as running, you will need to manually create a log file with this command touch /homexx/yyyyy/scripts/rclone_vfs_mount.log Edit /homexx/yyyyy to your output in pwd then run systemctl --user status rclone-vfs.service again this should now show the service as running.
  • Should you have the need to restart your rclone mount, here are your following commands, following the example above
    • Please make sure that all apps that are connected to the mount have stopped before proceeding.

Systemd Commands

Enabling and starting Rclone mount: systemctl --user enable --now {mount-name}.service
Restart Rclone Mount: systemctl --user restart {mount-name}.service
Stop Rclone Mount: systemctl --user stop {mount-name}.service
Stop and disable Rclone mount: systemctl --user disable --now {mount-name}.service (Remove service file after)

App Optimizations

  • You may need to tweak some of your apps so it plays well with your rclone mount. Refer to the following page for more information on these tweaks.

rclone Optimizations for Apps

Revision #34
Created Tue, Sep 10, 2019 6:45 AM by Xan
Updated Mon, Mar 15, 2021 4:20 PM by Joe