ls: cannot access '/mnt/c': Input/output error
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
Diagnostic information
.wslconfig found
Detected appx version: 2.4.13.0
I see this repeatedly too.. anything from within 5 minutes to many hours, had to shutdown 4 times in the last 5 hours!
While a shutdown is needed to restore /mnt/c, everything else appears to be working fine, from the services I have running within the Ubuntu environment, along with services in multiple containers in docker desktop.
Windows Version Microsoft Windows 10 Pro [22H2 19045.5965]
WSL Version 2.4.12.0
Are you using WSL 1 or WSL 2? WSL 2 [memory=12GB, processors=4] (of memory=32GB, process=12 (logical))
Kernel Version 5.15.167.4-1
Distro Version Ubuntu 24.04
Other Software Docker Desktop - 4.40.0 (187762) - (Elastic Search, Redis, Postgres) JetBeans Rubymine, with project in WSL Ubuntu instance
same here in kali, i didnt do anything but keeps crashing
This issue has been recurring for several years now. It is unreasonable to require users to execute the command wsl --shutdown on a daily basis as a workaround. It’s so frustrating!
Hi, I get the same/similar issue now using pre-release intermittently. Restarting usually fixes it it for a while bit it's like when the computer goes to sleep something is not being re-instated after wake up and there is simply no file system, so commands etc cannot load:
wsl --version
WSL version: 2.9.4.0
Kernel version: 6.18.35.2-1
WSLg version: 1.0.79
MSRDC version: 1.2.7214
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26200.8973
-bash: /usr/bin/ls: Input/output error