memfs: I see disk in list but don't see in Explorer

59 views
Skip to first unread message

Ivan Krivenkov

unread,
Apr 24, 2024, 8:13:11 AM4/24/24
to WinFsp
OS: Windows 10.

I started memfs-x64.exe from examples and I can see a new disk by command "wmic logicaldisk get" but I don't see this disk in Explorer.
Can someone give me an idea of where is the problem?

Thanks,
Ivan.
1.png

Bill Zissimopoulos

unread,
Apr 25, 2024, 5:52:04 AM4/25/24
to Ivan Krivenkov, WinFsp

There are two different kinds of drives in Windows: local drives and global drives. Local drives are drives that are accessible by the current user only and global drives are drives that are accessible by all users.

 

Furthermore local drives created by an elevated account (i.e. running as Administrator) are only visible to processes that are elevated and are invisible to processes that are not elevated.

 

By default WinFsp creates local drives. This means that when you create a local drive from an elevated command prompt the drive that gets created is not visible by the non-elevated Explorer. To solve your problem create your MEMFS drive from a non-elevated command prompt.

 

This is by Windows design and not related to WinFsp.

 

WinFsp also has the ability to create global drives. Normally WinFsp uses the DefineDosDeviceW API to create drives, which creates local drives by default and global drives when running under the SYSTEM account (i.e. in the Windows Service context). WinFsp also supports an alternative way of creating global drives (using the Mount Manager): use the syntax \\.\X: to create your drive, but note that this requires an elevated account.

 

Thanks.

 

Bill

 

--
You received this message because you are subscribed to the Google Groups "WinFsp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to winfsp+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/winfsp/c56931c5-be4f-48ce-8a7e-215c4cdf9cdan%40googlegroups.com.

Christian Korneck

unread,
Apr 26, 2024, 6:22:43 AM4/26/24
to WinFsp
> I don't see this disk in Explorer
You might have the Windows Explorer option "hide empty drive" enabled?

--
Reply all
Reply to author
Forward
0 new messages