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.