This guide provides instructions for setting up and mounting a Google Drive remote using rclone, optimized for integration with the KDE desktop environment and its file manager, Dolphin. The configuration is robust for continuous desktop use, leveraging FUSE and rclone's VFS cache.
Ensure rclone and the necessary FUSE tools are installed. On most modern Linux systems, you will need `fuse3`.
# Example for Debian/Ubuntu (adapt as necessary for your distribution) sudo apt update sudo apt install rclone fuse3
Run the interactive rclone configuration tool to link your Google Drive account.
rclone config
Follow the prompts:
To allow desktop applications (like Dolphin) to reliably access the mount created by your user, the security-sensitive --allow-other option must be permitted system-wide.
1. Edit the main FUSE configuration file with superuser privileges:
sudo nano /etc/fuse.conf
2. Uncomment the line by removing the leading `#` character:
user_allow_other
3. Save the file and close the editor.
Create a local mount point and run the final mount command. The following options ensure stable desktop use:
1. Create the mount directory (if it doesn't already exist):
mkdir -p ~/gdrive
2. Execute the mount command:
rclone mount "Google Drive": ~/gdrive \ --allow-other \ --dir-cache-time 72h \ --poll-interval 15s \ --vfs-cache-mode full \ --daemon
Note: The quotes are necessary around “Google Drive:” due to the space in the remote name.
The Google Drive contents are now accessible at `~/gdrive` in Dolphin.
To cleanly stop the background mount process and unmount the directory, use `fusermount`:
fusermount -uz ~/gdrive
For persistence across reboots, the recommended method is to set up a systemd user unit. This ensures the mount is started automatically under your user account when you log into your KDE session. Consult your distribution's documentation on creating a `~/.config/systemd/user/rclone-gdrive.service` file for this purpose.