Skip to content
Education & Software

How to Mount Google Drive in Linux Mint: Step-by-Step Guide

In this article

To mount Google Drive in Linux Mint, the easiest method is using the built-in Online Accounts utility in System Settings. Adding your Google account automatically mounts Google Drive into the Nemo file manager. Alternatively, for command-line access, offline caching, or automated scripts, tools like Rclone or google-drive-ocamlfuse offer high-performance mounting options.

Understanding How Linux Mint Handles Google Drive Integration

Unlike Windows and macOS, Google does not provide an official desktop client for Linux. Consequently, Linux Mint relies on open-source file system drivers and protocols to bridge the gap between your local system and Google’s cloud servers.

Linux Mint provides two primary architectural approaches to access cloud storage:

  1. GVfs (GNOME Virtual File System): This is the backend used by Linux Mint’s default graphical interface (GNOME Online Accounts). It mounts remote locations using virtual URIs (such as google-drive://). Files are fetched on demand directly through the desktop file manager without syncing the entire cloud contents to your local disk.
  2. FUSE (Filesystem in Userspace): Command-line tools like Rclone and google-drive-ocamlfuse leverage FUSE to create a virtual filesystem point in your user directory (for example, ~/GoogleDrive). FUSE mounts act like native Linux directories, allowing terminal scripts, third-party apps, and command-line utilities direct read and write access to your cloud files.

Understanding these mechanisms helps you choose the right mounting method based on whether you prefer standard graphical browsing or high-speed terminal integration.

Method 1: Mount Google Drive via GNOME Online Accounts (GUI)

The built-in Online Accounts feature in Linux Mint is the simplest method for most desktop users. It requires no terminal usage and integrates directly into Nemo, the default desktop file manager.

Step 1: Open Online Accounts

  1. Click the Menu button on the panel.
  2. Open System Settings.
  3. Under the Preferences section, click Online Accounts.

Step 2: Add Your Google Account

  1. In the Online Accounts window, select Google from the list of available services.
  2. A secure browser authentication window will launch. Enter your Google account email address and click Next.
  3. Enter your password and complete any required two-factor authentication (2FA) verification steps.
  • Online Accounts
    • Select an account service:
      • [ G ] Google (Click to initiate authentication)
      • [ N ] Nextcloud
      • [ M ] Microsoft 365

Step 3: Grant File System Permissions

  1. Google will request permission for GNOME to access your Google Drive files, email, and calendar entries.
  2. Review the requested permissions and click Allow.
  3. In the Linux Mint Online Accounts interface, ensure the Files toggle switch is enabled. You can toggle off mail, calendar, or contacts if you only intend to use Google Drive storage.

Step 4: Access Google Drive in Nemo

  1. Open the Nemo file manager (or double-click the Home icon on your desktop).
  2. Look at the left sidebar under the Network or Devices panel.
  3. You will see an entry labeled with your Google email address or named Google Drive.
  4. Click the entry to browse, open, drag-and-drop, and edit files directly within Google Drive.

Note: Because GVfs loads metadata on demand over the internet, large folders may take a few seconds to populate when opened for the first time in a desktop session.

Google Drive to WebDAV: How to access remote server files
Google Drive to WebDAV: How to access remote server files

Method 2: Mount Google Drive Using Rclone (CLI & Automated Mounts)

Rclone is an open-source command-line program designed to manage and synchronize files on cloud storage. It is ideal for users who need command-line access, automated backups, custom file caching, or boot-time mounting.

Step 1: Install Rclone

Open your terminal (Ctrl+Alt+T) and update your local package list, then install Rclone using the standard package repository:

sudo apt update sudo apt install rclone -y

Step 2: Configure Rclone for Google Drive

Run the interactive Rclone configuration wizard:

rclone config

Follow the interactive prompts:

  1. Type n to create a New remote.
  2. Name the remote (for example: gdrive).
  3. Scroll through the list of storage providers and select the number corresponding to Google Drive (usually option 18 or similar depending on the installed Rclone version).
  4. Leave client_id and client_secret blank to use Rclone's default credentials, or supply your custom Google API key for higher API rate limits.
  5. Select the scope option for Full access to all files (Option 1).
  6. Leave service_account_file blank unless using custom Google Cloud Service Accounts.
  7. Choose N for Advanced configuration.
  8. Choose Y when asked to Use auto config. A web browser window will open automatically asking you to log into Google and approve permissions.

Once authenticated in the browser, return to the terminal. Confirm the remote configuration details and press y to save, then q to quit the configuration menu.

Step 3: Create a Mount Point and Mount the Drive

  1. Create an empty directory in your home folder to serve as the mount point:

mkdir -p ~/GoogleDrive

  1. Test the mount using the following command:

rclone mount gdrive: ~/GoogleDrive --vfs-cache-mode full &

The --vfs-cache-mode full flag ensures that applications reading and writing to files experience normal file system behavior, enabling proper file locking and caching.

  1. Verify the mount by opening ~/GoogleDrive in Nemo or checking mounted drives in terminal:

ls -la ~/GoogleDrive

  1. To unmount the directory manually when finished:

fusermount -u ~/GoogleDrive

Method 3: Mount Google Drive with google-drive-ocamlfuse

google-drive-ocamlfuse is a dedicated FUSE-based filesystem tailored specifically for Google Drive. It provides excellent compatibility for desktop users who want a FUSE mount point without needing the full scope of Rclone features.

Step 1: Install google-drive-ocamlfuse

Add the official Personal Package Archive (PPA) maintained by the developer, update your system repositories, and install the package:

sudo add-apt-repository ppa:alessandro-strada/ppa -y sudo apt update sudo apt install google-drive-ocamlfuse -y

Step 2: Authorize Your Google Account

Run the main binary without arguments to trigger the initial setup and authorization sequence:

google-drive-ocamlfuse

Your default web browser will open. Select your Google account, review the requested drive access permissions, and select Allow. Once the web page displays a success confirmation message, return to your terminal.

Step 3: Mount the Remote Storage

  1. Create a local mount directory:

mkdir -p ~/GDriveOCaml

  1. Mount Google Drive into the directory:

google-drive-ocamlfuse ~/GDriveOCaml

  1. Browse your files at ~/GDriveOCaml. To unmount the directory, execute:

fusermount -u ~/GDriveOCaml

Comparing Google Drive Mounting Methods on Linux Mint

The matrix below compares the three primary methods for mounting Google Drive in Linux Mint to help you select the setup that fits your workflow.

Feature / Criteria GNOME Online Accounts (GUI) Rclone (CLI / FUSE) google-drive-ocamlfuse
Target User Everyday desktop users Advanced users, sysadmins, script authors Desktop users wanting CLI/FUSE mounts
Setup Complexity Very Low (Graphical UI) Moderate (Terminal wizard) Low-to-Moderate (PPA & CLI)
File Manager Integration Native integration in Nemo sidebar Appears as a standard local folder Appears as a standard local folder
Offline Caching Minimal (Memory/On-demand) Configurable (--vfs-cache-mode) Built-in local sqlite metadata caching
Auto-Start Capability Automatic upon user desktop login Requires Systemd service or Startup script Requires Startup Applications entry
Resource Usage Very Low Low to Moderate (depends on cache size) Moderate
Terminal Access Complex path (/run/user/1000/gvfs/) Direct local folder path (~/GoogleDrive) Direct local folder path (~/GDriveOCaml)

Managing Boot Auto-Mounting and Performance Optimizations

If you choose Rclone or google-drive-ocamlfuse, you must explicitly configure auto-mounting if you want Google Drive available immediately every time Linux Mint boots up.

Auto-Mounting Rclone via Startup Applications (GUI Method)

For most users, using Linux Mint’s native Startup Applications tool is easier than writing system service files.

  1. Open Menu -> Startup Applications.
  2. Click the + (Add) button at the bottom and choose Custom command.
  3. Fill out the dialog:
    • Name: Rclone Google Drive Mount
    • Command: sh -c "sleep 5 && rclone mount gdrive: %h/GoogleDrive --vfs-cache-mode full"
    • Delay: 5 (gives network services time to initialize on boot)
  4. Click Save.
  • Edit Startup Program
    • Name: Rclone Google Drive Mount
    • Command: sh -c "sleep 5 && rclone mount gdrive: %h/G..."
    • Delay: 5 seconds
    • [ Cancel ] [ Save ]

Auto-Mounting Rclone via Systemd Service (Headless / Advanced Method)

If you require Google Drive to mount before logging into the graphical desktop, create a user systemd service file:

  1. Create the unit file directory:

mkdir -p ~/.config/systemd/user/

  1. Create a service file named rclone-gdrive.service:

nano ~/.config/systemd/user/rclone-gdrive.service

  1. Paste the following configuration:

[Unit] Description=Rclone Google Drive FUSE Mount After=network-online.target Wants=network-online.target [Service] Type=notify ExecStart=/usr/bin/rclone mount gdrive: %h/GoogleDrive \ --config=%h/.config/rclone/rclone.conf \ --vfs-cache-mode full \ --vfs-cache-max-size 10G \ --umask 022 ExecStop=/bin/fusermount -u %h/GoogleDrive Restart=on-failure RestartSec=10s [Install] WantedBy=default.target

  1. Enable and start the user service:

systemctl --user daemon-reload systemctl --user enable --now rclone-gdrive.service

Troubleshooting Common Google Drive Mount Issues in Linux Mint

1. Google Drive Entry Missing from Nemo (GNOME Online Accounts)

If your Google account is connected under Online Accounts but does not display in Nemo:

  • Ensure the Files switch is toggled ON in the Online Accounts panel.
  • Restart the GVfs daemon by logging out of your desktop session and back in, or run:

killall gvfsd

2. "Directory Not Empty" Error During FUSE Mount

If Rclone or google-drive-ocamlfuse fails with an error stating the destination mount point is not empty:

  • Unmount any crashed background mounts:

fusermount -u ~/GoogleDrive

  • Ensure no hidden files remain inside your local target folder before mounting again:

ls -la ~/GoogleDrive

3. Slow Directory Browsing or Network Timeout

When navigating large Google Drive directories, fetching metadata over remote HTTP calls can introduce latency.

  • For GNOME Online Accounts: Avoid opening directories containing thousands of loose images or files simultaneously.
  • For Rclone: Add --dir-cache-time 72h to your mount command to tell Rclone to cache directory listings locally longer, reducing API requests.

4. Authentication / OAuth Tokens Expired

Google OAuth access tokens occasionally expire or get revoked when password changes occur.

  • For Online Accounts: Open System Settings -> Online Accounts, remove the Google account, and re-add it.
  • For Rclone: Re-run rclone config, choose e to edit your existing gdrive remote, and re-authenticate through the browser prompt.

Frequently Asked Questions

Does Linux Mint have an official Google Drive sync application?

No, Google does not maintain an official Google Drive client application for Linux systems. Linux Mint handles Google Drive integration via open-source tools including GNOME Online Accounts (GVfs) and third-party FUSE modules like Rclone.

Will mounting Google Drive consume local hard drive space on Linux Mint?

By default, mounting Google Drive acts as a virtual network drive and does not clone your entire cloud drive onto your physical storage. However, if you use FUSE tools with caching flags (such as Rclone's --vfs-cache-mode full), actively accessed or recently edited files will be temporarily cached locally on your drive.

Can I access Google Drive files in Linux Mint while offline?

No, standard network mounting mechanisms (including GNOME Online Accounts and basic Rclone mounts) require an active internet connection to read and write remote data. To access files offline, you must explicitly copy them to local folders or use third-party bidirectional syncing tools like Insync.

How do I unmount Google Drive when I no longer need it?

For GNOME Online Accounts, click the small eject icon next to your Google email address in the Nemo sidebar. For command-line mounts created with Rclone or google-drive-ocamlfuse, run fusermount -u /path/to/mountpoint in your terminal.

Is Rclone safer or more reliable than GNOME Online Accounts?

Rclone is generally considered more robust for heavy file operations, automated command scripts, and transferring large files. GNOME Online Accounts is designed for lightweight graphical browsing and quick file transfers within the desktop interface.

Selecting the Best Google Drive Mount Strategy for Your Workflow

Choosing how to mount Google Drive in Linux Mint ultimately depends on your daily computing habits and technical setup:

  • Choose GNOME Online Accounts if you want a seamless setup that requires zero terminal usage, integrates into the Nemo file manager, and works immediately out of the box for quick drag-and-drop file transfers.
  • Choose Rclone if you are comfortable with the Linux terminal, require automated background mounting at system startup, use terminal scripts for offsite backups, or need high-performance file caching when handling large files.
  • Choose google-drive-ocamlfuse if you prefer a dedicated FUSE mount folder for application access but want a lighter configuration alternative to Rclone.

For most Linux Mint users, starting with GNOME Online Accounts provides the best balance of speed and convenience. If you encounter network latency or need dedicated local paths for software scripts, transition to an Rclone systemd mount for long-term stability and precise control.