WSL ubuntu doesn't run, can not find a file.

Cesar Dario Aguilar 0 Reputation points
2023-08-31T20:18:06.91+00:00

I try to start ubuntu but give me this error

Cannot connect the disk

'C:\Users\dario\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc\LocalState\ext4.vhdx' a WSL2: The system cannot find the file.

Error code: Wsl/Service/CreateInstance/MountVhd/ERROR_FILE_NOT_FOUND

Thanks for your help.

Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,746 Reputation points
    2023-09-01T09:13:04.12+00:00

    Hello there,

    You have to unregister the distro from WSL;

    wslconfig /u Ubuntu-20.04

    and then just execute the installed exe and install the whole distro to WSL again.

    Here are the steps to fix this issue:

    Run with cmd administrator

    wsl --shutdown

    wslconfig /unregister Ubuntu

    wsl --install --distribution Ubuntu

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer–

    6 people found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.