Comments (2)
It is quite interesting that the local temp file is not C:\Users\Robula\AppData\Local\Temp\wslcompact\Ubuntu.vhdx
It seems that your temp folder is not under your user folder tree. wslcompact uses the TEMP
variable. Can you check it by typing this in powershell:
ls env:T*
In normal conditions it should return something like:
Name Value
---- -----
TMP C:\Users\Username\AppData\Local\Temp
TEMP C:\Users\Username\AppData\Local\Temp
I don't know what could be happening in your system, a virus, a software changing the temp folder, or an unknown problem with your Windows 11. The command above could bring some light on this issue.
from wslcompact.
I have been having the same problem (when trying to compact my docker-desktop-data data image). I have successfully compacted this image before, however, I now cannot get past the above messages. I have tried:
wsl --shutdown
prior towslcompact
- running
wslcompact
immediately after startup (wsl does not open at startup on my machine) - changing
TMP
andTEMP
locations to a different drive (external HDD) - Editing the
wslcompact
code to run line 100 (wsl --unregister wslcompact | Out-Null
) before line 99 (Move-Item...
) - Further editing the above to run
wsl --shutdown
and a 5 second sleep, after theunregister
command, before attemptingMove-Item...
Every time I got the same pair of errors: Move-Item...
failed, causing line 101 $size2 = (Get-Item...
to fail.
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
- 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
- Cannot index into a null array. HOT 1
- Compacting NixOS failed with unspecified error HOT 6
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.