Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

google-drive-ocamlfuse does not work, because it tries to open autorun.inf which does not exist on my GoogleDrive #902

Open
bitranox opened this issue Jan 12, 2025 · 0 comments

Comments

@bitranox
Copy link

bitranox commented Jan 12, 2025

google-drive-ocamlfuse does not work in my case, because it searches for files which do not exist on my GoogleDrive,
therefore google-drive-ocamlfuse ends with an error.

the solution is, to put it in debug mode, send the output to /dev/null and send it to the background.

with this command, the drive is not mounted :

srvadmin@lxc-pydev:~$ google-drive-ocamlfuse -o allow-other /home/srvadmin/GoogleDrive
srvadmin@lxc-pydev:~$ cd ~/GoogleDrive
bash: cd: /home/srvadmin/GoogleDrive: Der Socket ist nicht verbunden

with this command, the drive is mounted, but You can see that it throws an error -2 because it can not find autorun.inf (because it does not exist on my GoogleDrive). The process continues to run, because it is in foreground mode, and the drive mounts fine:

srvadmin@lxc-pydev:~$ google-drive-ocamlfuse -d -o allow-other /home/srvadmin/GoogleDrive
FUSE library version: 2.9.9
nullpath_ok: 0
nopath: 0
utime_omit_ok: 0
unique: 2, opcode: INIT (26), nodeid: 0, insize: 104, pid: 0
INIT: 7.40
flags=0x73fffffb
max_readahead=0x00020000
   INIT: 7.19
   flags=0x00000031
   max_readahead=0x00020000
   max_write=0x00020000
   max_background=0
   congestion_threshold=0
   unique: 2, success, outsize: 40
unique: 4, opcode: ACCESS (34), nodeid: 1, insize: 48, pid: 3196
   unique: 4, error: -38 (Function not implemented), outsize: 16
unique: 6, opcode: LOOKUP (1), nodeid: 1, insize: 47, pid: 3196
LOOKUP /.Trash
getattr /.Trash
unique: 8, opcode: STATFS (17), nodeid: 1, insize: 40, pid: 1873
statfs /
unique: 10, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 2261
opendir flags: 0x18800 /
   unique: 8, success, outsize: 96
   NODEID: 2
   unique: 6, success, outsize: 144
unique: 12, opcode: LOOKUP (1), nodeid: 1, insize: 57, pid: 30474
LOOKUP /.xdg-volume-info
getattr /.xdg-volume-info
unique: 14, opcode: LOOKUP (1), nodeid: 2, insize: 45, pid: 3196
LOOKUP /.Trash/1000
getattr /.Trash/1000
   opendir[0] flags: 0x18800 /
   unique: 10, success, outsize: 32
unique: 16, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 2261
getattr /
   unique: 16, success, outsize: 120
   unique: 12, error: -2 (No such file or directory), outsize: 16
unique: 18, opcode: LOOKUP (1), nodeid: 1, insize: 52, pid: 30475
LOOKUP /autorun.inf
getattr /autorun.inf
   unique: 14, error: -2 (No such file or directory), outsize: 16
   unique: 18, error: -2 (No such file or directory), outsize: 16
...
...

** solution 1 **
create the missing file, in this case autorun.inf on the GoogleDrive - which i dont like

** solution 2 **
create the file /usr/bin/gdfuse like described in Automounting
and change the content to :

#!/bin/bash
# /usr/bin/gdfuse
# original : 
# su $USERNAME -l -c "google-drive-ocamlfuse -label $1 $*"
# su srvadmin -l -c "google-drive-ocamlfuse -label $1 $*"
# bitranox note : 
# However, google-drive-ocamlfuse expects the file autorun.inf
# on Google Drive - if it does not exist, google-drive-ocamlfuse simply stops.
# In debug mode, it does not stop, so we redirect the output to >/dev/null
# and send the task to the background with "&".
# su srvadmin -l -c "google-drive-ocamlfuse -d -label $1 $*"  > /dev/null 2>&1 &
# or better : 
su srvadmin -l -c "google-drive-ocamlfuse -f -label $1 $*"  > /dev/null 2>&1 &
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant