How to import and export WSL distros on Windows 10

With Windows 10, Microsoft allows a user to run multiple Linux distros based on WSL or Windows Subsystem for Linux. But when reinstalling or resetting Windows 10, all the configuration stored amongst these WSL distros gets deleted. Or to dorsum upwardly too restore this configuration, it becomes challenging for the user to produce so. But Microsoft has got it covered. Users tin import too export these WSL or Windows Subsystem for Linux distros. In this article, nosotros volition last checking out how to produce it using the export or import arguments.

 Microsoft allows a user to run multiple Linux distros based on  How to import too export WSL distros on Windows 10

Import & export WSL distros on Windows 10

We volition last looking at 3 aspects that bargain amongst import too export of WSL distros on Windows 10. They are every 2nd follows:

  1. Import WSL distro.
  2. Export WSL distro.
  3. Uninstall imported WSL distros.

You postulate to bring all your installed distros to last upwardly to appointment via the Microsoft Store.

1] Import WSL distro

 Microsoft allows a user to run multiple Linux distros based on  How to import too export WSL distros on Windows 10

Open the Command Prompt amongst Admin marking rights. Execute the next ascendency inward Command Prompt:

wsl --list --all

It volition listing all the install WSL Distros on your computer.

To import a WSL distro, execute the next ascendency inward Command Prompt:

wsl --import <Name of the distro> <Fill path to salve the backup .tar file>

 Microsoft allows a user to run multiple Linux distros based on  How to import too export WSL distros on Windows 10

For example: wsl –import Ubuntu-18.04 C:\Users\Ayush\Desktop\Ubuntu1804Backup.tar

The ascendency volition restore the backup to the given WSL Distro.

2] Export WSL distro

 Microsoft allows a user to run multiple Linux distros based on  How to import too export WSL distros on Windows 10

Open Windows Command Prompt amongst Administrator permissions. Execute the next ascendency inward CMD:

wsl --list --all

It volition listing all the install WSL Distros on your computer.

To export a WSL distro, execute the next ascendency inward Command Prompt:

wsl --export <Name of the distro> <Fill path to salve the backup .tar file>

For example: wsl –export Ubuntu-18.04 C:\Users\Ayush\Desktop\Ubuntu1804Backup.tar

After that, you lot imported backup volition last flora inward the place you lot entered inward the command.

3] Uninstall imported WSL distros

 Microsoft allows a user to run multiple Linux distros based on  How to import too export WSL distros on Windows 10

Open CMD amongst Administrator permissions. Execute the next command:

wsl --list --all

Next, execute the next ascendency to uninstall the imported WSL distros:

wsl --unregister <Name of the distro>

Once the procedure completes, unopen the Command Prompt.

I promise this direct is useful.


Source: https://www.thewindowsclub.com/

No comments

Theme images by lobaaaato. Powered by Blogger.