Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2930

How to replace the default environment on a new install with an environment Ive transferred over from an old install?

$
0
0

I am currently using Ubuntu 18.04 within WSL 2 (windows sub system) and what I am essentially trying to accomplish is transferring over my ubuntu 18.04 install on another VM into the new one. I've followed the instructions From here to create a .img of my old VM drive and mount that into the new ubuntu and rsync my files. The problem is I followed the instructions to the T and now old my files have been transferred over into a folder i made /media/oldinstall. I am new to linux but I think what I wanted to do was to rsync the mounted directory directly into / to replace all the existing environment with everything from my old install instead of placing it in a sub directory.

I can do things like chroot into the /media/oldinstall folder and use all the old binaries i had but being that I am running ubuntu through WSL things like vscode are not working properly since my old environment is not being used.

Now seems like a pretty straightforward problem, how to correspond the environment located in /media/oldinstall into the new environment and leave things running as if it were my old system?


Viewing all articles
Browse latest Browse all 2930

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>