Score:3

Recover Ubuntu Environment on Windows after windows reset

do flag

I am (and was) using WSL and MobaXterm to create a Linux Dev environment on Windows. After being stuck in an Automatic Repair loop that did not allow me neither remove the last updates in my system or access to it in safe mode, I reset my PC, maintaining all my local data intact (although some apps were uninstalled). I recovered everything easily except for my Ubuntu environment, which contained some important data.

Is there any way to recover the information in my Ubuntu environment? or it has been all removed from my PC?

Best, Pedro.

Mark Ransom avatar
ky flag
I try to keep all my WSL files on the Windows file system, for example a subdirectory of `/mnt/c/Users/Mark`. Then you always have two ways to access it.
Score:7
ae flag

This is more a windows related answer but... look inside :

%USERPROFILE%\AppData\Local\Packages\[distro name]

If inside there's a file named ext4.vhdx you still have the virtual disk image of ubuntu, otherwise It's gone.

Mark Ransom avatar
ky flag
If you find this file, is there a way to copy it somewhere else and mount it once you reinstall WSL?
nb52er avatar
ae flag
Theoretically you can copy the ext4.vhdx. Reinstall the same distro that you had before and replace the new ext4.vhdx with the old one.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.