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

Remove wsl --unregister DISTRO_NAME from the recommended commands to be run when "something goes wrong" #307

Open
clmnin opened this issue Oct 21, 2022 · 6 comments
Labels
enhancement New feature or request

Comments

@clmnin
Copy link

clmnin commented Oct 21, 2022

Description

I had the below two windows updates performed

  • Cumulative Update for Windows 11 Insider Preview (10.0.22623.870) (KB5018499)
  • Update Stack Package - (Version 1022.1018.1012.0)

And on restart I see a window saying "Something went wrong". And was asked to run the following commands

Something went wrong.
Please restart WSL with the following command and try again:
wsl --shutdown
wsl --unregister DISTRO_NAME

But wsl --unregister DISTRO_NAME is a dangerous command and should not be run by the uninitiated.

--unregister <Distro>
    Unregisters the distribution and deletes the root filesystem.

This does not seem to be a Windows WSL issue. I was redirected to this repo - here is my original issue raised in microsoft/WSL#9049

I've attached the image of the window asking me to run wsl --unregister DISTRO_NAME

image

Need and use case

No warning is currently given when asking the user to run wsl --unregister DISTRO_NAME .

I had previously faced this same issue ("Something went wrong") and had unknowingly ran wsl --unregister (link to my previous issue - microsoft/WSL#8992 ). Which resulted me in loosing my data, I've recovered since then. But adding a warning to let future users know of the consequence would be great.

Additional information

No response

@clmnin clmnin added the enhancement New feature or request label Oct 21, 2022
@clmnin clmnin changed the title Remove wsl --unregister DISTRO_NAME from the recommended commands to be run when "something goes wrong" Remove wsl --unregister DISTRO_NAME from the recommended commands to be run when "something goes wrong" Oct 21, 2022
@abdoulayemedra
Copy link

Ihave the same problem

@gar71
Copy link

gar71 commented Oct 25, 2022

I had to run wsl --update and then I got past the Ubuntu installer error.

@cotizcesar
Copy link

I had to run wsl --update and then I got past the Ubuntu installer error.

Worked perfectly!

@pinzutu
Copy link

pinzutu commented May 26, 2024

@clmnin Do you remember which steps you undertook to recover your filesystem after using the --unregister flag?

@clmnin
Copy link
Author

clmnin commented May 26, 2024

@pinzutu I moved to a Mac and even stopped being a PC gamer (got a PS and a steam deck). I'm never even touching WSL with a ten foot pole.

@pinzutu
Copy link

pinzutu commented May 27, 2024

@clmnin I see. Thank you for the reply still! I do agree that the "unregister" flag being synonymous to "delete filesystem" could be highlighted more clearly to the user than through a --help entry.

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

No branches or pull requests

5 participants