Skip to content

Dear Internet Explorer user: Your browser is no longer supported

Please switch to a modern browser such as Microsoft Edge, Mozilla Firefox or Google Chrome to view this website's content.

Transfer data between different WSL instances

Easily transfer data between Windows Subsystem for Linux (WSL) distros installed on a single machine.

The easiest method for transferring data is to create a new directory that sits outside of any distro, but is accessible to all:

mkdir /mnt/wsl/share

From that location, data can be shared between your installed distros.

Beware: The shared directory’s filesystem lives in memory. If you run the wsl.exe --shutdown command in Powershell, all of the data in /mnt/wsl/share will be lost, so only use this method as a temporary repository to facilitate data transfer.

   

Comments

No comments have yet been submitted. Be the first!

Have Your Say

The following HTML is permitted:
<a href="" title=""> <b> <blockquote cite=""> <code> <em> <i> <q cite=""> <strike> <strong>

Comments will be published subject to the Editorial Policy.