pi@pi:/media/tv_shows $ sudo systemctl status gdrive-team_tv-shows
● gdrive-team_tv-shows.service - gdrive-team_media_tv-shows_mount
Loaded: loaded (/etc/systemd/system/gdrive-team_tv-shows.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2019-08-28 11:38:44 IST; 12h ago
Main PID: 1005 (rclone)
Tasks: 15 (limit: 2200)
Memory: 7.0M
CGroup: /system.slice/gdrive-team_tv-shows.service
└─1005 /usr/bin/rclone mount --config=/home/pi/.config/rclone/rclone.conf --allow-other --allow-non-empty --fast-list media:TV\ Shows/ /media/tv_shows
Aug 28 11:38:42 pi systemd[1]: Starting gdrive-team_media_tv-shows_mount...
Aug 28 11:38:44 pi systemd[1]: Started gdrive-team_media_tv-shows_mount.
rclone v1.48.0
- os/arch: linux/arm
- go version: go1.12.6
df also shows the volume as mounted, and if I run mount --config=/home/pi/.config/rclone/rclone.conf --daemon --allow-other --fast-list media:TV\ Shows/ /media/tv_shows
after I unmount it, I'm able to access the files.
2019/08/29 21:01:38 DEBUG : rclone: Version "v1.48.0" starting with parameters ["/usr/bin/rclone" "mount" "--config=/home/pi/.config/rclone/rclone.conf" "--allow-other" "--log-level" "DEBUG" "--log-file" "/opt/rclone.log" "media:TV\\ Shows/ /media/tv_shows"]
Usage:
rclone mount remote:path /path/to/mountpoint [flags]
Flags:
--allow-non-empty Allow mounting over a non-empty directory.
--allow-other Allow access to other users.
--allow-root Allow access to root user.
--attr-timeout duration Time for which file/directory attributes are cached. (default 1s)
--daemon Run mount as a daemon (background mode).
--daemon-timeout duration Time limit for rclone to respond to kernel (not supported by all OSes).
--debug-fuse Debug the FUSE internals - needs -v.
--default-permissions Makes kernel enforce access control based on the file mode.
--dir-cache-time duration Time to cache directory entries for. (default 5m0s)
--dir-perms FileMode Directory permissions (default 0777)
--file-perms FileMode File permissions (default 0666)
--fuse-flag stringArray Flags or arguments to be passed direct to libfuse/WinFsp. Repeat if required.
--gid uint32 Override the gid field set by the filesystem. (default 1000)
-h, --help help for mount
--max-read-ahead SizeSuffix The number of bytes that can be prefetched for sequential reads. (default 128k)
--no-checksum Don't compare checksums on up/download.
--no-modtime Don't read/write the modification time (can speed things up).
--no-seek Don't allow seeking in files.
-o, --option stringArray Option for libfuse/WinFsp. Repeat if required.
--poll-interval duration Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable. (default 1m0s)
--read-only Mount read-only.
--uid uint32 Override the uid field set by the filesystem. (default 1000)
--umask int Override the permission bits set by the filesystem.
--vfs-cache-max-age duration Max age of objects in the cache. (default 1h0m0s)
--vfs-cache-max-size SizeSuffix Max total size of objects in the cache. (default off)
--vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off)
--vfs-cache-poll-interval duration Interval to poll the cache for stale objects. (default 1m0s)
--vfs-read-chunk-size SizeSuffix Read the source objects in chunks. (default 128M)
--vfs-read-chunk-size-limit SizeSuffix If greater than --vfs-read-chunk-size, double the chunk size after each chunk read, until the limit is reached. 'off' is unlimited. (default off)
--volname string Set the volume name (not supported by all OSes).
--write-back-cache Makes kernel buffer writes before sending them to rclone. Without this, writethrough caching is used.
Use "rclone [command] --help" for more information about a command.
Use "rclone help flags" for to see the global flags.
Use "rclone help backends" for a list of supported services.
Command mount needs 2 arguments minimum: you provided 1 non flag arguments: ["media:TV\\ Shows/ /media/tv_shows"]
2019/08/29 21:01:49 DEBUG : rclone: Version "v1.48.0" starting with parameters ["/usr/bin/rclone" "mount" "--config=/home/pi/.config/rclone/rclone.conf" "--allow-other" "--log-level" "DEBUG" "--log-file" "/opt/rclone.log" "media:TV\\ Shows/ /media/tv_shows"]
Usage:
rclone mount remote:path /path/to/mountpoint [flags]
Flags:
--allow-non-empty Allow mounting over a non-empty directory.
--allow-other Allow access to other users.
--allow-root Allow access to root user.
--attr-timeout duration Time for which file/directory attributes are cached. (default 1s)
--daemon Run mount as a daemon (background mode).
--daemon-timeout duration Time limit for rclone to respond to kernel (not supported by all OSes).
--debug-fuse Debug the FUSE internals - needs -v.
--default-permissions Makes kernel enforce access control based on the file mode.
--dir-cache-time duration Time to cache directory entries for. (default 5m0s)
--dir-perms FileMode Directory permissions (default 0777)
--file-perms FileMode File permissions (default 0666)
--fuse-flag stringArray Flags or arguments to be passed direct to libfuse/WinFsp. Repeat if required.
--gid uint32 Override the gid field set by the filesystem. (default 1000)
-h, --help help for mount
--max-read-ahead SizeSuffix The number of bytes that can be prefetched for sequential reads. (default 128k)
--no-checksum Don't compare checksums on up/download.
--no-modtime Don't read/write the modification time (can speed things up).
--no-seek Don't allow seeking in files.
-o, --option stringArray Option for libfuse/WinFsp. Repeat if required.
--poll-interval duration Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable. (default 1m0s)
--read-only Mount read-only.
--uid uint32 Override the uid field set by the filesystem. (default 1000)
--umask int Override the permission bits set by the filesystem.
--vfs-cache-max-age duration Max age of objects in the cache. (default 1h0m0s)
--vfs-cache-max-size SizeSuffix Max total size of objects in the cache. (default off)
--vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off)
--vfs-cache-poll-interval duration Interval to poll the cache for stale objects. (default 1m0s)
--vfs-read-chunk-size SizeSuffix Read the source objects in chunks. (default 128M)
--vfs-read-chunk-size-limit SizeSuffix If greater than --vfs-read-chunk-size, double the chunk size after each chunk read, until the limit is reached. 'off' is unlimited. (default off)
--volname string Set the volume name (not supported by all OSes).
--write-back-cache Makes kernel buffer writes before sending them to rclone. Without this, writethrough caching is used.
Use "rclone [command] --help" for more information about a command.
Use "rclone help flags" for to see the global flags.
Use "rclone help backends" for a list of supported services.
Command mount needs 2 arguments minimum: you provided 1 non flag arguments: ["media:TV\\ Shows/ /media/tv_shows"]
2019/08/29 21:01:59 DEBUG : rclone: Version "v1.48.0" starting with parameters ["/usr/bin/rclone" "mount" "--config=/home/pi/.config/rclone/rclone.conf" "--allow-other" "--log-level" "DEBUG" "--log-file" "/opt/rclone.log" "media:TV\\ Shows/ /media/tv_shows"]
Usage:
rclone mount remote:path /path/to/mountpoint [flags]
Flags:
--allow-non-empty Allow mounting over a non-empty directory.
--allow-other Allow access to other users.
--allow-root Allow access to root user.
--attr-timeout duration Time for which file/directory attributes are cached. (default 1s)
--daemon Run mount as a daemon (background mode).
--daemon-timeout duration Time limit for rclone to respond to kernel (not supported by all OSes).
--debug-fuse Debug the FUSE internals - needs -v.
--default-permissions Makes kernel enforce access control based on the file mode.
--dir-cache-time duration Time to cache directory entries for. (default 5m0s)
--dir-perms FileMode Directory permissions (default 0777)
--file-perms FileMode File permissions (default 0666)
--fuse-flag stringArray Flags or arguments to be passed direct to libfuse/WinFsp. Repeat if required.
--gid uint32 Override the gid field set by the filesystem. (default 1000)
-h, --help help for mount
--max-read-ahead SizeSuffix The number of bytes that can be prefetched for sequential reads. (default 128k)
--no-checksum Don't compare checksums on up/download.
--no-modtime Don't read/write the modification time (can speed things up).
--no-seek Don't allow seeking in files.
-o, --option stringArray Option for libfuse/WinFsp. Repeat if required.
--poll-interval duration Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable. (default 1m0s)
--read-only Mount read-only.
--uid uint32 Override the uid field set by the filesystem. (default 1000)
--umask int Override the permission bits set by the filesystem.
--vfs-cache-max-age duration Max age of objects in the cache. (default 1h0m0s)
--vfs-cache-max-size SizeSuffix Max total size of objects in the cache. (default off)
--vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off)
--vfs-cache-poll-interval duration Interval to poll the cache for stale objects. (default 1m0s)
--vfs-read-chunk-size SizeSuffix Read the source objects in chunks. (default 128M)
--vfs-read-chunk-size-limit SizeSuffix If greater than --vfs-read-chunk-size, double the chunk size after each chunk read, until the limit is reached. 'off' is unlimited. (default off)
--volname string Set the volume name (not supported by all OSes).
--write-back-cache Makes kernel buffer writes before sending them to rclone. Without this, writethrough caching is used.
Use "rclone [command] --help" for more information about a command.
Use "rclone help flags" for to see the global flags.
Use "rclone help backends" for a list of supported services.
Command mount needs 2 arguments minimum: you provided 1 non flag arguments: ["media:TV\\ Shows/ /media/tv_shows"]
2019/08/29 21:02:09 DEBUG : rclone: Version "v1.48.0" starting with parameters ["/usr/bin/rclone" "mount" "--config=/home/pi/.config/rclone/rclone.conf" "--allow-other" "--log-level" "DEBUG" "--log-file" "/opt/rclone.log" "media:TV\\ Shows/" "/media/tv_shows"]
2019/08/29 21:02:09 DEBUG : Using config file from "/home/pi/.config/rclone/rclone.conf"
2019/08/29 21:02:11 DEBUG : Google drive root 'TV\ Shows': Mounting on "/media/tv_shows"
2019/08/29 21:02:11 DEBUG : Adding path "vfs/forget" to remote control registry
2019/08/29 21:02:11 DEBUG : Adding path "vfs/refresh" to remote control registry
2019/08/29 21:02:11 DEBUG : Adding path "vfs/poll-interval" to remote control registry
2019/08/29 21:02:11 DEBUG : : Root:
2019/08/29 21:02:11 DEBUG : : >Root: node=/, err=<nil>
2019/08/29 21:02:12 DEBUG : rclone: Version "v1.48.0" finishing with parameters ["/usr/bin/rclone" "mount" "--config=/home/pi/.config/rclone/rclone.conf" "--allow-other" "--log-level" "DEBUG" "--log-file" "/opt/rclone.log" "media:TV\\ Shows/" "/media/tv_shows"]
2019/08/29 21:02:27 DEBUG : rclone: Version "v1.48.0" starting with parameters ["/usr/bin/rclone" "mount" "--config=/home/pi/.config/rclone/rclone.conf" "--allow-other" "--log-level" "DEBUG" "--log-file" "/opt/rclone.log" "media:TV\\ Shows/" "/media/tv_shows"]
2019/08/29 21:02:27 DEBUG : Using config file from "/home/pi/.config/rclone/rclone.conf"
2019/08/29 21:02:27 DEBUG : pacer: low level retry 1/10 (error Get https://www.googleapis.com/drive/v3/files?alt=json&corpora=teamDrive&fields=files%28id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%29%2CnextPageToken&includeTeamDriveItems=true&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+%28%270AGCJ8uvM_NuyUk9PVA%27+in+parents%29+and+%28name%3D%27TV%5C%5C+Shows%27%29+and+mimeType%3D%27application%2Fvnd.google-apps.folder%27&supportsTeamDrives=true&teamDriveId=0AGCJ8uvM_NuyUk9PVA: dial tcp: lookup www.googleapis.com on 127.0.0.1:53: read udp 127.0.0.1:45869->127.0.0.1:53: read: connection refused)
2019/08/29 21:02:27 DEBUG : pacer: Rate limited, increasing sleep to 1.409466076s
2019/08/29 21:02:27 DEBUG : pacer: low level retry 2/10 (error Get https://www.googleapis.com/drive/v3/files?alt=json&corpora=teamDrive&fields=files%28id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%29%2CnextPageToken&includeTeamDriveItems=true&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+%28%270AGCJ8uvM_NuyUk9PVA%27+in+parents%29+and+%28name%3D%27TV%5C%5C+Shows%27%29+and+mimeType%3D%27application%2Fvnd.google-apps.folder%27&supportsTeamDrives=true&teamDriveId=0AGCJ8uvM_NuyUk9PVA: dial tcp: lookup www.googleapis.com on 127.0.0.1:53: read udp 127.0.0.1:54273->127.0.0.1:53: read: connection refused)
2019/08/29 21:02:27 DEBUG : pacer: Rate limited, increasing sleep to 2.27831833s
2019/08/29 21:02:28 DEBUG : pacer: low level retry 3/10 (error Get https://www.googleapis.com/drive/v3/files?alt=json&corpora=teamDrive&fields=files%28id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%29%2CnextPageToken&includeTeamDriveItems=true&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+%28%270AGCJ8uvM_NuyUk9PVA%27+in+parents%29+and+%28name%3D%27TV%5C%5C+Shows%27%29+and+mimeType%3D%27application%2Fvnd.google-apps.folder%27&supportsTeamDrives=true&teamDriveId=0AGCJ8uvM_NuyUk9PVA: dial tcp: lookup www.googleapis.com on 127.0.0.1:53: read udp 127.0.0.1:57028->127.0.0.1:53: read: connection refused)
2019/08/29 21:02:28 DEBUG : pacer: Rate limited, increasing sleep to 4.289788302s
2019/08/29 21:02:30 DEBUG : pacer: low level retry 4/10 (error Get https://www.googleapis.com/drive/v3/files?alt=json&corpora=teamDrive&fields=files%28id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%29%2CnextPageToken&includeTeamDriveItems=true&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+%28%270AGCJ8uvM_NuyUk9PVA%27+in+parents%29+and+%28name%3D%27TV%5C%5C+Shows%27%29+and+mimeType%3D%27application%2Fvnd.google-apps.folder%27&supportsTeamDrives=true&teamDriveId=0AGCJ8uvM_NuyUk9PVA: dial tcp: lookup www.googleapis.com on 127.0.0.1:53: read udp 127.0.0.1:52988->127.0.0.1:53: read: connection refused)
2019/08/29 21:02:30 DEBUG : pacer: Rate limited, increasing sleep to 8.550772137s
2019/08/29 21:02:36 DEBUG : pacer: Reducing sleep to 0s
2019/08/29 21:02:44 DEBUG : Google drive root 'TV\ Shows': Mounting on "/media/tv_shows"
2019/08/29 21:02:44 DEBUG : Adding path "vfs/forget" to remote control registry
2019/08/29 21:02:44 DEBUG : Adding path "vfs/refresh" to remote control registry
2019/08/29 21:02:44 DEBUG : Adding path "vfs/poll-interval" to remote control registry
2019/08/29 21:02:44 DEBUG : : Root:
2019/08/29 21:02:44 DEBUG : : >Root: node=/, err=<nil>
2019/08/29 21:03:55 DEBUG : Google drive root 'TV\ Shows': Checking for changes on remote
2019/08/29 21:04:55 DEBUG : Google drive root 'TV\ Shows': Checking for changes on remote
2019/08/29 21:05:55 DEBUG : Google drive root 'TV\ Shows': Checking for changes on remote
2019/08/29 21:06:55 DEBUG : Google drive root 'TV\ Shows': Checking for changes on remote
2019/08/29 21:07:55 DEBUG : Google drive root 'TV\ Shows': Checking for changes on remote
2019/08/29 21:08:55 DEBUG : Google drive root 'TV\ Shows': Checking for changes on remote
2019/08/29 21:09:55 DEBUG : Google drive root 'TV\ Shows': Checking for changes on remote
2019/08/29 21:10:11 DEBUG : /: Attr:
2019/08/29 21:10:11 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2019/08/29 21:10:11 DEBUG : /: ReadDirAll:
2019/08/29 21:10:12 DEBUG : /: >ReadDirAll: item=0, err=<nil>
2019/08/29 21:10:55 DEBUG : Google drive root 'TV\ Shows': Checking for changes on remote
2019/08/29 21:11:55 DEBUG : Google drive root 'TV\ Shows': Checking for changes on remote
2019/08/29 21:12:55 DEBUG : Google drive root 'TV\ Shows': Checking for changes on remote
2019/08/29 21:13:55 DEBUG : Google drive root 'TV\ Shows': Checking for changes on remote
2019/08/29 21:14:55 DEBUG : Google drive root 'TV\ Shows': Checking for changes on remote
2019/08/29 21:15:55 DEBUG : Google drive root 'TV\ Shows': Checking for changes on remote
2019/08/29 21:16:55 DEBUG : Google drive root 'TV\ Shows': Checking for changes on remote
2019/08/29 21:16:55 DEBUG : media: Loaded fresh token from config file
2019/08/29 21:16:55 DEBUG : media: Saved new token in config file
2019/08/29 21:17:55 DEBUG : Google drive root 'TV\ Shows': Checking for changes on remote
2019/08/29 21:18:55 DEBUG : Google drive root 'TV\ Shows': Checking for changes on remote
2019/08/29 21:19:55 DEBUG : Google drive root 'TV\ Shows': Checking for changes on remote
I'm not following as without quotes, it won't work as you have spaces in your command:
[felix@gemini ~]$ mkdir "Test Me"
[felix@gemini ~]$ rclone mount GD: /home/felix/Test Me
Usage:
rclone mount remote:path /path/to/mountpoint [flags]
Flags:
--allow-non-empty Allow mounting over a non-empty directory.
--allow-other Allow access to other users.
--allow-root Allow access to root user.
--attr-timeout duration Time for which file/directory attributes are cached. (default 1s)
--daemon Run mount as a daemon (background mode).
--daemon-timeout duration Time limit for rclone to respond to kernel (not supported by all OSes).
--debug-fuse Debug the FUSE internals - needs -v.
--default-permissions Makes kernel enforce access control based on the file mode.
--dir-cache-time duration Time to cache directory entries for. (default 5m0s)
--dir-perms FileMode Directory permissions (default 0777)
--file-perms FileMode File permissions (default 0666)
--fuse-flag stringArray Flags or arguments to be passed direct to libfuse/WinFsp. Repeat if required.
--gid uint32 Override the gid field set by the filesystem. (default 1000)
-h, --help help for mount
--max-read-ahead SizeSuffix The number of bytes that can be prefetched for sequential reads. (default 128k)
--no-checksum Don't compare checksums on up/download.
--no-modtime Don't read/write the modification time (can speed things up).
--no-seek Don't allow seeking in files.
-o, --option stringArray Option for libfuse/WinFsp. Repeat if required.
--poll-interval duration Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable. (default 1m0s)
--read-only Mount read-only.
--uid uint32 Override the uid field set by the filesystem. (default 1000)
--umask int Override the permission bits set by the filesystem.
--vfs-cache-max-age duration Max age of objects in the cache. (default 1h0m0s)
--vfs-cache-max-size SizeSuffix Max total size of objects in the cache. (default off)
--vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off)
--vfs-cache-poll-interval duration Interval to poll the cache for stale objects. (default 1m0s)
--vfs-read-chunk-size SizeSuffix Read the source objects in chunks. (default 128M)
--vfs-read-chunk-size-limit SizeSuffix If greater than --vfs-read-chunk-size, double the chunk size after each chunk read, until the limit is reached. 'off' is unlimited. (default off)
--volname string Set the volume name (not supported by all OSes).
--write-back-cache Makes kernel buffer writes before sending them to rclone. Without this, writethrough caching is used.
Use "rclone [command] --help" for more information about a command.
Use "rclone help flags" for to see the global flags.
Use "rclone help backends" for a list of supported services.
Command mount needs 2 arguments maximum: you provided 3 non flag arguments: ["GD:" "/home/felix/Test" "Me"]
with quotes
[felix@gemini ~]$ rclone mount GD: '/home/felix/Test Me' -vv
2019/08/29 11:55:04 DEBUG : rclone: Version "v1.49.1" starting with parameters ["rclone" "mount" "GD:" "/home/felix/Test Me" "-vv"]
2019/08/29 11:55:04 DEBUG : Using config file from "/opt/rclone/rclone.conf"
2019/08/29 11:55:04 DEBUG : Google drive root '': Mounting on "/home/felix/Test Me"
2019/08/29 11:55:04 DEBUG : Adding path "vfs/forget" to remote control registry
2019/08/29 11:55:04 DEBUG : Adding path "vfs/refresh" to remote control registry
2019/08/29 11:55:04 DEBUG : Adding path "vfs/poll-interval" to remote control registry
2019/08/29 11:55:04 DEBUG : : Root:
2019/08/29 11:55:04 DEBUG : : >Root: node=/, err=<nil>
^C2019/08/29 11:55:06 DEBUG : rclone: Version "v1.49.1" finishing with parameters ["rclone" "mount" "GD:" "/home/felix/Test Me" "-vv"]