Giter VIP home page Giter VIP logo

Comments (2)

okibcn avatar okibcn commented on June 17, 2024

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.

lachiewalker avatar lachiewalker commented on June 17, 2024

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 to wslcompact
  • running wslcompact immediately after startup (wsl does not open at startup on my machine)
  • changing TMP and TEMP 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 the unregister command, before attempting Move-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)

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.