Mounting Google Drive on Your Computer for Easy Access

Author

Reads 1.1K

Stylish home office setup featuring laptop and external drives for data storage and backup.
Credit: pexels.com, Stylish home office setup featuring laptop and external drives for data storage and backup.

Mounting Google Drive on your computer can be a game-changer for anyone who uses Google Drive regularly. With Google Drive, you can access your files from anywhere, but mounting it on your computer makes it feel like a local drive, allowing you to access your files even faster.

Google Drive can be mounted on your computer using the Google Drive File Stream application. This application allows you to access your Google Drive files from your computer's file system, making it easy to access your files without having to open a web browser.

Mounting Google Drive on your computer also allows you to access your Google Drive files offline. This is especially useful if you have a slow internet connection or if you need to access your files when you don't have an internet connection.

Setting Up

To get started with mounting Google Drive, you'll first need to download and install Drive for desktop. You can find the download links on the official Google Drive website, specifically for Windows or Mac.

Credit: youtube.com, Setting Up Google Drive Desktop

The download process is straightforward, but keep in mind that the installation location may vary depending on your operating system. For Windows, you can find the Drive for desktop menu at the bottom right of your screen, while on Mac, it's located at the top right.

To actually mount your Google Drive, you'll need to open a terminal window and follow a series of commands to add the necessary PPA and install the software. Here's a step-by-step guide:

  1. Open a terminal window.
  2. Add the necessary PPA with the command `sudo add-apt-repository ppa:alessandro-strada/ppa`.
  3. Update app with the command `sudo apt-get update`.
  4. Install the software by issuing the command `sudo apt-get install google-drive-ocamlfuse`.

Install and Open Desktop

To set up Google Drive on your desktop, you'll need to download the Drive for desktop application. You can do this by visiting the Google Drive website and clicking on the download links for Windows or Mac.

The installation process is straightforward, but the location of the Drive for desktop menu varies depending on your computer. On Windows, you'll find it at the bottom right of your screen, while on a Mac, it's located at the top right.

To open Drive for desktop, follow the instructions specific to your operating system. If you're using a Mac, you can find the menu at the top right of your screen, while Windows users will find it at the bottom right.

Setting Up Rclone

Credit: youtube.com, A Beginner's Guide To Rclone

To set up Rclone, you'll need to install it on your computer first. Rclone works on Linux-based operating systems, BSD, and Windows with some tweaking.

You'll need to create a new project in the Google Cloud Developer Console. To do this, search for and enable the Google Drive API in the ENABLE APIS AND SERVICES section.

You'll need to create credentials for the API, which you can do by clicking the Credentials tab and then Create credentials. You'll also need to configure the consent screen, which you can do by clicking CONFIGURE CONSENT SCREEN, External, and then CREATE.

You'll need to enter rclone as the application name and save it. This will set up one of those "sign in with Google" screens for yourself.

You'll need to generate the needed API keys for Rclone, which you can do by clicking + CREATE CREDENTIALS and selecting OAuth client ID. You'll need to set the application type to Desktop app and press Create.

Credit: youtube.com, How To Use Rclone For Windows

To link Rclone to your account(s), you'll need to follow the instructions shown, which may include enabling an API. You'll also need to run rclone config to set up a configuration for Google Drive.

You'll be prompted with many options when running rclone config, but you can use the following: rclone ls my_drive:. This will ask you to enable an API, which you should do.

Mounting Google Drive

Mounting Google Drive is a straightforward process that allows you to access your cloud storage as a local drive on your device.

You can use CloudMounter, a tool designed to work with various cloud services, including Google Drive. It's compatible with both macOS and Windows, and provides a range of features to boost security and make file management easier.

First, download and install CloudMounter on your device. Then, open the app and click on "New Drive" to create a new drive. Select "Mount" to connect your Google Drive to your local device.

Here's an interesting read: Google Cloud and Google Drive Difference

Credit: youtube.com, How to mount Google Drive to Google Colab

Alternatively, you can use a command-line approach to mount your Google Drive. Create a new folder to serve as the mount point, and then issue the command `google-drive-ocamlfuse` to mount your Google Drive to that folder.

Once your Google Drive is mounted, you can access it as if it were a local folder system. You can work with your files and folders, and even read CSV files using the `pandas` library in Google Colab.

Authentication

To authenticate with Google Drive, you'll need to authorize google-drive-ocamlfuse.

The authorization process starts with issuing the command google-drive-ocamlfuse in the terminal window, which will open a browser window.

You'll either be prompted to log into your Google account or asked to allow google-drive-ocamlfuse access to your Google account, depending on your current login status.

If you're not logged in, log in and then click Allow to proceed.

You'll then be asked to grant permission for both gdfuse and OAuth2 Endpoint to access your Google account, which requires clicking Allow again.

After that, you'll see a browser screen instructing you to wait until the authorization tokens have downloaded.

You can minimize the browser at this point, and when your terminal prompt returns, you'll know the tokens have been downloaded and you're ready to mount.

Google Drive

Credit: youtube.com, How to Mount Google Drive in Google Colab (Quick & Easy Tutorial!)

To mount your Google Drive, you'll need to create a folder to serve as the mount point. You can do this by issuing the command `mkdir ~/google-drive` in the terminal.

This will create a new folder in your home directory, where your Google Drive files and folders will be stored. The command `google-drive-ocamlfuse ~/google-drive` is then used to mount your Google Drive to the google-drive folder.

You should see your Google Drive files and folders populate in the google-drive folder immediately. To work with Google Drive, you can simply interact with it as if it were a local folder system.

If you need to unmount the google-drive folder, issue the command `fusermount -u ~/google-drive`.

Gilbert Deckow

Senior Writer

Gilbert Deckow is a seasoned writer with a knack for breaking down complex technical topics into engaging and accessible content. With a focus on the ever-evolving world of cloud computing, Gilbert has established himself as a go-to expert on Azure Storage Options and related topics. Gilbert's writing style is characterized by clarity, precision, and a dash of humor, making even the most intricate concepts feel approachable and enjoyable to read.

Love What You Read? Stay Updated!

Join our community for insights, tips, and more.