google-drive-ocamlfuse 0,1,1,1,2,0,4

FUSE filesystem over Google Drive

FUSE filesystem over Google Drive

google-drive-ocamlfuse is a FUSE filesystem backed by Google Drive, written in OCaml. It lets you mount your Google Drive on Linux.

Features (see what’s new in version 0.6.x)

  • Full read/write access to ordinary files and folders
  • Read-only access to Google Docs, Sheets, and Slides (exported to configurable formats)
  • Multiple account support
  • Duplicate file handling
  • Access to trash (.Trash directory)
  • Unix permissions and ownership
  • Symbolic links
  • Read-ahead buffers when streaming


  • Homepage
  • Wiki: includes installation instructions, and more details about configuration, and authorization


Please be sure to have a look at the authorization page, to understand how the authorization process works, and to discover all the available options.

Getting started


I’ve uploaded .deb packages for Ubuntu to my PPA. In order to to install it, use the commands below:

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

New beta versions are available on this PPA. If you want to test them, use the commands below:

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

For other installation options, please refer to the wiki.

How to build


Configuration and installation

To build the executable, run

ocaml -configure
ocaml -build

To install it, run (as root, if your user doesn’t have enough privileges)

ocaml -install

To uninstall anything that was previously installed, execute

ocaml -uninstall


The first time, you can run google-drive-ocamlfuse without parameters:


This command will create the default application directory (~/.gdfuse/default), containing the configuration file config (see the wiki page for more details about configuration). And it will start a web browser to obtain authorization to access your Google Drive. This will let you modify default configuration before mounting the filesystem.

Then you can mount the filesystem:

google-drive-ocamlfuse mountpoint

If you have more than one account, you can run:

google-drive-ocamlfuse -label label [mountpoint]

Using label to distinguish different accounts. The program will use the directory ~/.gdfuse/label to host configuration, application state, and file cache. No file is shared among different accounts, so you can have a different configuration for each one.

To unmount the filesystem, issue this command:

fusermount -u mountpoint


This application is still under testing, so there are probably bugs to discover and fix. To be extra sure, if you want, you can mount the filesystem in read-only mode, modifying the configuration (see the documentation), to avoid any write attempt to the server. Anyway, the rm command will simply trash your file, so you should always be able to rollback any changes. If you have problems, you can turn on debug logging:

google-drive-ocamlfuse -debug mountpoint

In ~/.gdfuse/default you can find curl.log that will track every request to the Google Drive API, and gdfuse.log that will log FUSE operations and cache management. If something goes wrong, you can try clearing the cache, with this command:

google-drive-ocamlfuse -cc

If something still doesn’t work, try starting from scratch removing everything in ~/.gdfuse/default. In this case you will need to reauthorize the application.

Note that in order to reduce latency, the application will query the server and check for changes only every 60 seconds (configurable). So, if you make a change to your documents (server side), you won’t see it immediately in the mounted filesystem.

Note also that Google Documents will be exported read-only.


If you have questions, suggestions or want to report a problem, you may want to open an issue on github.

Related Repositories



FUSE filesystem over Google Drive ...



Fork of [google-drive-ocamlfuse]( to use [profuse]( Consistent syntax is not GitHub's strong suit. ...



packing google-drive-ocamlfuse ...



google-drive-ocamlfuse OAuth2 endpoint ...



FUSE filesystem over Google Drive ...

Top Contributors

astrada iblech idvoretskyi nilbot dos1 vava whywaita


-   v0.5.22 zip tar
-   v0.5.21 zip tar
-   v0.5.20 zip tar
-   v0.5.19 zip tar
-   v0.5.18 zip tar
-   v0.5.17 zip tar
-   v0.5.16 zip tar
-   v0.5.15 zip tar
-   v0.5.14 zip tar
-   v0.5.13 zip tar
-   v0.5.12 zip tar
-   v0.5.11 zip tar
-   v0.5.10 zip tar
-   v0.5.9 zip tar
-   v0.5.8 zip tar
-   v0.5.7 zip tar
-   v0.5.6 zip tar
-   v0.5.5 zip tar
-   v0.5.4 zip tar
-   v0.5.3 zip tar
-   v0.5.2 zip tar
-   v0.5.1 zip tar
-   v0.5 zip tar
-   v0.4.8 zip tar
-   v0.4.7 zip tar
-   v0.4.6 zip tar
-   v0.4.5 zip tar
-   v0.4.4 zip tar
-   v0.4.3 zip tar
-   v0.4.2 zip tar