Mount Google Drive as a local filesystem on Arch Linux
This guide provides complete instructions for configuring rclone with Google Drive and mounting it as a local filesystem on Arch Linux. Includes setup for manual mounting, scripts, and automatic systemd service.
- Arch Linux system
- Google account
- Internet connection
- Sudo privileges
- 1. Install rclone
- 2. Configure Remote (Google Drive)
- 3. Verify Configuration
- 4. Manual Mount
- 5. Create Mount Script
- 6. Configure Systemd Service
- 7. Troubleshooting
sudo pacman -S rclonerclone config- Type
nfor new remote - Enter a name (e.g.,
SOLISO) - Select Google Drive (type the corresponding number)
- For most options, press Enter to accept defaults:
- Client ID: Leave empty
- Client Secret: Leave empty
- Scope: Select "full access" (
drive) - Root Folder ID: Leave empty
- Service Account: Leave empty
- Type
yfor advanced configuration (optional) - Type
yto use auto config - A browser window will open - authorize rclone
- Copy the authorization code and paste it in the terminal
- Type
yto confirm and test the configuration - Type
qto quit
List the contents of your Google Drive:
rclone ls SOLISO:If configured correctly, you'll see your files and folders.
Mount the remote to a local directory:
mkdir -p ~/Desktop/Project/Soliso/
rclone mount SOLISO: ~/Desktop/Project/Soliso/ --vfs-cache-mode writesThe --vfs-cache-mode writes option improves file handling.
nano ~/mount_soliso.sh#!/bin/bash
rclone mount SOLISO: ~/Desktop/Project/Soliso/ --vfs-cache-mode writeschmod +x ~/mount_soliso.sh~/mount_soliso.shsudo nano /etc/systemd/system/rclone-mount.service[Unit]
Description=Rclone Mount SOLISO
After=network-online.target
[Service]
Type=simple
User=YOUR_USERNAME
ExecStart=/usr/bin/rclone mount SOLISO: /home/YOUR_USERNAME/Desktop/Project/Soliso/ --vfs-cache-mode writes
ExecStop=/bin/fusermount -u /home/YOUR_USERNAME/Desktop/Project/Soliso/
Restart=on-failure
RestartSec=30
[Install]
WantedBy=multi-user.targetNote: Replace YOUR_USERNAME with your actual username.
sudo systemctl daemon-reload
sudo systemctl enable rclone-mount.service
sudo systemctl start rclone-mount.servicesudo systemctl status rclone-mount.serviceEnsure the mount directory exists:
mkdir -p ~/Desktop/Project/Soliso/Check file permissions:
ls -la ~/Desktop/Project/Ensure you own the directory:
sudo chown -R $USER:$USER ~/Desktop/Project/Soliso/Check service logs:
sudo journalctl -u rclone-mount.service -n 50- Ensure internet connection is active
- Verify rclone configuration:
rclone config show SOLISO: - Test remote:
rclone ls SOLISO:
fusermount -u ~/Desktop/Project/Soliso/rclone sync ~/local-folder SOLISO:remote-folderrclone copy ~/local-file SOLISO:remote-folder/rclone size SOLISO:rclone listremotes- PostgreSQL Setup - Database installation
- GNOME Keyring - Secure credential storage
- README - Main installation guide
MIT License - See LICENSE for details.