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

How to attach WSL image on external drive to fresh Windows install?

$
0
0

I recently did a fresh install of Windows 11 (I had windows 10 before that). I also was using WSL2 for work and .vhdx image was on external drive (what I mean by it is that the image is simply on another SSD within my desktop PC). How can I connect that vhdx image to my Windows 11 machine to be able to use it again?

I terminated and unregistered fresh Ubuntu image that was mounted to disk C and tried the following command I found:

wsl --import Ubuntu-20.04 U:\Ubuntu-20.04 U:\Ubuntu-20.04\ext4.vhdx --vhd

But it didn't work and threw an error

Error code: Wsl/WSL_E_DEFAULT_DISTRO_NOT_FOUND


Viewing all articles
Browse latest Browse all 2826

Trending Articles



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