WSL: Input/output error on Windows disk mount to path

I have a development disk mounted in Windows to the path C:\Dev instead of a drive letter. However, I can’t see any of the files on this disk from the bash shell. WSL seems to be missing support for path-mounted disks.

/mnt/c$ cd Dev -bash: cd: Dev: Input/output error

Versions: Windows 10 Version 1803 (10.0.17134.48). 4.4.0-17134-Microsoft

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 7
  • Comments: 18 (1 by maintainers)

Most upvoted comments

I solved this problem on my Windows 10 ( version: 18950.1000 ) by runningwsl --shutdown, and then wsl in the powershell!

confirmed that wsl --shutdown followed by wsl fixes it - however, if you’re running the docker desktop WSL2 preview, it permanently disconnects you and the only remedy is a full restart.

Although “wsl --shutdown and re-run wsl” helps, it’s not perfect as I get used to shutdown my PC when I don’t use it which means I have to do this every time I boot up. This also causes Docker for Win (with WSL2 backend) notifying me to restart docker and it’s annoying too. So is there any workaround or fix to solve the problem now?

It’s not only about VScode . It happens even if you just run a ll /mnt after open pc. You’ll notice that mounts didn’t worked, so this is the reason it drops this error. After run wsl —shutdown It is ok for me. But its not a correct and permanent solution

Hm, in my case wsl --shutdown helped to fix the issue without rebooting.

I had to run VSCode as administrator to get past this issue.

Just to add my solution to this:

Restarting the “LxssManager” windows service (which hosts WSL) via the windows “Services” control panel fixed it for me, no system restart required 😃

however, if you’re running the docker desktop WSL2 preview, it permanently disconnects you and the only remedy is a full restart.

The following works if you want Docker WSL 2 Preview up and running after WSL restart:

  1. Exit Docker Desktop
  2. Stop the service “Docker Desktop Service” from services.msc
  3. Start Docker Desktop again

You can now start WSL 2 Tech Preview from inside Docker again.

@tobybellwood