Giter Club home page Giter Club logo

Comments (4)

okibcn avatar okibcn commented on May 28, 2024

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.

jzebedee avatar jzebedee commented on May 28, 2024

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.

okibcn avatar okibcn commented on May 28, 2024

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.

okibcn avatar okibcn commented on May 28, 2024

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)

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.