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
I'm not too familiar with disks mounted to path, but based on your description, it seems Box sync is doing the same.
The issue is raised here:
https://community.box.com/t5/Desktop-and-Mobile-Forum/Box-Sync-folder-accessibility-through-Windows-Subsystem-for/td-p/61212
I can easily get to this folder in the Windows command line at the default directory C:\Users<username>\Box (for example, I can cd \Users<username>\Box and access the folder. However, this same folder is inaccessible from the Linux command line
The solution the user has found is:
I have found out that the default location of the Box Sync folder is inaccessible to WSL. I have reinstalled Box Sync and placed it inside the Documents folder, where it is now accessible!
I would also be interested to access this folder without using the work-around described above.
Versions: Windows 10 Version 1809 (Build 17763.195).
Possibly a known issue related to this: #1475
the same issue
/mnt/c$ ls ls: ls: cannot open directory '.': Input/output error
versions: windows10 Version [10.0.18950.1000]
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.
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:
- Exit Docker Desktop
- Stop the service "Docker Desktop Service" from services.msc
- Start Docker Desktop again
You can now start WSL 2 Tech Preview from inside Docker again.
@tobybellwood
You may also be able to stop the Docker WSL2 service before shutting down WSL, which makes it a couple of steps easier
I am experiencing this problem on both WSL and WSL2. Running build 19041.264. The "wsl --shutdown, re-run wsl from powershell" doesn't solve it in my case.
Hm, in my case wsl --shutdown helped to fix the issue without rebooting.
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?
+1, this is annoying, wsl --shutdown doesnt help me. I'm running Windows version 19041.388 with WSL2 Ubuntu 20.04 LTS
After restart pc, problem seems to be appeared. However running wsl --shutdown seems to fix.. Its a bit annoyinng to do this every time you open the pc. Is there any solution around applied by someone here?
After restart pc, problem seems to be appeared. However running
wsl --shutdownseems to fix.. Its a bit annoyinng to do this every time you open the pc. Is there any solution around applied by someone here?
I just encountered this issue after boot randomly. I tried the wsl --shutdown procedure posted and it did not work for me. Uninstalling and reinstalling VSCode (without rebooting in between) worked though - hoping that it remains functional across future restarts.
I had to run VSCode as administrator to get past this issue.
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
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 :)
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.
Thank you!
As a work around to solve my ever growing disk space needs for Docker, was to create a symbolic links for both rancher-desktop and rancher-desktop-data wsl instances in: %LOCALAPPDATA%\rancher-desktop
- close Rancher Desktop
wsl --shutdown- move *%LOCALAPPDATA%\rancher-desktop\distro-data" and "%LOCALAPPDATA%\rancher-desktop\distro" to a new location
- Create symbolic links to the moved folders
mklink /d "%LOCALAPPDATA%\rancher-desktop\distro-data" "<my new location distro-data>"
mklink /d "%LOCALAPPDATA%\rancher-desktop\distro" "<my new location> distro"