Overview
MTrclone.sh automates mounting multiple cloud storage accounts locally using rclone. It seamlessly integrates OneDrive, Google Drive, and Dropbox into your Linux file system with robust error handling, mount verification, and real-time feedback.
Demo
Shows: MTrclone cowsay message on right pane while cbonsai animation continues on left pane
Key Features
- Multi-Account Support: Mount OneDrive, Google Drive, and Dropbox simultaneously
- Directory Creation: Automatically creates local mount points with proper structure
- Rclone Integration: Configures caching and mount options for optimal performance
- Mount Verification: Validates successful mounts using findmnt with detailed reporting
- Error Recovery: Continues execution despite individual mount failures
- Real-Time Feedback: Progress indicators during mounting operations
- Visual Notifications: Cowsay messages confirm successful mounts
Installation & Setup
Prerequisites
# Install rclone
sudo dnf install rclone
# Configure rclone with your cloud accounts
rclone config
# During rclone config, you'll set up remotes for:
# - OneDrive (name: onedrive)
# - Google Drive (name: gdrive)
# - Dropbox (name: dropbox)
Make Executable and Run
cd BASHparaphernalia/scripts/MTrclone
chmod +x MTrclone.sh
./MTrclone.sh
Rclone Configuration
Before running MTrclone.sh, configure rclone remotes for each cloud service:
rclone config
# Add new remote for OneDrive
name> onedrive
Type> onedrive
# Follow interactive prompts to authenticate
# Add new remote for Google Drive
name> gdrive
Type> drive
# Follow interactive prompts to authenticate
# Add new remote for Dropbox
name> dropbox
Type> dropbox
# Follow interactive prompts to authenticate
Note: Remote names must match: onedrive, gdrive, dropbox
Mount Points
MTrclone creates the following directory structure in your home folder:
$HOME/CloudStorage/
├── OneDrive/
├── GoogleDrive/
└── Dropbox/
Each directory is mounted and accessible via your file manager or terminal.
Dependencies
- Required: rclone (with configured cloud remotes)
- Optional: cowsay, lolcat (for visual feedback)
Troubleshooting
- Rclone not found: Ensure rclone is installed with
sudo dnf install rclone - Remote not configured: Run
rclone configand add remotes namedonedrive,gdrive,dropbox - Mount fails: Check rclone logs with
rclone ls onedrive:to verify remote access - Permission denied: Ensure script is executable with
chmod +x MTrclone.sh - Already mounted: Unmount existing mounts before running again:
fusermount -u ~/CloudStorage/OneDrive