Giter Club home page Giter Club logo

Comments (6)

TheNoFace avatar TheNoFace commented on May 28, 2024 1

i fixed it by using fsck, mount the corrupted vhdx on other linux

In my case, fsck and e2fsck was not able to recover my system since wslcompact somehow corrupted necessary system script files with meaningless @^@^ strings.

Use Optimize-VHD for now. Check microsoft/WSL#10244

from wslcompact.

polarathene avatar polarathene commented on May 28, 2024

wsl became corrupted

Not a specific WSL distro / disk?

If you get an unresponsive WSL experience and commands like wsl --shutdown no longer responds this isn't necessarily corruption. It can happen when the host filesystem runs out of disk space for example. If you free up disk-space it will still be unresponsive until you reboot the host system but can work again after that.

wslcompact is just providing a convenience for you, running the same commands you could do manually.


Since it's been 2 weeks, is WSL working for you now? Did you do anything specific to make it functional again? Or did you find that restarting your system resolved it like I mentioned?

from wslcompact.

TheNoFace avatar TheNoFace commented on May 28, 2024

My Ubuntu 22.04 image is also corrupted after using wslcompact, resizing 466551 MB to 190242 MB.

Starting WSL gives following error:

<3>WSL (12) ERROR: CreateProcessEntryCommon:370: getpwuid(1000) failed 0
<3>WSL (12) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 0
#

wsl --shutdown works fine, but restarting make no difference.

from wslcompact.

electroboyz avatar electroboyz commented on May 28, 2024

from wslcompact.

electroboyz avatar electroboyz commented on May 28, 2024

from wslcompact.

dg-nvm avatar dg-nvm commented on May 28, 2024

the core of this program is wsl --export ""$wsl_distro"" - | wsl --import wslcompact ""$tmp_folder"" - so I guess ask Microsoft why WSL did corrupt the export/import.

from wslcompact.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.