Skip to content

更新后的wsl2无法挂载A盘 #40220

@PortianLiu

Description

@PortianLiu

Windows Version

Microsoft Windows [版本 10.0.22631.6199]

WSL Version

2.6.3.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

默认分发: Ubuntu 默认版本: 2

Distro Version

Ubuntu24.04

Other Software

Docker version 29.4.0, build 9d7ad9f

Repro Steps

确保电脑上具有盘符为A的普通非系统盘(通常扮演D盘角色),启动wsl系统即可复现问题。

对于连带问题,docker确保安装在A盘即可,使用cmd命令(
start /w "" "Docker Desktop Installer.exe" install ^ --accept-license ^ --installation-dir="A:\App\Docker"
)

Expected Behavior

由于本人技术能力有限,我不能百分百确定这一问题来自wsl更新(最近尝试使用docker的时候,被提示需要更新wsl,执行wsl --update后就出现了上述问题),如果您确实能够复现上述问题,并确定是新版本造成的,我期望能够包容A盘,不出现A盘符被区别对待的情况

Actual Behavior

在Ubuntu中使用命令sudo mount -t drvfs A: /mnt/a -v,会提示挂载失败
ubuntu@localhost:~$ sudo mount -t drvfs A: /mnt/a -v [sudo] password for ubuntu: mount: /mnt/a: mount(2) system call failed: Operation not supported. dmesg(1) may have more information after failed mount system call. <3>WSL (879 - ) ERROR: UtilCreateProcessAndWait:709: /bin/mount failed with status 0x2000
在启动虚拟机的时候也会报相关错误:
wsl: Failed to mount A:\, see dmesg for more details.

连带问题:
在使用docker的时候,当把docker安装到A盘时,从日志会发现,由于A盘的挂载失败,导致docker无法正常使用(表现为一直卡在Starting the Docker Engine...),此问题在docker安装到默认路径(C盘)的时候可以得到解决

Diagnostic Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions