The only way to do that is to move the linux distrubition you installed on wsl. I installed Ubuntu on windows as wsl and I showed how to move it st...
For further actions, you may consider blocking this person and/or reporting abuse
life saver
thank you!!
Kinda useful! 🔥 Thanks for sharing!!!
Thank you for sharing
Thanks very much for sharing. This is super helpful!
2 years later still useful. Legend.
if you get a root user after exporting and if you happen to make a user or had a user already before exporting then go to settings and at the profile of the exported linux distro in the command line tab add the line : wsl.exe -d -u . the part till distro name will be same but pass the -u flag with your username and you will get the previous user that was being used
Thanks!
I'd like to add a reference to some steps mentioned in the default documentation like setting up a default user, because by default --import always starts the image in the root user.
learn.microsoft.com/en-us/windows/...
That works fine for me. Thank you a lot.
Thank You! <3
Can I set path on initial install?
Thank you very much.
That worked, mostly. The WSL2 distro that I imported can't run GUI application anymore for some reason.
Thank you !
If I want to move my ubuntu distro on wsl from C drive to say, F, does the F drive have to be empty? I have nearly half of it used on my native Windows OS.
Can wsl_export be deleted after running the last command?
No!! Don't do that!
THANK YOU!!!!
Super solution! Thank you @mefaba
Amazing thanks! Just want to point out:
2.0: Go to D:\ and create a directory wsl_export
Great Post!!!
Thanks my friend!!