Technical questionAccepted answer
Error code: Wsl/Service/CreateInstance/MountVhd/ERROR_FILE_NOT_FOUND
kshashank
Dec 18
0 views1
I have uninstalled wsl on my windows 11 and trying to re-install using wsl --install. After restart i am getting following error
Failed to attach disk 'C:\Users\<User>\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc\LocalState\ext4.vhdx' to WSL2: The system cannot find the file specified.
Error code: Wsl/Service/CreateInstance/MountVhd/ERROR_FILE_NOT_FOUND
1 answer
Accepted answer · original discussion
kshashank
PermalinkDec 18
From the WSL Github issue on the topic and the resulting discussion thread:
List the distributions installed, by running following in PowerShell.
wsl -lUnregister the distribution. Replace the "Ubuntu" below with your distribution name found in Step #1:
WARNING: THIS COMMAND WILL COMPLETELY UNINSTALL YOUR WSL DISTRO.
wsl --unregister UbuntuLaunch the Ubuntu (or other distribution) which was installed using Microsoft Store
Your perspective belongs here.
Sign in with a verified account to contribute.
0 question comments
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.