Hello, STOK
Welcome to the Microsoft Community.
Hello, thank you for your feedback on your issue here, the time to convert a WSL1 instance to WSL2 can vary depending on a number of factors, including the size of the filesystem and how much disk space is available.
Depending on your situation, here are some insights and recommendations:
- Expected Duration
Typical Time: For smaller WSL instances (a few gigabytes), the conversion usually takes only a few minutes. However, for larger instances (e.g. your 300GB root directory), it may take longer, up to several hours.
Current situation: since your conversion has been running for a few days, this is not typical and indicates a possible problem.
2.Factors affecting conversion time
Disk space: Having only 2MB of free space on disk may affect the conversion process. wsl2 needs additional space for conversion and operation.
Memory usage: High memory usage may slow down the process, especially if the system uses swap space.
- Recommendations
Free up disk space: Try to free up as much space as possible on the disk where the WSL1 instance is stored, aiming for at least a few GB of free space.
Check for errors: Perform a diagnostic on the disk to ensure that there are no problems causing delays. You can use the chkdsk utility from a command prompt.
Monitor resource usage: Use Task Manager to monitor CPU and memory usage during the conversion. If other processes are consuming a lot of resources, shutting them down may help free up system resources.
Terminate and retry: If the conversion does not complete after freeing up space, consider terminating the process and retrying the conversion command.
Check logs and feedback: See if there are any logs or messages that indicate the cause of the delay. Sometimes additional output can provide clues as to what is happening.
Conclusion
If the issue is not resolved after freeing up space and following the above recommendations, you may consider creating a new instance of WSL2 and manually migrating the data in WSL1, as this may save time in the long run.
Also, since the use of wsl is an advanced user usage feature, for more specialized help with wsl, you can also ask the GITHUB support mentioned at the bottom of the most page in the thread below for advice.
Comparing WSL Versions | Microsoft Learn
https://github.com/Microsoft/WSL/issues
Sincerely hope that your question will be dealt with appropriately after contact the correct department. Thank you for your understanding!
Best regards
Bobhe | Microsoft Community Support Specialist