20

Recently, Arch linux ships gvfs-google package in order to mount Google Drive using Gnome Online Accounts (gvfs-goa). However, since I am using Cinnamon desktop rather than Gnome, it seems that this integration does not properly work.

As of now I used to sync Google Drive manually using drive. Is there a way to mount Google Drive using gvfs-google on the command line?

2
  • 1
    Did you solve this? I'm on XFCE. Commented Jan 13, 2016 at 12:07
  • 1
    Unfortunately, no.
    – Florian
    Commented Jan 13, 2016 at 14:16

3 Answers 3

6

You need to install via pacman gnome-control-center and add your account from that Gnome component. Unfortunately, that means a ton of annoying Gnome dependencies come with this Gnome component to use the gvfs plugin for drive.

The other option is to install a bunch of ocaml dependencies with google-drive-ocamlfuse in AUR and go that route. I haven't been able to get google-drive-ocamlfuse to compile without creating soft link garbage on the filesystem.

1
  • 2
    According to this issue gnome-control-center should not run outside GNOME.
    – ntd
    Commented Nov 1, 2018 at 14:36
3
gio mount google-drive://[email protected]

GVFS Bug 796064 - impossible to mount

1
0

Are you able to mount it via GUI?
I believe you are looking for the gvfs-mount command.
I'm assuming that you already authenticated successfully.
When running gvfs-mount --list, you should get something like this:

Drive(0): ST1000DM003-1ER162
  Type: GProxyDrive (GProxyVolumeMonitorUDisks2)
  Volume(0): OS
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
Drive(1): HL-DT-ST DVD+/-RW GTA0N
  Type: GProxyDrive (GProxyVolumeMonitorUDisks2)
Volume(0): [email protected]
  Type: GProxyVolume (GProxyVolumeMonitorGoa)

For mounting, try:

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

And for unmounting:

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

Both commands return no output on success. For me, it mounts at:

/run/user/1000/gvfs/google-drive:host=gmail.com,user=address/

Replace address with the correct address in the above commands.

2
  • 8
    I get "Invalid mount spec" when trying to mount using this command. And the manual is less than helpful about what is a valid mount spec…
    – l0b0
    Commented Nov 19, 2016 at 11:06
  • It seems the address is case-sensitive. At least this triggered the "invalid mount spec" for me.
    – t.animal
    Commented Apr 24, 2020 at 7:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .