Skip to content
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

WSL 2 Not starting #7831

Closed
1 of 2 tasks
Wizards-god opened this issue Dec 13, 2021 · 12 comments
Closed
1 of 2 tasks

WSL 2 Not starting #7831

Wizards-god opened this issue Dec 13, 2021 · 12 comments

Comments

@Wizards-god
Copy link

Version

Microsoft Windows [Version 10.0.22000.348]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.10.60.1

Distro Version

Ubuntu 20.04(maybe), Arch Linux

Other Software

PowerToys
Zoom
Cisco Webex
Cloudflare
Spotify
Windows Terminal
Glasswire

Repro Steps

Open Ubuntu.

Expected Behavior

Ubuntu to start normally, and I continue on my work.

Actual Behavior

It exits with this error.
The operation timed out because a response was not received from the virtual machine or container.

[process exited with code 4294967295]

Diagnostic Logs

No response

@Wizards-god
Copy link
Author

This issue has been opened as #5092 and #4929, But none of the solutions seems to work for me. I have even tried completely uninstalling WSL, Hyper-V and all kinds of virtualisation features. But none of them works. So I thought I'd open a new issue in the hope to get my issue resolved.

@OneBlue
Copy link
Collaborator

OneBlue commented Dec 14, 2021

/logs

@ghost
Copy link

ghost commented Dec 14, 2021

Hello! Could you please provide more logs to help us better diagnose your issue? You can find instructions on how to attach logs here, please make sure to post the link to the Feedback Hub item in this chat so we can see it.

Thank you!

@Wizards-god
Copy link
Author

I have logged it in the Feedback hub app

@ghost ghost removed the needs-author-feedback label Dec 15, 2021
@Wizards-god
Copy link
Author

Could you find time to look into my issue

@OneBlue
Copy link
Collaborator

OneBlue commented Dec 16, 2021

Thanks @Wizards-god. Can you please share the link to your feedback hub entry ?

@Wizards-god
Copy link
Author

Thanks @Wizards-god. Can you please share the link to your feedback hub entry ?

https://aka.ms/AAf6ee8 , Here is the link to my issue on Feedback Hub.

@ghost ghost removed the needs-author-feedback label Dec 17, 2021
@OneBlue
Copy link
Collaborator

OneBlue commented Dec 17, 2021

Thanks @Wizards-god.

Looking at the logs, I can see:

[   36.631216] EXT4-fs (sdc): VFS: Can't find ext4 filesystem
[   36.631819] ERROR: Mount:2683: mount(/dev/sdc, /distro, ext4, 0x0, discard,errors=remount-ro,data=ordered

Based on that, it looks like your distribution VHD is corrupted.

Can you share the content of HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss ? The path to the distribution VHD is under that key.

@Wizards-god
Copy link
Author

I did not know how to export individual keys, so just exported it and attached it here
VHD.txt
image
.

@ghost ghost removed the needs-author-feedback label Dec 17, 2021
@OneBlue
Copy link
Collaborator

OneBlue commented Dec 17, 2021

Ok, based on that I can see that the disk for ubuntu is in C:\\Users\\parja\\AppData\\Local\\Packages\\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\\LocalState. There should be a file named ext4.vhdx in that folder.

To recover its content the simplest I can think of would be to use wsl --mount, so something like:

wsl --mount C:\Users\parja\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\ext4.vhdx --vhd --bare

And then use fsck on the disk to try to recover its content (you can use lsblk to list the available disks)

Note that:

  • If you don't care about the files inside that distro, simply uninstalling and reinstalling it should work
  • wsl --mount --vhd is only available in WSL from the store so you'd need to install to use it

@Wizards-god
Copy link
Author

Ok, based on that I can see that the disk for ubuntu is in C:\\Users\\parja\\AppData\\Local\\Packages\\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\\LocalState. There should be a file named ext4.vhdx in that folder.

To recover its content the simplest I can think of would be to use wsl --mount, so something like:

wsl --mount C:\Users\parja\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\ext4.vhdx --vhd --bare

And then use fsck on the disk to try to recover its content (you can use lsblk to list the available disks)

Note that:

  • If you don't care about the files inside that distro, simply uninstalling and reinstalling it should work
  • wsl --mount --vhd is only available in WSL from the store so you'd need to install to use it

Thank you so much, I could recover all my files from the distro. Now it is working like before.

@ghost ghost removed the needs-author-feedback label Dec 17, 2021
@OneBlue
Copy link
Collaborator

OneBlue commented Dec 17, 2021

Happy it worked ! Closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants