How to Mount Google Drive in Linux with google-drive-ocamlfuse

Ubuntu One is not included in the latest Ubuntu 14.04 LTS, and will be phased out on the 1st of July 2014, with files from users being completely wiped out by the 31st of July. I liked the service to exchange files between my Ubuntu computer and Android phones, and features like automatic upload of pictures. Luckily there are alternative such as Dropbox,, and ownCloud, each with their own pros and cons. But today, I’ll show how to easily use your Google Drive in Ubuntu / Debian. Last year, I wrote about insync, a beta service that offers Google drive integration into Linux, but since service went out of beta, the company started to charge $15 per account for consumers (one time year), with business plans starting at $15 per year. If you are interested in this solution you can still give it a try for free for 14 days. I’d you’d rather not pay extra there are some other solutions such as gsync, rsync for Google Drive, which will sync your files between your hard drive and Google Drive. That means you’ll have at least two sets of files one of each of your devices, and one on Google Drive.  If you’d rather mount and access your Google Drive in Linux, you can use google-drive-ocamlfuse, and that’s exactly what I’ve tested by following the instructions found on

Google Drive in Nautilus
Google Drive in Nautilus

According to the project website “google-drive-ocamlfuse is a FUSE-based file system backed by Google Drive, written in OCaml, which lets you mount your Google Drive on Linux.” It supports read/write access to ordinary files and folders, read-only access to Google Docs, Sheets, and Slides (exported to configurable formats), Multiple accounts, duplicate file handling, and access to trash.

Let’s see how to install it in Ubuntu (14.04):

Now you’ll need to authorize the application to connect to your Google Drive account:

This command will open a web page in your default browser requesting access to Google Drive, and a few second after login, your account should become authorized.

To access Google Drive as an external storage, simply create a new directory, and “mount” your Google Drive as follows:

To automatically mount your Google Drive at boot time, add “google-drive-ocamlfuse ~/gdrive” to the Startup Applications. You could also modify fstab file as mentioned in the Wiki. The later also explains how to connect multiple accounts, how to authorize it from a headless system, how to install it from source, and more.

If you’ve used insync (beta) previously, you can remove it as follows:

Share this:

Support CNX Software! Donate via cryptocurrencies or become a Patron on Patreon

ROCK Pi 4C Plus
Notify of
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
1 Comment
Weller PCB manufacturer