Comments (6)
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.
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.
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.
from wslcompact.
from wslcompact.
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)
- " A parameter cannot be found that matches parameter name 'DestinationPath'." when following install instructions HOT 2
- Needs 0MB of free space HOT 3
- wslcompact doesn't release space, despite available space HOT 1
- Compact failed HOT 2
- File being used by another process error
- installation broken: "Internet Explorer engine is not available" HOT 1
- Cannot create a file when that file already exists HOT 1
- Applet not found after installing it successfuly HOT 1
- Weird error message about free space HOT 4
- WSL distro corrupted HOT 3
- Please stop the infringement
- Failed to attach disk 'C:\Users\bijay\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu20.04LTS_79rhkp1fndgsc\LocalState\ext4.vhdx' to WSL2: The APPX file can not be accessed because it is not encrypted as expected. Error code: Wsl/Service/CreateInstance/MountVhd/0x80070199
- Memory usage 8GB+
- CreateProcessEntryCommon:577: execvpe / failed 13
- How to clear the swap.vhdx at first?
- Estimated size larger than current size
- Failed to compact WSL Ubuntu for errors
- Have 194GB available, yet I need to change TEMP to drive with at least 0 MB free space HOT 1
- Custom VHDX Location?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wslcompact.