microsoft / microsoft/WSL

ls: cannot access '/mnt/c': Input/output error

Open
#12,824 5 comments 3 reactions 1 assignee View on GitHub

@OneBlue is already working on this.

Since Apr 15, 2025.

file system
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.