Why Mount in Windows shows success but no label in explore?

Hi
I want to mount google-drive as a network drive in windows, but when I use those code like:

rclone mount gd: T: --allow-non-empty --allow-other --transfers 4 --buffer-size 256M --low-level-retries 200 --dir-cache-time 48h --vfs-read-chunk-size 128M --vfs-read-chunk-size-limit 2G

It shows "The service rclone has been started." but no label(K) in explorer
and then I try to use a Specific folder to the mount point, and the drive success show in explorer,so i just so curious about why I can direct mount into a network drive label?
I hope somebody can help me, thanks so much.

This is the debug fuse mode log:
C:\Windows\system32>rclone mount gd: T: --allow-non-empty --allow-other --transfers 4 --buffer-size 256M --low-level-retries 200 --dir-cache-time 48h --vfs-read-chunk-size 128M --vfs-read-chunk-size-limit 2G --debug-fuse -v
The service rclone has been started.
rclone[TID=1308]: FFFFD581D09DBC00: >>QueryVolumeInformation
rclone[TID=1308]: FFFFD581D09DBC00: <<QueryVolumeInformation IoStatus=0[0] VolumeInfo={TotalSize=40000:0, FreeSize=3d528:9038a000, VolumeLabel="gd-yunsk"}
rclone[TID=1308]: FFFFD581CE7A8050: >>Create [UT---C] "", FILE_OPEN, CreateOptions=21, FileAttributes=10, Security=NULL, AllocationSize=0:0, AccessToken=0000000000000584[PID=1078], DesiredAccess=100000, GrantedAccess=0, ShareAccess=3
rclone[TID=1308]: FFFFD581CE7A8050: <<Create IoStatus=0[1] UserContext=0000000000000000:00000000001888C0, GrantedAccess=100000, FileInfo={FileAttributes=10, ReparseTag=0, AllocationSize=0:0, FileSize=0:0, CreationTime=2019-10-21T14:31:02.930Z, LastAccessTime=2019-10-21T14:31:02.930Z, LastWriteTime=2019-10-21T14:31:02.930Z, ChangeTime=2019-10-21T14:31:02.930Z, IndexNumber=0:1}
rclone[TID=1308]: FFFFD581CF0499A0: >>Create [UT---C] "", FILE_OPEN, CreateOptions=200000, FileAttributes=0, Security=NULL, AllocationSize=0:0, AccessToken=000000000000057C[PID=1078], DesiredAccess=80, GrantedAccess=0, ShareAccess=7
rclone[TID=3be8]: FFFFD581D09C13F0: >>Close 0000000000000000:00000000001888C0
rclone[TID=1308]: FFFFD581CF0499A0: <<Create IoStatus=0[1] UserContext=0000000000000000:0000000000188770, GrantedAccess=80, FileInfo={FileAttributes=10, ReparseTag=0, AllocationSize=0:0, FileSize=0:0, CreationTime=2019-10-21T14:31:02.930Z, LastAccessTime=2019-10-21T14:31:02.930Z, LastWriteTime=2019-10-21T14:31:02.930Z, ChangeTime=2019-10-21T14:31:02.930Z, IndexNumber=0:1}
rclone[TID=3be8]: FFFFD581D09C13F0: <<Close IoStatus=0[0]
rclone[TID=1308]: FFFFD581D09E2660: >>Close 0000000000000000:0000000000188770
rclone[TID=0f54]: FFFFD581CE7A8050: >>Create [UT---C] "", FILE_OPEN, CreateOptions=21, FileAttributes=10, Security=NULL, AllocationSize=0:0, AccessToken=000000000000057C[PID=1078], DesiredAccess=100000, GrantedAccess=0, ShareAccess=3
rclone[TID=1308]: FFFFD581D09E2660: <<Close IoStatus=0[0]
rclone[TID=0f54]: FFFFD581CE7A8050: <<Create IoStatus=0[1] UserContext=0000000000000000:00000000001F71F0, GrantedAccess=100000, FileInfo={FileAttributes=10, ReparseTag=0, AllocationSize=0:0, FileSize=0:0, CreationTime=2019-10-21T14:31:02.930Z, LastAccessTime=2019-10-21T14:31:02.930Z, LastWriteTime=2019-10-21T14:31:02.930Z, ChangeTime=2019-10-21T14:31:02.930Z, IndexNumber=0:1}
rclone[TID=0f54]: FFFFD581D09DBC00: >>Close 0000000000000000:00000000001F71F0
rclone[TID=0f54]: FFFFD581D09DBC00: <<Close IoStatus=0[0]

the cmd prompt or .cmd batch file that you use, do you run the command with elevated administrator privileges?

if so, you will not see the mount in explorer.
run the mount command in a cmd window or script that is run without administrator privileges.

2 Likes

Let's try to eliminate some possibilities here because this should work of course.

The basics:

  • You have installed winFSP
  • You have configured a mount (gd in this case)
  • You have an empty drive-letter to use (T in this case)

Note that as far as I understand, winfsp can only currently mount to empty drive letters. Not already existing ones, and not arbitrary folders. It sounds like this limitation MAY be lessened or removed in an upcomming winfsp version though, but for now we have to accommodate for that.

Normally rclone should error and refuse to mount on any invalid location - so that is a bit strange.

Can you access T: from the commandline?
Please try and report back. Hopefully we can narrow down the problem.

I am unfortunately not familiar at all with fuse debug output, so I can't say much from that - but it doesn't appear to be meeting any critical errors though, which is curious.

1 Like

Ah, yes this is likely the problem I suspect.

If you need to run it at a high permission then the best solution is to run it under the SYSTEM account.
Because this is run at a lower namespace that will propagate upwards this will be visible to all users - and it will for most uses be equivalent to using an elevated admin account anyway.

1 Like

hey @thestigma, how are you,

rclone can mount to subfolders, i do that all the time.
in fact, that is my perferred method.

as per my rclone wiki about using vss with rclone, i create lots of temp vss mounts so i have b: and create mounts under that, instead of using drive letters.

rclone.exe mount wasabiwest01:vserver03-bjv.h.vserver03.g.ampe01\ b:\mount\ampe01\

image

@asdffdsa @thestigma
Iā€˜m sure I run as admin to cmd and install winfsp and the config is right,even i try to use power shell to mount(run as admin), but the drive label still not show in the explorer and the cmd enter T: show no such drive

Under Windows? ... huh. Did that change recently then?
I am certain I have tried this, but I guess it's time to re-try
You aren't doing anything special or running anything but the latest stable winfsp to do this?

@asdffdsa
I just tried the third party explorer and it can show the drive:rofl:
So how can I fix the original windows explorer

@thestigma
I tried the third party explorer and it can show the drive
Now I should try to fix the original windows explorer problem....

I think you are misunderstanding. The elevated admin is the problem here, not the solution.
Running the mount as elevated admin will put the path in a namespace that is not visible to regular users (including your non-elevated admin)

And since explorer.exe uses non-elevated admin on your account it can't see it.

To fix:
either use regular (not elevated) cmd to mount
or
if you need higher privilegies for some reason, use SYSTEM account (via task scheduler or NSSM) instead of elevated admin.

I would say the main reasons why you would want to use SYSTEM would be if you needed to

  • let rclone handle various protected files not accessible to your regular non-elevated account
  • It may be needed to set shares and permissions on a mounted drive

The third-party explorer can probably see it because you ran that elevated too.
The problem is I don't think it's so easy to run explorer.exe elevated - and it's probably not very safe to do anyway.

yes i am using the latest stable version but it can confusing to find.

if you goto http://www.secfs.net/winfsp/download/ and click the red download button, you will get winfsp-1.4.19016.msi but that is not the latest stable version

to find that lastest stable version

  1. goto https://github.com/billziss-gh/winfsp
  2. click image
    and that will take you page https://github.com/billziss-gh/winfsp/releases/tag/v1.4.19049
  3. there you will find winfsp-1.4.19049.msi

@thestigma
yes you're right. the third party just can see but can't do any operate frome rclone mountpoint drive.
seem i back to the start and I try to run as rclone as admin but nothing shows
@asdffdsaThanks I try to reinstall winfsp

here, this will set you free.
https://support.microsoft.com/en-us/help/3035277/mapped-drives-are-not-available-from-an-elevated-prompt-when-uac-is-co

open an elevated command prompt and paste this, then reboot
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLinkedConnections /t REG_DWORD /d 1 /f

1 Like

Ok, just se we aren't misunderstanding each-other, lets do this one step at a time.

(1) close any current mount you have running
(2) open normal (not elevated) CMD and mount again
(3) Check that the drive is visible in normal explorer and is accessible.

What is your result?

@thestigma
I had try use normal cmd to run rclone the drive is visible in normal explorer and is accessible.
Sorry for my misunderstanding and wrongly think that need to run as the administrator.
Thanks for your patience and time :grin:

Very cool. It does indeed work on that version (probably what I though was upcomming in the next one). Nice tip monkeyman. This does open up some cool possibilities now...

NP. running normally is fine for most uses.
it's if you for some reason need to give rclone higher permissions you need to either use SYSTEM instead, or else use the workaround fix asdffdsa linked.

But if you have no need for that now then don't worry about it :slight_smile:

hmm, for a demon in hell, strange that you would write Very cool

yeah, it does open possibilities.

as per my vss wiki, i create a very small b: and do all mounting on it.
you can shrink your c: by just 1GB, create a b: and mount to that b: drive.

Then where am I supposed to put my floppy-drive?? ... Silly monkey-man shake head