Question

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.

KFSys
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:

google-drive-ocamlfuse

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

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

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

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
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
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.

© 2023 DigitalOcean, LLC.