How to Mount Google Drive in Linux Using “Google Drive OCamlfuse” Client

Google Drive is a cloud storage service owned by Google Inc. Google Drive allows user to edit documents (including Spreadsheets and Presentations), share, synchronize and store in the cloud. It is free to use Google Drive and all you need is a Google/Gmail Account. Introduced in the year 2012, Google Drive presently have a total of 240 million+ monthly users.

Technical aspects of Google Drive

  1. Google Offers initial 15GB of online storage for free that is used by Gmail, Google+ photos and Google Drive in combination.
  2. Post utilization of 15GB of online storage you can buy monthly subscription by paying a little amount and you can own a maximum of 30 TB space per account. However there is no limitation for the number of accounts you can own.
  3. Google Driver Viewer has support for viewing the file types for most of the formats.
  4. There are a number of Third-party apps that lets you access Google Drive. One such extension for Google Chrome will let you access Google Drive even when offline.
  5. Document Limit for Google Dock – A document must not exceed 1,024,000 characters regardless of font, page and size and should not exceed 50 MB.
  6. A spreadsheet must not be larger than 20 MB and a Presentation slide should be within 100 MB.

Why Prefer Google Drive over Traditional Storage

You need Google Drive because you need to have access to your documents, pictures, Spreadsheets, Presentation and other files all the time when required. You do not need to carry a physical hard Drive / USB flash Drive to carry files and hence there is no risk of losing your files.

No risk of virus infection or attack by a hacker, as your files are safe in the Google Cloud with strong password. Edit and View files on Desktop, Laptop, Latest Mobile Phones and Tablets, etc… anytime, anyplace, any platform and whatever.

To Sync files between Google Drive and local machine, you need a Google Drive Client. There are a lots of Google Drive client for Systems like Windows, Mac OS X, Android, iOS but unfortunately there is no any official client software for Linux.

There are a few open source third party tools that lets you mount Google Drive on you Linux System, but here we’re introducing yet another popular tool called google-drive-ocamlfuse, which allows you to mount your Google Drive under your Linux filesystem to access your files more easily.

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

34 Responses

  1. Boi Le says:

    Thanks for the guidelines! I successfully installed google-drive-ocamlfuse on Lubuntu 14.04.

    • Boi Le says:

      google-drive-ocamlfuse doesn’t allow to change file timestamps. Commands “cp -p” or “rsync -a” always create files with present modification time. Therefore, rsync is useless.

  2. Daniel says:

    I can’t get step 12 to work. It says label needs an argument.

  3. Sviatoslav says:

    i can not install it. have an error. can you help?
    [[email protected] opam]# opam install google-drive-ocamlfuse
    [WARNING] Running as root is not recommended
    The following actions will be performed:
    ∗ install sqlite3 4.0.3 [required by google-drive-ocamlfuse]
    ∗ install google-drive-ocamlfuse 0.5.22
    ===== ∗ 2 =====
    Do you want to continue ? [Y/n] y

    =-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    [google-drive-ocamlfuse] Archive in cache
    [sqlite3] Archive in cache

    =-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    [ERROR] The compilation of sqlite3 failed at “ocaml setup.ml -build”.
    Processing 1/2: [sqlite3: ocamlfind remove]
    #=== ERROR while installing sqlite3.4.0.3 =====================================#
    # opam-version 1.2.2
    # os linux
    # command ocaml setup.ml -build
    # path /root/.opam/system/build/sqlite3.4.0.3
    # compiler system (4.02.3)
    # exit-code 1
    # env-file /root/.opam/system/build/sqlite3.4.0.3/sqlite3-6418-1872ec.env
    # stdout-file /root/.opam/system/build/sqlite3.4.0.3/sqlite3-6418-1872ec.out
    # stderr-file /root/.opam/system/build/sqlite3.4.0.3/sqlite3-6418-1872ec.err
    ### stdout ###
    # /usr/bin/ocamlopt.opt unix.cmxa -I /usr/lib64/ocaml/ocamlbuild /usr/lib64/ocaml/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml /usr/lib64/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
    # Failure: pkg-config failed for cflags.
    ### stderr ###
    # Package sqlite3 was not found in the pkg-config search path.
    # Perhaps you should add the directory containing `sqlite3.pc’
    # to the PKG_CONFIG_PATH environment variable
    # No package ‘sqlite3′ found
    # E: Failure(“Command ”/usr/bin/ocamlbuild’ lib/libsqlite3_stubs.a lib/dllsqlite3_stubs.so lib/sqlite3.cma lib/sqlite3.cmxa lib/sqlite3.a lib/sqlite3.cmxs -tag debug’ terminated with error code 2″)

    =-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    The following actions were aborted
    ∗ install google-drive-ocamlfuse 0.5.22
    The following actions failed
    ∗ install sqlite3 4.0.3
    No changes have been performed

    =-=- sqlite3.4.0.3 troobleshooting =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    => This package relies on external (system) dependencies that may be missing. `opam depext sqlite3.4.0.3′ may help you find the correct installation for your system.

  4. Do you yearn for a Linux client of Google Drive? Here is one for you. I have written this out of same frustration as you had. Please visit:
    http://www.nulltrace.org/p/gosync.html
    for more details.

  5. v7peer says:

    Anothher way for automounting (in KDE)
    I just added the commando ‘google-drive-ocamlfuse ~/google-drive’ to Menu -> System Settings -> Startup & Shutdown -> Autostart

    works great

  6. bacoco says:

    Hi,
    do you try this on OSX ?
    If yes how do you proceed please ?
    Thanks for all

  7. Chai ManU says:

    I got many error after $ opam init
    like this

    [WARNING] Errors while parsing flowtype.0.9.1 OPAM file, skipping.
    [ERROR] Your version of OPAM (1.1.1) is not recent enough to read ~/.opam/repo/default/packages/flowtype/flowtype.0.9.2/opam. Upgrade OPAM to a more recent version (at least 1.2) to read this file correctly.

    How to fix it ?

  8. Jason says:

    Whenever I run the google-drive-ocamlfuse It brings up a webpage that has an error on it..
    400. That’s an error.

    Error: invalid_request

    Invalid response_type: code\\

    Learn more

    Request Details
    That’s all we know.

  9. Emiliano says:

    Hi!
    If I use this FUSE method, I’ll be use local storage?

    thanks.

  10. Raghav says:

    Thanks for sharing the guidelines. I can’t see the Files / Directorties those are shared with me in the mount.
    Please let me know how to view them as well.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.