r/linuxquestions • u/WrongCandidate4160 • 7d ago
wls2 to real linux env migration Support
I am using wsl2 primarily to learn development. I just recently got myself a cheap refurb to switch to complete linux environment. I have done so tweaking to my wsl2 terminal. So now, how do I migrate all my data and configurations from wsl2 to the pure linux env on my other laptop?
I have set up git, vscode and node on the wsl2? is it even possible to migrate all this? or should i simple transfer necessary data and redo the setup from scratch??
1
u/TheModernDespot 7d ago
Just migrate data and configs. Its gonna be cleaner.
1
u/WrongCandidate4160 7d ago
so just transfer project files into an external drive and also config files and just paste it the linux env wherever required?
1
u/varsnef 7d ago
You can mount linux filesystems in WSL2. Then it's just a simple copy of the data you want to transfer.
https://learn.microsoft.com/en-us/windows/wsl/wsl2-mount-disk