-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to attach disk 'C:\Program Files\WSL\system.vhd' to WSL2: The system cannot find the file specified. #11288
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
|
Solved by rolling back to 2.1.4.0 |
Can you please tell me how you roll back? Same issue here and I have been struggling the full day to solve this. |
You can download 2.1.4.0 here, run the installer and it will do the job for you. |
That hepled! Almost deleted my wsl. Thanks |
Thanks a lot @benhillis as I have no admin rights I really hope our IT Support is quick. @VladimirKaznacheiev I feel you, good that I do not have Admin rights :D |
this is perfect. tried everything from rolling back windows update to local security policy and regedit. |
No expert here. My docker desktop or WSL2 wouldn't start yesterday after working just hours before. As part of troubleshooting I did uninstall docker-desktop first. But I guess that was not needed.
Maybe using 2.1.5 installer would has worked just as well, I didn't test. No idea what caused what seems like removing existing system.vhd and supporting files (if that happened). When WSL2 was not working anymore and I looked in C:\Program Files\WSL, I didn't have many files there, I just had like 4-5 files in that directory, plus some folders with log files and a few small size files. I didn't install anything myself lately. I do have docker-desktop, but it doesn't auto-update for me. My IT dept said no rollouts was made recently. So still no idea what caused this for me. I guess I'm happy it works now after this scare, and this post helped. |
Thank you @joelhellman. Out of curiosity, do you have a .wslconfig ? If so can you share its contents ? |
@OneBlue sure, here is my full unedited .wslconfig (it has been unchanged for about a year)
|
Very happy with the suggestion of installing 2.1.4 since that instantly brought my WSL back to life, many many thanks. Very unhappy with this critical bug in a patch version being around for more than two months without being addressed. Most people using WSL will be developers or students that rely on WSL working properly. These situations make me want to buy a Macbook. |
Neither installing |
Faced similar issue after upgrading from 2.2.1 to 2.2.4.msi. It looks like it's picking up some default vhd path. I checked I then installed 2.2.3, did a |
Downgraded per #11288 (comment) above, and I was able regain access to my work-sensitive data in my WSL instance. Immediately backed up the sensitive data and will create encrypted backups of it (off system and off site). |
@onmywaytoheaven Is there any way to force Windows to reinstall the WSL package to restore (reinstall) the Thank you. I ran into that problem today. Your solution is very helpful. Have a great day! |
I had the same issue due to windows updating yesterday. Downgrading to the previous working version works for me as others have suggested, it seems to install the
Steps to fix:
1. Find your current version (which isn't working)
wsl --version
WSL version: 2.3.26.0
Kernel version: 5.15.167.4-1
WSLg version: 1.0.65
MSRDC version: 1.2.5620
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.22631.4460 2. Download the most recent working version msi installer file
3. Run the msi
4. Check your WSL2 distro is working again
wsl --version
WSL version: 2.3.24.0
Kernel version: 5.15.153.1-2
WSLg version: 1.0.65
MSRDC version: 1.2.5620
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.22631.4460 |
The problem I encountered is exactly the same as what you described. Thank you so much for the tutorial on fixing it. It's really great! |
Windows Version
Microsoft Windows [Version 10.0.22631.3155]
WSL Version
2.1.5.0
Are you using WSL 1 or WSL 2?
Kernel Version
No response
Distro Version
Ubuntu 20.04
Other Software
No response
Repro Steps
Try to run WSL
Expected Behavior
WSL runs
Actual Behavior
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: