Comments (4)
The image was compacted from 195 GB to 88 GB. The problem during copy can be related to the reliability of the H: or C: drive. Any lock on the original image would have prevented the overwrite of the image, so the loss of the image is quite intriguing.
That is a simple PS Copy-Item instruction that should not cause any issues. I will include a safety check after copy just to avoid the removal of the temp folder in case of problems during the replacement of the image.
Were you using this or any other distro during the process?
from wslcompact.
No, the distro was not in use (and could not be in use, since it didn't exist). After running wslcompact and receiving the above error, it doesn't appear in wsl -l
and can't be used for commands:
>wsl -d Ubuntu -- pwd
There is no distribution with the supplied name.
Error code: Wsl/Service/WSL_E_DISTRO_NOT_FOUND
The original vhdx still exists with a plausible filesize at C:\WSL\ext4.vhdx
so I'm trying to import it into a new distro and recreate the one removed by wslcompact.
I still wouldn't expect an error during a file move to result in blowing away the distro.
from wslcompact.
If you still have the image, there are two ways to import it again. The fastest and simple one is the import-in-place. Just type:
wsl --import-in-place Ubuntu C:\WSL\ext4.vhdx
Ensure you have the latest WSL.
from wslcompact.
In version v8.0 I have added a safe exit in case of a failure during the image replacement, leaving the compacted image intact as a backup in the event of a failure while moving the compacted image to the new place.
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+
- wsl corrupted after compacted HOT 6
- 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 3
- 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.