Unable to use any windows drives in WSL

Viewed 2050

I was tiring to access files inside /mnt in WSL(Ubuntu). But when I typed ls ./d it gave the following error:

ls: cannot open directory '.': Input/output error

This is happening while using any command in any file of the windows drives, I also typed cd ./d/<any-folder> and it gave the following:

cd: Input/output error: <folder-name>
2 Answers

As pointed here, just go to the PowerShell and run the command wsl.exe --shutdown and restart the WSL.

I don't understand as to why I was getting that error. But try restarting your device.
It worked for me.

Related