ex64.vhdx file is missing
spmolnar opened this issue · comments
Due to a system failure it became necessary for me to reinstall Pengwing on my Wiindows 10 Laptop.. The download and installation from the Microsoft Store generated no warnings or errors.
However the installation generated the error:
Failed to attach disk 'C:\Users\Stephen\AppData\Local\Packages\WhitewaterFoundryLtd.Co.16571368D6CFF_kd1vv0z0vy70w\LocalState\ext4.vhdx' to WSL2: The system cannot find the file specified.
Error code: Wsl/Service/CreateInstance/MountVhd/ERROR_FILE_NOT_FOUND
Press any key to continue...
The ex64.vhdx file was missing from the LocalState subdirectory.
A repeat attempt to download the file from the Microsoft Store, after removing the previus files, generated the same result.
A solution will be much appreciated.
Thanks in advance.
Hello @spmolnar
Sometimes WSL gets crazy and behaves very strangely. I recommend you to shutdown wsl with executing in PowerShell or Command Prompt.
wsl --shutdown
Then unregister Pengwin with:
wsl --unregister WLinux
Now do this:
-
Search in your start menu an application called "Windows Subsystem for Linux" and uninstall it
This will uninstall the Store version of WSL, replacing it with the built-in one. Don't worry. It won't affect your installed distributions. -
Restart Windows.
-
Run
wsl --update --inbox
to update the built-in version. -
Install Pengwin again. I think it should work now.
-
Run
wsl --update
to reinstall the store version.
Hope it helps