ThisCalculator

Everyday

Access Google Drive from Ubuntu File Manager

Updated · Standard formula, shown below

Access Google Drive from Ubuntu File Manager

Yes, you can access Google Drive directly from the Ubuntu file manager (Files, also called Nautilus) using GNOME’s built-in Online Accounts feature. This gives you a network mount of your Drive in the sidebar, so you can open, copy, and manage files without a browser. Below is a complete guide covering setup, usage, limitations, and alternatives.

What You Need Before You Start

To use this feature, you need:

  • Ubuntu with the GNOME desktop (default since 17.10). Other flavors like Kubuntu or Xubuntu use different file managers and may need extra steps.
  • An active internet connection and a Google account.
  • The gnome-online-accounts package, which is installed by default on standard Ubuntu. If missing, install it with sudo apt install gnome-online-accounts.

This method works with personal Google accounts. Workspace (business/education) accounts may be restricted by your administrator, and some features (like shared drives) may not appear.

How to Connect Google Drive in Files

Follow these steps to add your Google account:

  1. Open the Files application (the folder icon in the dock).
  2. Click the + Other Locations in the sidebar (or press Ctrl+L and type google-drive:///).
  3. If you chose Other Locations, you’ll see a section called Google Drive – click Connect.
  4. A browser window opens asking you to sign in to Google. Log in and click Allow to grant permissions.
  5. Return to Files. Your Google Drive appears in the sidebar under Devices or Network (depending on Ubuntu version).

Alternatively, go to Settings → Online Accounts → Add Account → Google and sign in. This integrates Drive with Files, and also adds your Google Calendar, Contacts, and Email to GNOME apps if you enable them.

What You Can and Cannot Do

The integration is a virtual mount, not a full sync client like the Google Drive desktop app. That means:

  • Can: Browse files, open them in local apps, copy files to/from Drive, rename, delete, and create new folders. Changes happen online immediately.
  • Cannot: Work offline (unless you copy files to local storage), see Google Docs/Sheets/Slides as editable documents (they appear as shortcut links), access shared drives (Team Drives) or files that are not in “My Driveâ€�, and use the trash (deleted files go to Google Drive trash, but you can’t restore from Files).

Large files (over a few hundred MB) may be slow because the entire file is downloaded before opening. For heavy use, consider a dedicated sync tool.

Common Problems and Fixes

Google Drive Not Showing in Sidebar

If you connected the account but don’t see Drive:

  • Log out and log back in, or restart Files (nautilus -q in terminal).
  • Check that the gvfs package is installed (sudo apt install gvfs gvfs-backends).
  • In Settings → Online Accounts, click your Google account and ensure the Files switch is ON.

“Unable to access Google Drive� Error

This often happens after a Google password change or if the OAuth token expires. Remove the account in Settings → Online Accounts and re-add it. Also verify your system date/time is correct – a wrong clock breaks SSL connections.

Files Don’t Sync Automatically

Remember: this is not a sync client. It’s a network mount. To have local copies, use the Google Drive desktop app (for Ubuntu, it’s available as a .deb from Google’s site) or a third-party tool like rclone.

Comparing Methods: Built-in vs. rclone vs. Google Drive App

You have several ways to access Google Drive on Ubuntu:

  • GNOME Online Accounts (built-in): Easiest setup, no extra software, good for occasional access. Limited features, no offline sync.
  • rclone: Command-line tool that mounts Drive as a FUSE filesystem. More control (e.g., read-only mount), works on any desktop, but requires terminal comfort and a separate config.
  • Google Drive for Desktop: Official client that syncs selected folders to your local disk. Available for Linux (as a .deb or .rpm) but not open-source, and it runs in the background.

For most users, the built-in method is sufficient. If you need offline access, choose the official app. If you want a lightweight mount without a GUI, rclone is great.

Is It Safe and Private?

Connecting your Google account via GNOME Online Accounts uses OAuth – your password is never stored in Ubuntu. The system gets a token that allows access to the scopes you approved (Files, Calendar, etc.). That token is stored in your keyring (usually encrypted). However, anyone with access to your user session can see your Drive files, so lock your screen when away. Also, be aware that Google may log access patterns; this is inherent to using their service.

If you’re on a shared computer, consider creating a separate user account for each person, and don’t connect your personal Google account to a public machine.

Alternatives for Non-GNOME Users

If you use Kubuntu (KDE Plasma), you can use KIO GDrive – a KDE component that integrates Google Drive into Dolphin. For Xubuntu (XFCE), you can install gvfs and use the same GNOME approach, or use rclone. Another option is to use a web-based file manager like Google Drive’s web interface in a browser, which works everywhere.

Frequently Asked Questions

Why does my Google Drive show as empty in Files?

If you see the mount but no files, it might be because you have a lot of files and the initial loading takes time. Wait a few minutes. Also, check if you’re looking at “My Drive� – the mount shows only files in the root of My Drive, not subfolders? Actually, it should show all folders and files, but if you have a massive number, the list may be slow. Try refreshing with F5 or reconnecting.

Can I open Google Docs files in LibreOffice?

Files shows Google Docs as .gdoc links. Double-clicking opens the web page in your browser. To edit offline, you need to export them as .docx or .odt from the web interface, or use Google’s offline mode in Chrome.

Does this work with Ubuntu 22.04 or 24.04?

Yes, the feature is present in both. In 24.04, the sidebar shows “Google Drive� under “Devices�. In 22.04, it may appear under “Other Locations�. The setup steps are the same.

How do I disconnect Google Drive?

Open Settings → Online Accounts, click your Google account, and toggle off the Files switch. To fully remove the account, click the trash icon. You can also right-click the Drive mount in Files and select “Unmount�.

Why is my Google Drive mount read-only?

By default, it’s read-write. If you see read-only, it could be a permissions issue or a temporary glitch. Unmount and remount. If you used rclone with a read-only flag, that’s expected.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.