ubuntu Cloud Storage

Mounting and Syncing Google Drive Files and Folders in Ubuntu

Learn how to mount Google Drive in Ubuntu and sync files and folders with your local environment. This article covers the installation of Google Drive Ocamlfuse and its basic usage in detail.

Shou Arisaka
2 min read
Oct 20, 2025

By mounting Google Drive in Ubuntu, you can directly operate files and folders in Google Drive from your local environment. This article explains the procedure for mounting Google Drive in Ubuntu using a tool called Google Drive Ocamlfuse.

1. Installing Google Drive Ocamlfuse

Google Drive Ocamlfuse is open-source software for mounting Google Drive as a FUSE file system. Install it using the following commands.

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

After installation is complete, you need to authorize connection to your Google account only for the first time.

google-drive-ocamlfuse

A browser will automatically open, displaying a screen requesting access permission to your Google account. Once you grant permission, Google Drive Ocamlfuse will obtain authentication tokens and complete the setup.

2. Mounting Google Drive

Create a directory to mount Google Drive. Here we show an example of creating a directory called google_drive in the home directory.

mkdir ~/google_drive

Mount Google Drive to the created directory.

google-drive-ocamlfuse ~/google_drive

Now the contents of Google Drive will be displayed in the ~/google_drive directory, and you can operate them like local files.

3. Unmounting

To unmount Google Drive, use the following command.

fusermount -u ~/google_drive

This completes the procedure for mounting and unmounting Google Drive.

Summary

By using Google Drive Ocamlfuse, you can easily operate Google Drive files and folders on Ubuntu. Itโ€™s convenient and recommended for backups and file synchronization.

Share this article

Shou Arisaka Oct 20, 2025

๐Ÿ”— Copy Links