A
A
Alex2018-12-13 20:50:07
Google Drive
Alex, 2018-12-13 20:50:07

How to add Google Drive to autoplay?

Good afternoon!
I'm trying to add Google Drive to autostart on system reboot (Debian 9):
I create a script /usr/bin/gdfuse with permissions 755 with the following content:

#!/bin/bash
google-drive-ocamlfuse -label $1 $*
exit 0

I add to the /etc/fstab file:
gdfuse#default /root/gdrive fuse uid=0,gid=0,allow_other,user,_netdev 0 0
And after a reboot, Google Drive is not mounted.
The mount ~/gdrive command gives an error:
# mount ~/gdrive
mount: wrong fs type, bad option, bad superblock on gdfuse#default,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
You can mount Google Drive manually with the command:
google-drive-ocamlfuse -label me /root/gdrive
This is how everything works and the drive is mounted. But with autoload - no.
What is the mistake - I can not understand in any way?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question