Share files between WSL and Windows

To avoid file corruption, don’t create from Windows files under the Windows Subsystem for Linux lxss directories.

  • WSL won’t recognize native Windows created files directly in the WSL filesystem.
  • Both Windows and WSL will give errors when trying to delete those files.
  • You might need to reboot or even delete and refresh WSL from scratch.

Correct way to share files between WSL and Windows

The best way to work with files in WSL and Windows is to make those files under the usual Windows directories, NOT under WSL’s lxss.

Tags:

Categories:

Written by Michael Hirsch, Ph.D. //

Comments