Let’s get straight to it. Before doing anything fancy, make sure rclone is installed. Use whatever package manager your distro ships with—on my Arch box it’s simply sudo pacman -S rclone.
Create the Google Drive remote
- Run
rclone configin your terminal. - Pick
n) New remote→ typenand press Enter. - Give it a name. I called mine
gdrive-ripa—choose whatever makes sense for you. - Select Google Drive as the storage type (in my menu it was option 18).
- Leave
client_idandclient_secretempty unless you have your own OAuth credentials. - For the scope, I go with option 1: Full access to all files (drive).
- Skip
service_account_fileunless you know you need it. - When asked about advanced config, I answer
n) No. - Say
yto open a browser window for authentication, then sign in with the Google account you want to expose to rclone. - I don’t use Shared Drives, so I answer
n) Noto that prompt too. - Confirm everything with
y) Yes this is OKwhen rclone summarizes the remote.
You should now see something like this:
Current remotes:
Name Type
==== ====
gdrive-ripa drive
e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> q
Hit q (or Ctrl+C) to exit the config tool.
Mount the remote
Create a folder that will act like your “Google Drive” view. I use
mkdir ~/Google-Drive.Mount the remote to that folder:
ripa@arch:[~]$ rclone mount gdrive-ripa: ~/Google-Drive/
Keep that terminal window open—rclone mount runs in the foreground. Peek inside ~/Google-Drive/ and you should see the same contents as your actual Drive. If everything looks good, congrats, the mount works.
To unmount, just close the terminal or hit
Ctrl+Cin the window that’s runningrclone mount.Want it in the background? Add
&to the command:ripa@arch:[~]$ rclone mount gdrive-ripa: ~/Google-Drive/ &
That’s it—now your Google Drive behaves like any other folder on your system.