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

wsl 2 can not use the mount path from dev drive #10792

Closed
1 of 2 tasks
leolcao opened this issue Nov 19, 2023 · 8 comments
Closed
1 of 2 tasks

wsl 2 can not use the mount path from dev drive #10792

leolcao opened this issue Nov 19, 2023 · 8 comments

Comments

@leolcao
Copy link

leolcao commented Nov 19, 2023

Windows Version

Microsoft Windows [Version 10.0.22621.2715]

WSL Version

1.2.5.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.90.1

Distro Version

Ubuntu 22.04

Other Software

No response

Repro Steps

  1. create the dev drive from dev home preview app, also from https://learn.microsoft.com/en-us/windows/dev-drive/
  2. the dev drive is set to E:, and path is set to D:\packages
  3. shutdown wsl by wsl --shutdown
  4. open the WSL2 Ubuntu 22.04 distro, input ls /mnt/d/packages
  5. error: ls: cannot access '/mnt/d/packages': Input/output error

This error affects the usage of wsl docker command from windows host directly, like:

wsl docker compose up

if there is volume binding in docker-compose.yml file from the path mount from dev drive, also failed, like: d:\packages\workdir:/opt/workdir, In before, it works and d:\packages\workdir will be converted to /mnt/d/packages/workdir in wsl distro

Besides, in the windows terminal setting, if I set the default startingDirectory to "d:\packages", the wsl terminall will failed also, but in before, wsl terminal can tell the startingDirectory, and convert to '/mnt/d/packages'

Expected Behavior

wsl 2 can use the path mount from dev drive like before.

Actual Behavior

leo@LeoCao-OMEN8Pro:~$ ls /mnt/d/packages/
ls: cannot access '/mnt/d/packages/': Input/output error

Diagnostic Logs

image

WslLogs-2023-11-22_22-03-38.zip

Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@leolcao leolcao changed the title wsl 2 can not use the mount patt from dev drive wsl 2 can not use the mount path from dev drive Nov 19, 2023
@OneBlue
Copy link
Collaborator

OneBlue commented Nov 21, 2023

/logs

@leolcao
Copy link
Author

leolcao commented Nov 22, 2023

/logs

Hi I uploaded the logs~

@OneBlue
Copy link
Collaborator

OneBlue commented Nov 22, 2023

Thank you @leolcao. Looking at the logs I can see that you have a custom kernel. Can you see if you can reproduce the issue with the official kernel ? If so, please collect /logs again

@leolcao
Copy link
Author

leolcao commented Nov 24, 2023

I just updated the wsl to 2.0.9, and remove the custom kernel, unlucky, this issue still there~

> wsl -v
WSL 版本: 2.0.9.0
内核版本: 5.15.133.1-1
WSLg 版本: 1.0.59
MSRDC 版本: 1.2.4677
Direct3D 版本: 1.611.1-81528511
DXCore 版本: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows 版本: 10.0.22621.2715
[wsl2]
processors=10
memory=16GB
swap=0
localhostForwarding=true
kernelCommandLine=systemd.unified_cgroup_hierarchy=1 cgroup_no_v1=all
leo@LeoCao-OMEN8Pro:~$ ls /mnd/d/packages
ls: cannot access '/mnd/d/packages': No such file or directory

btw, the dev-drive is mount to F:, and it is no error if I use command like ls /mnt/e ls /mnt/f in the wsl ubuntu distro. This error is only for the mount path in the ntfs drive from one dev drive.

Actually, I have 2 dev drives:
E:(dev drive) --> D:\LeoCao\Projects
F:(dev drive) --> D:\packages(mount path in ntfs drive)

Both them has same issue.

WslLogs-2023-11-24_08-38-15.zip

@OneBlue
Copy link
Collaborator

OneBlue commented Nov 28, 2023

@craigloewen-msft: Looks like we need to update p9rdr.sys to follow dev-drive mounts.

@GF-Huang
Copy link

Same issue. Dev Drive mount at D:\Dev\

>wsl --version
WSL 版本: 2.0.14.0
内核版本: 5.15.133.1-1
WSLg 版本: 1.0.59
MSRDC 版本: 1.2.4677
Direct3D 版本: 1.611.1-81528511
DXCore 版本: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows 版本: 10.0.22631.3296

image

image

@OneBlue
Copy link
Collaborator

OneBlue commented May 13, 2024

The issue is fixed with Windows 11 24H2 (the root cause of the issue is in the Windows image so the fix cannot be part of the WSL package).

@OneBlue OneBlue closed this as completed May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants