Install the latest version of rclone directly from the official source:
curl https://rclone.org/install.sh | sudo bash
Run the interactive setup to connect to the Datahub S3 storage:
rclone config
Follow these specific prompts during the setup:
Create the local directory where the S3 bucket will appear:
mkdir -p "/home/suraj/Datahub S3"
To ensure the drive mounts automatically on boot/login, create a systemd user service.
First, create the service directory and the file:
mkdir -p ~/.config/systemd/user/ nano ~/.config/systemd/user/rclone-datahub.service
Paste the following configuration into the file:
[Unit]
Description=RClone Mount Datahub S3
[Service]
Type=simple
ExecStart=/usr/bin/rclone mount datahub:suraj "/home/suraj/Datahub S3" \
--config=%h/.config/rclone/rclone.conf \
--vfs-cache-mode writes
ExecStop=/bin/fusermount -u "/home/suraj/Datahub S3"
Restart=on-failure
[Install]
WantedBy=default.target
Activate the automation using the following commands:
# Reload the manager to recognize the new file systemctl --user daemon-reload # Enable the service to start at login systemctl --user enable rclone-datahub.service # Start the mount immediately systemctl --user start rclone-datahub.service
Check if the mount is active and running correctly:
systemctl --user status rclone-datahub.service
| Action | Command |
|---|---|
| Stop Mount | systemctl --user stop rclone-datahub.service |
| Restart Mount | systemctl --user restart rclone-datahub.service |
| View Logs | journalctl --user -u rclone-datahub.service -f |