Mounting google drive remote folder in linux debian never completes

What is the problem you are having with rclone?

I'm trying with the command rclone mount remote:path/to/files /path/to/local/mount, to mount a folder from my google drive to my local system.
The output is that the cursor in the terminal never comes back, which means that the command is not complete (i suppose), although in another tab of the terminal i can see the folder that i tried to mount and i can change it's contents, for example rename a file.
When i'm pressing ctrl+c the message is

^C2019/09/09 19:59:45 Fatal error: failed to umount FUSE fs: exit status 1: fusermount: failed to unmount /home/ypatis/gdrive/χαρτες: Device or resource busy

and if i try to 'ls' the mounted folder the output is

ls: cannot open directory '.': Η άκρη μεταφοράς δεν είναι συνδεδεμένη
The next command that i'm giving is fusermount -u path/to/local/mount to umount the folder.

Am i doing something wrong? How can i mount correctly a folder. Also i'm interested to mount folder from google drive that are shared with me.

What is your rclone version (output from rclone version)

v1.45

Which OS you are using and how many bits (eg Windows 7, 64 bit)

debian-buster, i386

Which cloud storage system are you using? (eg Google Drive)

Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone mount remote:path/to/files /path/to/local/mount

A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)

ypatis@ratraceoff:~/gdrive$ rclone mount -vv gdrive:χαρτες /home/ypatis/gdrive/χαρτες/
2019/09/09 20:19:37 DEBUG : rclone: Version "v1.45" starting with parameters ["rclone" "mount" "-vv" "gdrive:χαρτες" "/home/ypatis/gdrive/χαρτες/"]
2019/09/09 20:19:37 DEBUG : Using config file from "/home/ypatis/.config/rclone/rclone.conf"
2019/09/09 20:19:40 DEBUG : Google drive root 'χαρτες': Mounting on "/home/ypatis/gdrive/χαρτες/"
2019/09/09 20:19:41 DEBUG : Adding path "vfs/forget" to remote control registry
2019/09/09 20:19:41 DEBUG : Adding path "vfs/refresh" to remote control registry
2019/09/09 20:19:41 DEBUG : Adding path "vfs/poll-interval" to remote control registry
2019/09/09 20:19:41 DEBUG : : Root:
2019/09/09 20:19:41 DEBUG : : >Root: node=/, err=
2019/09/09 20:19:41 DEBUG : /: Lookup: name="BDMV"
2019/09/09 20:19:41 DEBUG : /: Attr:
2019/09/09 20:19:41 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2019/09/09 20:19:42 DEBUG : /: >Lookup: node=, err=no such file or directory
2019/09/09 20:19:42 DEBUG : /: Lookup: name=".xdg-volume-info"
2019/09/09 20:19:42 DEBUG : /: >Lookup: node=, err=no such file or directory
2019/09/09 20:19:42 DEBUG : /: Lookup: name="autorun.inf"
2019/09/09 20:19:42 DEBUG : /: >Lookup: node=, err=no such file or directory
2019/09/09 20:19:42 DEBUG : /: Lookup: name=".Trash"
2019/09/09 20:19:42 DEBUG : /: >Lookup: node=, err=no such file or directory
2019/09/09 20:19:42 DEBUG : /: ReadDirAll:
2019/09/09 20:19:42 DEBUG : /: >ReadDirAll: item=1, err=
2019/09/09 20:19:42 DEBUG : /: Lookup: name=".Trash-1000"
2019/09/09 20:19:42 DEBUG : /: >Lookup: node=, err=no such file or directory
2019/09/09 20:19:42 DEBUG : /: Attr:
2019/09/09 20:19:42 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2019/09/09 20:19:42 DEBUG : /: ReadDirAll:
2019/09/09 20:19:42 DEBUG : /: >ReadDirAll: item=1, err=
2019/09/09 20:19:42 DEBUG : /: Attr:
2019/09/09 20:19:42 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2019/09/09 20:19:42 DEBUG : /: ReadDirAll:
2019/09/09 20:19:42 DEBUG : /: >ReadDirAll: item=1, err=
2019/09/09 20:19:42 DEBUG : /: Attr:
2019/09/09 20:19:42 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2019/09/09 20:19:42 DEBUG : /: ReadDirAll:
2019/09/09 20:19:42 DEBUG : /: >ReadDirAll: item=1, err=
2019/09/09 20:19:42 DEBUG : /: Attr:
2019/09/09 20:19:42 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2019/09/09 20:19:42 DEBUG : /: ReadDirAll:
2019/09/09 20:19:42 DEBUG : /: >ReadDirAll: item=1, err=
2019/09/09 20:19:42 DEBUG : /: Attr:
2019/09/09 20:19:42 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2019/09/09 20:19:42 DEBUG : /: ReadDirAll:
2019/09/09 20:19:42 DEBUG : /: >ReadDirAll: item=1, err=
2019/09/09 20:19:42 DEBUG : /: Attr:
2019/09/09 20:19:42 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2019/09/09 20:19:42 DEBUG : /: ReadDirAll:
2019/09/09 20:19:42 DEBUG : /: >ReadDirAll: item=1, err=
2019/09/09 20:19:42 DEBUG : /: Attr:
2019/09/09 20:19:42 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2019/09/09 20:19:42 DEBUG : /: ReadDirAll:
2019/09/09 20:19:42 DEBUG : /: >ReadDirAll: item=1, err=
2019/09/09 20:19:42 DEBUG : /: Attr:
2019/09/09 20:19:42 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2019/09/09 20:19:42 DEBUG : /: ReadDirAll:
2019/09/09 20:19:42 DEBUG : /: >ReadDirAll: item=1, err=
2019/09/09 20:19:42 DEBUG : /: Attr:
2019/09/09 20:19:42 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2019/09/09 20:19:42 DEBUG : /: ReadDirAll:
2019/09/09 20:19:42 DEBUG : /: >ReadDirAll: item=1, err=
2019/09/09 20:19:42 DEBUG : /: Attr:
2019/09/09 20:19:42 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2019/09/09 20:19:42 DEBUG : /: ReadDirAll:
2019/09/09 20:19:42 DEBUG : /: >ReadDirAll: item=1, err=
2019/09/09 20:19:42 DEBUG : /: Attr:
2019/09/09 20:19:42 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2019/09/09 20:19:42 DEBUG : /: ReadDirAll:
2019/09/09 20:19:42 DEBUG : /: >ReadDirAll: item=1, err=
2019/09/09 20:19:42 DEBUG : /: Attr:
2019/09/09 20:19:42 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2019/09/09 20:19:42 DEBUG : /: ReadDirAll:
2019/09/09 20:19:42 DEBUG : /: >ReadDirAll: item=1, err=
2019/09/09 20:19:42 DEBUG : /: Attr:
2019/09/09 20:19:42 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2019/09/09 20:19:42 DEBUG : /: ReadDirAll:
2019/09/09 20:19:42 DEBUG : /: >ReadDirAll: item=1, err=
2019/09/09 20:19:42 DEBUG : /: Attr:
2019/09/09 20:19:42 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2019/09/09 20:19:42 DEBUG : /: ReadDirAll:
2019/09/09 20:19:42 DEBUG : /: >ReadDirAll: item=1, err=
2019/09/09 20:19:42 DEBUG : /: Attr:
2019/09/09 20:19:42 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2019/09/09 20:19:42 DEBUG : /: ReadDirAll:
2019/09/09 20:19:42 DEBUG : /: >ReadDirAll: item=1, err=
2019/09/09 20:19:42 DEBUG : /: Attr:
2019/09/09 20:19:42 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2019/09/09 20:19:42 DEBUG : /: ReadDirAll:
2019/09/09 20:19:42 DEBUG : /: >ReadDirAll: item=1, err=
2019/09/09 20:19:42 DEBUG : /: Attr:
2019/09/09 20:19:42 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2019/09/09 20:19:42 DEBUG : /: ReadDirAll:
2019/09/09 20:19:42 DEBUG : /: >ReadDirAll: item=1, err=
2019/09/09 20:19:42 DEBUG : /: Attr:
2019/09/09 20:19:42 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2019/09/09 20:19:42 DEBUG : /: ReadDirAll:
2019/09/09 20:19:42 DEBUG : /: >ReadDirAll: item=1, err=
2019/09/09 20:19:42 DEBUG : /: Attr:
2019/09/09 20:19:42 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2019/09/09 20:19:42 DEBUG : /: ReadDirAll:
2019/09/09 20:19:42 DEBUG : /: >ReadDirAll: item=1, err=
2019/09/09 20:19:42 DEBUG : /: Attr:
2019/09/09 20:19:42 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2019/09/09 20:19:42 DEBUG : /: ReadDirAll:
2019/09/09 20:19:42 DEBUG : /: >ReadDirAll: item=1, err=
2019/09/09 20:19:42 DEBUG : /: Attr:
2019/09/09 20:19:42 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2019/09/09 20:19:42 DEBUG : /: ReadDirAll:
2019/09/09 20:19:42 DEBUG : /: >ReadDirAll: item=1, err=
2019/09/09 20:19:42 DEBUG : /: Attr:
2019/09/09 20:19:42 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2019/09/09 20:19:42 DEBUG : /: ReadDirAll:
2019/09/09 20:19:42 DEBUG : /: >ReadDirAll: item=1, err=
2019/09/09 20:19:42 DEBUG : /: Lookup: name="autorun.inf"
2019/09/09 20:19:42 DEBUG : /: >Lookup: node=, err=no such file or directory
2019/09/09 20:20:41 DEBUG : Google drive root 'χαρτες': Checking for changes on remote
2019/09/09 20:21:41 DEBUG : Google drive root 'χαρτες': Checking for changes on remote

I see how you think this, but it's the opposite. rclone mount runs in the foreground.

Pressing ctrl-c, sends the sigterm, but you can remedy the error you get by using fuersmount -uz /path/to/local

Try opening up two terminal connections to your machine. Execute the mount command on one, and use the other to confirm it worked by navigating to the local path and doing a standard ls.

to run the mount in the background/daemon, run it as a service. @Animosity022 and several others online have examples of this, although I prefer @Animosity022 as found on his github repo: https://raw.githubusercontent.com/animosity22/homescripts/master/systemd/rclone.service

@ncw answered this question here: GDrive: How to access the "Shared with me" subdirectory/area?

Thank you for your answer. Can you please give me some information or a link about how should i create the script. I never before created a script. I should copy the text in the link, open nano and create a new file and then save it where?

With instructions that i found here i copied the script of @Animosity022 and saved it in /etc/systemd/system. Now i can see the rclone process in my system but the problems remains, that when i'm giving the command mount the rclone is running in the foreground and the cursor never returns.

Also when the mounting is happening nothing is downloaded from google drive folder to my disk folder.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.