Score:5

Mount Google Drive automatically at startup (as in Nautilus)

ng flag

I use the mount point /run/user/<user_id>/gvfs/google-drive:host=<host>\,user=<username>/<folder_id>/ in an automated backup script to copy some files on Google Drive regularly, and it works well.

However, I need to click first on the Google Drive icon in Nautilus so that Google Drive is mounted. Is there a way to mount Google Drive automatically at startup?

Score:5
cn flag

To automount, you will need to find a command that does that through the command line. Try mounting a Google drive that is correctly configured through Gnome control center through the command line with:

gio mount google-drive://[email protected]/

Unmount:

gio mount -u google-drive://[email protected]/

Mount your drive using nautilus. You can then see the mount in the output of

gio mount -l

Once you have that command, include it in your autostart programs to have it executed automatically after login.

Marc avatar
ng flag
Thanks! It works
Score:1
in flag

google-drive-ocamlfuse seems to be what you’re looking for. You can use that to authenticate and mount Google Drive to your system. You can then use something like systemd to mount it on startup. Check out this tutorial on the matter:

https://www.xmodulo.com/mount-google-drive-linux.html

There are also other mounting options if you don’t want to use systemd.

Marc avatar
ng flag
Thanks, I cannot tag your answer as useful. I would prefer not to add third-party app to the already working out-of-the box online account in Nautilus however...
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.