Mounting Google Drive in a Droplet

I can find many articles about mounting a Google Drive in a Droplet. I cannot find such an article in Digital Ocean’s articles therefore I assume there is not a recommended solution. Does anyone have experience with this? Is there a utility that is better for Droplets? I can find articles about doing this for Linux in general; I am interested in anything that might be specific to Droplets.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

it’s quite simple: if you use the DO storage, DO will earn more money

build rclone using Golang and then use rclone to connect “remote” profile to REMOTE folder:

export PATH=$PATH:$HOME/go/bin

mkdir -p /cache

options="--vfs-cache-mode full --vfs-cache-max-age 8h --dir-cache-time 90m --buffer-size 512M --vfs-read-ahead 2048M --vfs-cache-max-size 10G --drive-chunk-size 256M --cache-dir /cache --attr-timeout 3s --dir-perms=775 --file-perms=664 --uid=33 --gid=33 --allow-other --daemon"

function connect {
  if [ -z "$(ls -A ${1})" ]; then
    TEST=$(rclone listremotes | grep "$2")
    if [ ! -z "$TEST" ]; then
      echo mounting $2 to $1
      rclone mount $options $2 $1 --daemon-wait 60s
      echo -en "\n! rclone profile $2 does not exist !\n"

connect REMOTE remote:
Site Moderator
Site Moderator badge
July 3, 2023

Hey @samhobbs,

The Droplets DigitalOcean provide are completly under your control. This would suggest that there is a way to mount a Google Drive under a Linux distribution it’s doable on the Droplet.

As for articles, yes I couldn’t find one either however following the general way to mount the Drive under a Linux distro should suffice. Doing a quick search provided me with some steps - Please note, I’ve not tested them :

Using Rclone:

Rclone is a command-line tool used for managing various cloud storage services, including Google Drive. It can be used to mount Google Drive as a local disk.

First, install Rclone:

sudo apt install rclone

Then, configure Rclone with Google Drive:

rclone config

Follow the prompts to add a new remote connection, name it (e.g., “gdrive”), select Google Drive as the storage type, and authenticate with your Google Drive account.

Once it’s configured, you can mount your Google Drive

mkdir ~/gdrive
rclone mount gdrive: ~/gdrive &

Using google-drive-ocamlfuse:

google-drive-ocamlfuse is a FUSE-based file system backed by Google Drive.

First, add the necessary PPA and install the software:

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

Authenticate google-drive-ocamlfuse with your Google Drive account:


This will open a new tab in your web browser asking for permissions. Once you allow the permissions, you can close the tab and return to the terminal.

Now, you can create a directory and mount your Google Drive:

mkdir ~/gdrive
google-drive-ocamlfuse ~/gdrive

Each approach has its pros and cons. Rclone is highly flexible and powerful, but it requires comfort with the command line. google-drive-ocamlfuse is a bit simpler, but it’s not as feature-rich as Rclone.

Let me know if that helps!

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel