linux and cli

Google Drive Mount to Ubuntu Filesystem

gimslab.com 2023. 10. 9. 00:01
need to install google-drive-ocamlfuse

 

and write a script to mount
$ cat /home/{USERID}/bin/gdfuse.sh 
#!/bin/bash
su {USERID} -l -c "google-drive-ocamlfuse -label $1 $*"
exit 0

 

make a directory as a mount point
mkdir /home/{USERID}/GoogleDrive

 

apply to fstab to auto mount when boot
$ cat /etc/fstab | grep gdfuse
/home/{USERID}/bin/gdfuse.sh#default	/home/{USERID}/GoogleDrive fuse uid=1000,gid=1000,allow_other,user 0 0

 

from http://wiki.gimslab.com/moniwiki/wiki.php/Google%20Drive%20Mount%20to%20Ubuntu