How to recover a specific folder from formated partition?

Viewed 16

Hi everybody this will be a long question, and I would be really grateful for any kind of help anyone could give me, this is my case:

I use firefox-sync to manage all my logins information and firefox-sync's password is the unique password I save manually.

Currently I has problems with my O.S and I decided reinstall it. But also I have 2FA enable for mostly of my accounts, and firefox-sync is not the exception, and firefox-sync's 2FA is based on my gmail, so when I tried get logged on firefox-sync, firefox asks me for my verification code, but my verification code is in my gmail, and my gmail's password is in firefox-sync.

So I lost access to all my accounts, I lose my gmail, github, gitlab, stackoverflow, discord, etc etc... :'(

From the gmail side, I tried all that gmail let me try but unsuccessfully.

So, the only possibility that I see, is recover the information of the formatted partition and rebuild the previous state of Firefox. I mean:

Reading about firefox loggins, and taking a look to firefox's workdir ($HOME/.mozilla), I see firefox saves login's info in a json file located in $HOME/.mozilla/$profile$/logins.json.

So, this is my idea. Recover .mozilla's workdir from the formatted partition, and then, replace it over .mozilla's workdir of the current environment to can get access to the last firefox's state before formatting, and consequently can get access to my login's info.

But this raises me two fundamental questions:

1.

I noticed the error almost immediately so I stopped using the disk to avoid any type of overwriting, from what I understand the information is still there, the problem is in the recovery that may not necessarily have structure.

How feasible is it to recover the entire .mozilla's workdir from the formatted partition? How can I do it? What tools and what approach should I use?

and

2.

In case there is definitely no way to recover the entire directory.

What should be my target files to recover?, I mean:

Of course $HOME/.mozilla/$profile$/logins.json is the mainly target file, but this contains login's info encrypted. So What would be the files that next to this I would need to replace so that when I open firefox I can see my login's info?

I really care about this any help however minimal, whether it be with reading resources, or with explanations of the file system, or with ideas, or whatever, I would be very grateful.

0 Answers
Related