Windows 10: [WSL] All my files in wsl are missing after updating and restart

Discus and support [WSL] All my files in wsl are missing after updating and restart in Windows 10 Gaming to solve the problem; Hi,It seems that wsl has a big update recently for win 10. I did update before, and after I restarted my computer, all my files in wsl were missing and... Discussion in 'Windows 10 Gaming' started by Han3at, Mar 13, 2023.

  1. Han3at Win User

    [WSL] All my files in wsl are missing after updating and restart


    Hi,It seems that wsl has a big update recently for win 10. I did update before, and after I restarted my computer, all my files in wsl were missing and the only thing left in wsl was an empty account called wslg. my win 10 version is 21H2The following is the output of wsl -vWSL 1.1.3.0 5.15.90.1 WSLg 1.0.49 MSRDC 1.2.3770 Direct3D 1.608.2-61064218 DXCore 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows 10.0.19044.2604

    :)
     
    Han3at, Mar 13, 2023
    #1

  2. WSL

    Version 2 of WSL uses a new lightweight utility virtual machine capability. To enable the lightweight virtual machine and WSL, you need to enable two Windows features: Virtual Machine Platform and Windows Subsystem for Linux.

    To enable these features via the user interface (UI), press the Windows key and enter Windows Features, then click on Turn Windows features on or off.
    When the Windows Features dialog appears, check the boxes for Virtual Machine Platform and Windows Subsystem for Linux.




    If you want to make version 2 the default for any Linux distros you install then run the following command:


    Code:
    Now you can install Linux distro from Microsoft Store it will be running version 2 of WSL.

    A distro can be converted between versions of WSL after installation. To achieve this, you use the wsl --set-version command.

    This command takes two arguments:

    • The name of the distro to update
    • The version to convert it to

    An example of converting the Ubuntu distro to version 2 is shown here:

    Code:
    Execute wsl --list --verbose versions of WSL installed distro.
     
    FreeBooter, Mar 13, 2023
    #2
  3. AlexisH34 Win User
    WSL problem -- all wsl commands don't work

    Hello everyone,

    I got an issue with the windows subsystem for Linux (WSL).

    Context :

    I'm using a Windows 10 lap-top shared by my company

    How I got to the problem :

    - I first reinstall windows 10

    - I installed WSL through this link .

    - Everything was working though with the Ubuntu 20.04 installed though I wanted Ubuntu 22.04

    - When I was looking at wich distro I could install by using the command :

    wsl --list --online

    - So I was like, hey maybe, I could use the command wsl --update to update my wsl, maybe it was not fully updated. I was wrong, it was my Windows not updated.

    But anyway, I tried the command, it hungs, nothing was happening...
    - I Ctrl+C to stop the execution of the cmd ; from here I could not do any command in admin power-shell, it would just hung forever.

    - But I've seen that I could still use the command in User mode not admin, though I needed to launch the distro in admin mode otherwise I had a credential issue.

    - The thing is the WSL used in non-root mode was not updated

    I didn't have the new feature with the GUI which I need for my project.

    - So in non-root powershell, I did the update command:

    wsl --update

    - And now, I can have the GUI but at that point, in my distro. Every apt update, apt install commands don't work anymore.

    - So I have to uninstall wsl in user mode to use the apt install, and reinstall it everytime to have the GUI

    That's not really what I want. I obviously already tried to uninstall everything distro and WSL. By not forgetting to remove every windows features about virtual machine, wsl and the hypervisor.

    I used this method to uninstall WSL : here is the link

    And now after reinstalling wsl in root mode. Even after uninstalling it hung forever...

    Do you have any idea to have a WSL working without reinstalling again windows ?
     
    AlexisH34, Mar 13, 2023
    #3
  4. Brink Win User

    [WSL] All my files in wsl are missing after updating and restart

    GPU Compute, WSL Install and WSL Update arrive in WSL

    Source:

     
    Brink, Mar 13, 2023
    #4
Thema:

[WSL] All my files in wsl are missing after updating and restart

Loading...
  1. [WSL] All my files in wsl are missing after updating and restart - Similar Threads - WSL files wsl

  2. WSL options are missing!

    in Windows 10 Gaming
    WSL options are missing!: I am experiencing an issue with Windows Subsystem for Linux WSL on my computer. I have searched the internet extensively, but I have not been able to find a solution.When I run PowerShell with administrator privileges and type WSL, Ubuntu should typically start, but instead,...
  3. WSL options are missing!

    in Windows 10 Software and Apps
    WSL options are missing!: I am experiencing an issue with Windows Subsystem for Linux WSL on my computer. I have searched the internet extensively, but I have not been able to find a solution.When I run PowerShell with administrator privileges and type WSL, Ubuntu should typically start, but instead,...
  4. [WSL] All my files in wsl are missing after updating and restart

    in Windows 10 Software and Apps
    [WSL] All my files in wsl are missing after updating and restart: Hi,It seems that wsl has a big update recently for win 10. I did update before, and after I restarted my computer, all my files in wsl were missing and the only thing left in wsl was an empty account called wslg. my win 10 version is 21H2The following is the output of wsl...
  5. [WSL] All my files in wsl are missing after updating and restart

    in Windows 10 Installation and Upgrade
    [WSL] All my files in wsl are missing after updating and restart: Hi,It seems that wsl has a big update recently for win 10. I did update before, and after I restarted my computer, all my files in wsl were missing and the only thing left in wsl was an empty account called wslg. my win 10 version is 21H2The following is the output of wsl...
  6. WSL problem -- all wsl commands don't work

    in Windows 10 Gaming
    WSL problem -- all wsl commands don't work: Hello everyone,I got an issue with the windows subsystem for Linux WSL.Context :I'm using a Windows 10 lap-top shared by my companyHow I got to the problem :- I first reinstall windows 10 - I installed WSL through this link .- Everything was working though with the Ubuntu...
  7. WSL problem -- all wsl commands don't work

    in Windows 10 Software and Apps
    WSL problem -- all wsl commands don't work: Hello everyone,I got an issue with the windows subsystem for Linux WSL.Context :I'm using a Windows 10 lap-top shared by my companyHow I got to the problem :- I first reinstall windows 10 - I installed WSL through this link .- Everything was working though with the Ubuntu...
  8. WSL files missing after Windows 11 update

    in Windows 10 Gaming
    WSL files missing after Windows 11 update: I performed a restart yesterday to update my Windows 11 to build 22621.1105.When I opened my Debian WSL2 distro this morning I found that all my files for the distro are missing. The distro does not even contain my user and the only user on the distro is "wslg".From what I...
  9. WSL files missing after Windows 11 update

    in Windows 10 Software and Apps
    WSL files missing after Windows 11 update: I performed a restart yesterday to update my Windows 11 to build 22621.1105.When I opened my Debian WSL2 distro this morning I found that all my files for the distro are missing. The distro does not even contain my user and the only user on the distro is "wslg".From what I...
  10. GPU Compute, WSL Install and WSL Update arrive in WSL

    in Windows 10 News
    GPU Compute, WSL Install and WSL Update arrive in WSL: There are three thrilling new updates for the Windows Subsystem for Linux (WSL) in the new Windows Insider Preview Build 20150. The first is GPU compute: a feature that allows your Linux binaries to leverage your GPU, which makes it possible to do more machine learning/AI...