ls: cannot access '/mnt/c': Input/output error
@OneBlue is already working on this.
Since Apr 15, 2025.
- Dominant language
- C++
- Stars
- 33.7k
- Forks
- 1.8k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 116
Description
### Windows Version
Microsoft Windows [Version 10.0.26100.3775]
### WSL Version
2.4.13.0
### Are you using WSL 1 or WSL 2?
- [x] WSL 2
- [ ] WSL 1
### Kernel Version
5.15.167.4-1
### Distro Version
Ubuntu 22.04
### Other Software
Using WSL with zsh instead of bash
### Repro Steps
- sudo ls /mnt/c
- code . (in attempt to open VS Code from current directory in terminal)
- notepad.exe
- cmd.exe
### Expected Behavior
- list mounted C drive
- Open VS Code.
- Open Notepad
- Open Command Prompt
### Actual Behavior
- Returns "ls: cannot access '/mnt/c': Input/output error"
- Returns "zsh: Input/output error: code"
- Returns "zsh: Input/output error: notepad.exe"
- Returns "zsh: Input/output error: cmd.exe"
### Diagnostic Logs
[WslLogs-2025-04-15_13-15-24.zip](https://github.com/user-attachments/files/19757787/WslLogs-2025-04-15_13-15-24.zip)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.