Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Drives don't loaded #15373

Open
wangzhen0518 opened this issue May 11, 2024 · 8 comments
Open

Bug: Drives don't loaded #15373

wangzhen0518 opened this issue May 11, 2024 · 8 comments
Assignees
Labels
bug Something isn't working 👀

Comments

@wangzhen0518
Copy link

wangzhen0518 commented May 11, 2024

Description

The all drivers of my computer are not showed in Files.

Clip_2024-05-11_18-20-27

I noticed issue #9774 is also about drivers' display. Here is the output of running cmd powershell -c "Get-WmiObject Win32_LogicalDisk > '~\Desktop\disks.txt'; Get-WmiObject Win32_Volume >> '~\Desktop\disks.txt'; Get-WmiObject Win32_MountPoint >> '~\Desktop\disks.txt'"

disks.txt

Steps To Reproduce

Just open Files and do nothing. When I click on "drivers"("驱动器"), nothing happens.

Requirements

  • Can the bug be fixed?

Files Version

3.4.0.0

Windows Version

版本 Windows 11 专业版 版本 23H2 安装日期 ‎2023/‎7/‎14 操作系统版本 22631.3527 体验 Windows Feature Experience Pack 1000.22700.1003.0

Log File

debug.log

@wangzhen0518 wangzhen0518 added the bug Something isn't working 👀 label May 11, 2024
@Josh65-2201
Copy link
Member

Thanks for the report, I've added this to the project board.

@Josh65-2201 Josh65-2201 changed the title Drivers are missing Bug: Drives don't loaded May 11, 2024
@yaira2
Copy link
Member

yaira2 commented May 16, 2024

Is this still an issue in the preview version? https://files.community/download/preview

@yaira2 yaira2 added the needs-additional info Needs more information from the reporter label May 16, 2024
@jdoescyber
Copy link

Is this still an issue in the preview version? https://files.community/download/preview

Hi there. Not the OP, but I came to the Issues because I'm having the same problem.

Same issue in the current release as described, local drives don't show up at all.

In the Preview release, my C: drive will show up after about 45 seconds, but none of the other local drives will.

me@myredactedpc in ~
➜  Get-WmiObject Win32_LogicalDisk

DeviceID     : C:
DriveType    : 3
ProviderName :
FreeSpace    : 748087156736
Size         : 1023378714624
VolumeName   :

DeviceID     : D:
DriveType    : 3
ProviderName :
FreeSpace    : 182088155136
Size         : 1000186310656
VolumeName   : GAMES

DeviceID     : E:
DriveType    : 3
ProviderName :
FreeSpace    : 1399820283904
Size         : 2000381014016
VolumeName   : Data

Thanks for looking into this!

@0x5bfa
Copy link
Member

0x5bfa commented May 22, 2024

Thanks for the feedback!

Could you do:
Let us know if your OS drive letter is C?
Let us know the output of ‘mountvol /l’ in command prompt.


As a dev note:
We use System.IO.DriveInfo.GetDrives(); to enumerate drives.
I think we might as well use Win32API FindFirstVolume and FindNextVolume to see if this issue fixed or not.
Al least, mountvol command uses FindFirstVolume and FindNextVol to print a list of volumes as far as I know from debugging that command.

@wangzhen0518
Copy link
Author

Is this still an issue in the preview version? https://files.community/download/preview

No, my drivers still cannot be shown in the preview version.

Clip_2024-05-23_04-40-52

Clip_2024-05-23_04-40-42

@yaira2 yaira2 removed the needs-additional info Needs more information from the reporter label May 22, 2024
@0x5bfa
Copy link
Member

0x5bfa commented May 23, 2024

No no no my important question there

Let us know if your OS drive letter is C?

Let us know the output of ‘mountvol /l’ in command prompt.

@wangzhen0518
Copy link
Author

No no no my important question there

Let us know if your OS drive letter is C?

Let us know the output of ‘mountvol /l’ in command prompt.

Yes, I installed win11 in driver C. The output of mountvol /l is as follows.

创建、删除或列出卷装入点。

MOUNTVOL [drive:]path VolumeName
MOUNTVOL [drive:]path /D
MOUNTVOL [drive:]path /L
MOUNTVOL [drive:]path /P
MOUNTVOL /R
MOUNTVOL /N
MOUNTVOL /E
MOUNTVOL drive: /S

    path        指定装入点将驻留的现有 NTFS 目录。
    VolumeName  指定装入点的目标的卷名称。
    /D          从指定的目录中删除卷装入点。
    /L          列出指定目录的已装入的卷名称。
    /P          从指定目录删除卷装入点,卸下此卷并使此卷无法装入。你可以创建
                一个卷来再次使此卷可以装入。
    /R          删除不在系统中的、卷的装入点目录和注册表设置。
    /N          禁用新卷的自动装入。
    /E          再次启用新卷的自动装入。
    /S          将 EFI 系统分区装载到提供的驱动器。

当前装入点的 VolumeName 可能值为:

    \\?\Volume{c06e52c4-2036-4009-9231-3760e6fa2674}\
        C:\

    \\?\Volume{e4f608b0-df6d-4d60-ad1e-b61596c2b561}\
        D:\

    \\?\Volume{56a37df9-a3ef-4c60-815e-61f0f11c3612}\
        *** 无装入点 ***

    \\?\Volume{69ea76ee-0453-416c-bb2e-2aedd693e04e}\
        Z:\

    \\?\Volume{287f7a08-3043-4520-9e0f-3293f7973530}\
        E:\

    \\?\Volume{112d35ae-3854-496f-ae36-76c854c90804}\
        *** 无装入点 ***

@0x5bfa
Copy link
Member

0x5bfa commented May 23, 2024

Great so using win32api should fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 👀
Projects
Status: 🔖 Ready to build
Development

No branches or pull requests

5 participants