Google Drive is a cloud storage service that lets you store your files in cloud storage so that you can access them from any place using any device. Google drive has its client available for Windows, Mac, Android, and iOS; but still, it has not made any client for Linux OS. However, there is a way you can mount and use Google drive using the Gnome Online Accounts.
This guide will explain to you how to do this. The process is very simple and it involves linking the user’s Google Drive account to the Ubuntu Gnome Online Accounts. It also mounts the Google drive to the Ubuntu File Manager through which you can easily access Google drive files and upload new files to it.
Note: We have described the process mentioned here on the Ubuntu 20.04 LTS (Focal Fossa).
Mount and Access Google Drive via Gnome Online Accounts
Follow the below steps in order to mount and access Gnome Online Accounts in Ubuntu OS:
Step 1: Install Gnome Online Accounts
Gnome Online Accounts is by default installed in the Ubuntu system. In case it is missing or removed from your system, it can be installed using the command:
$ sudo apt install gnome-online-accounts
Enter the sudo password after which the installation will be started on your system.
Step 2: Setup Google Drive in Gnome Online Accounts
Open the Gnome Online Accounts utility on your Ubuntu OS. Issue the below command in the Terminal to do so:
$ gnome-control-center online-accounts
Alternatively, you can open the Gnome Online Accounts utility from the GUI. Hit the super key and type online accounts in the search bar. From the search result, click the Online Accounts to launch the utility.
You will see the following view when the Gnome Online Accounts utility opens. Now to setup a Google Drive account in your Ubuntu system, click Google from the Add an account list.
Now enter Gmail account ID and click Next.
Then in the next dialog, enter your password, after that, a dialog will prompt you to grant Gnome access to your online account.
Scroll down and click the Allow button to allow access to Gnome.
Now you will see the following window showing you the services that connect to the Gnome desktop. by default, all the services will be enabled. You can disable or enable the services as per your choice by turning the toggle switch on or off. However, make sure the File service is turned on as you are going to access Google Drive files on your system. Once you are done, close the window.
Now you will see your Google account listed in the Gnome online accounts list.
Step 3: Access Google drive from Nautilus File Manager
Now that you have linked the Google account with Gnome online accounts, you can access Google Drive from the Nautilus File Manager. Launch File Manager and in the left menu of Nautilus File Manager, you will see your Google Drive account with your Gmail account ID as its name.
Now to mount the Google drive and access your files, right-click the drive and select Mount. Alternatively, you can also mount it by just clicking the account.
Now your Google drive will be mounted on your system and you can easily access your drive files and upload new files on it.
Remove Google Drive from Ubuntu
In order to remove the Google Drive account from your system, open the Gnome online accounts utility. Then click the google account you have added for Google drive.
The following window will appear, click the Remove Account button to completely remove the Google drive account from your system.
This is how you can access Google drive on Ubuntu. Now you can easily access your Google Drive files directly from the File Manager.