Can rclone rcd mount a remote as Network Disk on Windows?

What is the problem you are having with rclone?

I can use the command below to mount the remote K20_Pro_WebDav:/ to a Windows Network Disk:

rclone mount "K20_Pro_WebDav:/" "P:" --fuse-flag --VolumePrefix="\server\我的手机" --dir-cache-time 10s  --vfs-cache-mode full

But after running rclone rcd --rc-user gui --rc-pass pass, I can't use any remote rclone command to mount a Network Disk on Windows:

rclone rc mount/mount fs="K20_Pro_WebDav:/" mountPoint="P:" --user "gui" --pass "pass"  -a --fuse-flag -a --VolumePrefix="\server\myPhone"

Whatever I try, it just mount the remote as a normal disk "P:", so is it because my syntax wrong, or the rclone rc command does't support mounting Network Disk on Windows?

What is your rclone version (output from rclone version)

rclone 1.53.1

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

Windows 10 64bit

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

Webdav server by rclone on my phone.

A log from the command with the -vv flag

D:\Users\Haujet>rclone rcd --rc-user gui --rc-pass pass -vv
2020/09/23 14:58:25 DEBUG : rclone: Version "v1.53.1" starting with parameters ["rclone" "rcd" "--rc-user" "gui" "--rc-pass" "pass" "-vv"]
2020/09/23 14:58:25 INFO  : Using --user gui --pass XXXX as authenticated user
2020/09/23 14:58:25 NOTICE: Serving remote control on http://127.0.0.1:5572/
2020/09/23 14:58:39 DEBUG : rc: "mount/mount": with parameters map[arg:[--fuse-flag --VolumePrefix=\server\myPhone] fs:K20_Pro_WebDav:/ mountPoint:P: vfsOpt:{"CacheMode": 2, "DirCacheTime": 10000000}]
2020/09/23 14:58:39 DEBUG : Creating backend with remote "K20_Pro_WebDav:/"
2020/09/23 14:58:39 DEBUG : Using config file from "D:\\Users\\Haujet\\.config\\rclone\\rclone.conf"
2020/09/23 14:58:39 DEBUG : fs cache: renaming cache item "K20_Pro_WebDav:/" to be canonical "K20_Pro_WebDav:"
2020/09/23 14:58:39 INFO  : webdav root '': poll-interval is not supported by this remote
2020/09/23 14:58:39 DEBUG : vfs cache: root is "\\\\?\\D:\\Users\\Haujet\\AppData\\Local\\rclone\\vfs\\K20_Pro_WebDav"
2020/09/23 14:58:39 DEBUG : vfs cache: metadata root is "\\\\?\\D:\\Users\\Haujet\\AppData\\Local\\rclone\\vfs\\K20_Pro_WebDav"
2020/09/23 14:58:39 DEBUG : Creating backend with remote "\\\\?\\D:\\Users\\Haujet\\AppData\\Local\\rclone\\vfs\\K20_Pro_WebDav"
2020/09/23 14:58:39 DEBUG : fs cache: renaming cache item "\\\\?\\D:\\Users\\Haujet\\AppData\\Local\\rclone\\vfs\\K20_Pro_WebDav" to be canonical "//?/D:/Users/Haujet/AppData/Local/rclone/vfs/K20_Pro_WebDav"
2020/09/23 14:58:39 DEBUG : fs cache: switching user supplied name "\\\\?\\D:\\Users\\Haujet\\AppData\\Local\\rclone\\vfs\\K20_Pro_WebDav" for canonical name "//?/D:/Users/Haujet/AppData/Local/rclone/vfs/K20_Pro_WebDav"
2020/09/23 14:58:39 DEBUG : webdav root '': Mounting on "P:"
2020/09/23 14:58:39 DEBUG : webdav root '': Mounting with options: ["-o" "fsname=K20_Pro_WebDav:" "-o" "subtype=rclone" "-o" "max_readahead=131072" "-o" "attr_timeout=1" "-o" "atomic_o_trunc" "-o" "uid=-1" "-o" "gid=-1" "--FileSystemName=rclone"]
2020/09/23 14:58:39 DEBUG : vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item .fooView/.e1d29c03422f2dcc1ae54f2b71578e25.cucom not removed, freed 0 bytes
2020/09/23 14:58:39 DEBUG : vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item .vbyte/593f993a838cbf3648a609c3 not removed, freed 0 bytes
2020/09/23 14:58:39 DEBUG : vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item Music/.thumbcache_idx_001 not removed, freed 0 bytes
2020/09/23 14:58:39 DEBUG : vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item (图片)/学习/98五笔 白底口诀版_1562956364355.jpg not removed, freed 0 bytes
2020/09/23 14:58:39 DEBUG : vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item .DataStorage/ContextData.xml not removed, freed 0 bytes
2020/09/23 14:58:39 DEBUG : vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item .com.taobao.dp/hid.dat not removed, freed 0 bytes
2020/09/23 14:58:39 DEBUG : vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item .com.taobao.dp/hid.dat.new not removed, freed 0 bytes

Can you try by adding mountType=cmount to the rc command?

It still mounting as a normal disk:

rclone rc mount/mount fs="K20Pro_sdcard:/" mountPoint="Z:" --user "gui" --pass "pass"  -a --fuse-flag -a --VolumePrefix="\server\myPhone" mountType=cmount
2020/09/23 16:57:11 DEBUG : rclone: Version "v1.53.1" starting with parameters ["rclone" "rcd" "--rc-user" "gui" "--rc-pass" "pass" "-vv"]
2020/09/23 16:57:11 INFO  : Using --user gui --pass XXXX as authenticated user
2020/09/23 16:57:11 NOTICE: Serving remote control on http://127.0.0.1:5572/
2020/09/23 16:57:16 DEBUG : rc: "mount/mount": with parameters map[arg:[--fuse-flag --VolumePrefix=\server\myPhone] fs:K20Pro_sdcard:/ mountPoint:Z: mountType:cmount]
2020/09/23 16:57:16 DEBUG : Creating backend with remote "K20Pro_sdcard:/"
2020/09/23 16:57:16 DEBUG : Using config file from "D:\\Users\\Haujet\\.config\\rclone\\rclone.conf"
2020/09/23 16:57:16 DEBUG : fs cache: renaming cache item "K20Pro_sdcard:/" to be canonical "K20Pro_sdcard:"
2020/09/23 16:57:16 INFO  : webdav root '': poll-interval is not supported by this remote
2020/09/23 16:57:16 NOTICE: webdav root '': --vfs-cache-mode writes or full is recommended for this remote as it can't stream
2020/09/23 16:57:16 DEBUG : webdav root '': Mounting on "Z:"
2020/09/23 16:57:16 DEBUG : webdav root '': Mounting with options: ["-o" "fsname=K20Pro_sdcard:" "-o" "subtype=rclone" "-o" "max_readahead=131072" "-o" "attr_timeout=1" "-o" "atomic_o_trunc" "-o" "uid=-1" "-o" "gid=-1" "--FileSystemName=rclone"]

I am not sure if there is any specific option to make it mount as a network disk or something else is wrong.

Can you try running a normal mount command and seeing what options are set on that via rclone rc options/get?

Btw, you also need to specify any extra arguments like fuse-flag or volumeprefix as part of the mountOpt argument. They won't be automagically translated.

On reading through the respective docs, I think that's your problem. The volumeprefix argument is not being passed through to the actual mount and correspondingly WinFsp which is why it's not showing up as a network drive.

You can check via rclone rc options/get how to set the appropriate mountOpt in the rc command so that it's passed through.

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