-
Notifications
You must be signed in to change notification settings - Fork 841
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
Unable to Recover from Sudden Power Loss and Reopen Custom WSL 2 Gentoo Distribution Installation After Recent Windows 11 Pro 23H2 Updates #11661
Comments
View similar issuesPlease 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! Closed similar issues:
Diagnostic information
|
I was on WSL v2.1.5.0 before I updated WSL but was seeing the same behavior under that prior version. I updated to pre-release v2.2.4.0 because I saw this in its release notes for pre-release v2.2.1:
and was wondering if that was related and might help with my issue. ' |
Running ' |
I should also mention that this issue persisted across a full reboot of my system. |
Trying to run ' |
Searching around me led me to #10866, which has some helpful discussion in it. Next troubleshooting steps:
|
Trying to run ' |
My usual procedure for re-compacting my custom WSL2 Gentoo distribution's backing VHDX file is to open an administrator PowerShell session and run:
|
Attempting to launch my custom WSL2 Gentoo distribution under WSL2 ' |
If it is any solace, I've been dealing with numerous issues since installing that update, mostly:
I'm nearly giving up at this point as I can't work like this. |
(Aside:)
I use OpenRC with the Gentoo systemd-utils compatibility layer. |
|
This issue persists after I've installed the 2024-05 Cumulative Update Preview, updating to Windows 11 Pro 23H2, build 22631.3737. |
View similar issuesPlease 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! Open similar issues:
Closed similar issues:
Diagnostic information
|
Where can I find a full list of conditions that might prevent the removal of NTFS compression from a file? I've looked around for one some, but I haven't found one yet. Starting WSL 2 with:
set in my ' |
The possible conditions for this that I know about so far include when:
|
This documentation on how to repair a WSL2 VHD(X) mounting error might be helpful to try, perhaps? Hmmm. Maybe it's not a recent Windows update that's the root cause of my issue here. I remember having to force a hard restart after a (Windows) host system crash. (See also the above.) |
I set a spare WSL distribution instance of another Linux distribution up and have had ' |
Starting WSL 2 with:
isn't any help, either. |
I've gotten stuck making progress here. What follows are the further steps I've continued to attempt so far; I:
|
I've updated this issue's OP with additional, more detailed reproduction instructions. |
View similar issuesPlease 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! Open similar issues:
Closed similar issues:
Diagnostic information
|
…Huh, the rare helpful wild bot comment appears. Thanks for pointing me at #10873, @github-actions! This comment there in particular pointed out this potentially useful further direction for me to look into:
Some complications, though:
Thankfully, I have a spare external hard drive meant for another system lying around, so I could just use that. |
I was able to recover my custom WSL 2 Gentoo distribution and its underlying VHDX disk image! Here's what I had to do:
Closing as:
|
Windows Versions
Microsoft Windows [Version 10.0.22631.3672
')Microsoft Windows [Version 10.0.22631.3737]
')WSL Versions
Are you using WSL 1 or WSL 2?
Kernel Versions
Distribution Version
Gentoo (custom installation set up quite some time ago using this guide)
(I'd check for more version information inside a running distribution session, but, per this issue, none will launch.)
Other Software
Nothing applicable that I can think of.
Steps to Reproduce
Be running Windows 11 Pro 23H2, build 22631.3593 ('2024-05 Cumulative Update.') (Or earlier?0
Have an existing custom Gentoo WSL 2 distribution set up like in this guide.
For the purposes of this section, this has presumably simply been named 'Gentoo;' adjust other instructions if/as needed.
Set '
experimental.sparseVhd
' to 'true
' in your '.wslconfig
.'In an administrator PowerShell session, run:
Enable NTFS compression on the custom WSL 2 Gentoo distribution's backing VHDX image file. (For me, this is at '
%LocalAppData%\WSL\Gentoo\ext4.vhdx
.')Have at least one terminal session instance running for this custom WSL 2 Gentoo distribution.
Have your system running at high load.
Experience a Windows-side system-wide crash which leaves you with a completely frozen system or a blank or black screen which requires you to do a forced hard restart of your system.
If you're lucky, you won't encounter the next step, but it can still happen.
Attempt to launch the WSL 2 distribution in question using any method. (Opening using either a direct invocation of the relevant Windows Terminal profile or by running
wsl
orwsl --distribution Gentoo
from inside a PowerShell session.)Expected Behavior
The custom Gentoo installation should launch again, bringing me to a '
bash
' prompt.Actual Behavior
Distribution launch hangs indefinitely.
Diagnostic Logs
WslLogs-2024-06-05_20-38-59.zip
The text was updated successfully, but these errors were encountered: