Post
Topic
Board Bitcoin Technical Support
Re: Recover btc old pc - Unistalled Client back in 2010
by
rosnick92
on 02/08/2022, 10:35:24 UTC
Quote from: rosnick92
Also regarding the pywallet.py script, I would love if you could give me a step by step guide on how to use it.
First of all, you should be working on another PC with its own system disk and just mount a clone of the drive where your deleted wallet/keys are.
Writing or installing anything on it can potentially overwrite the very data that you want to restore, including using it as a system disk.

About cloning the drive, I don't have anything to recommend for Windows, I also don't know if Windows' "System Image" is a clone of the whole drive.
If you can restore your Windows Image Backup to another HDD/SSD, do it and try to use that restored copy instead.
---------

After that, download and extract pywallet.py into the same folder where python.exe is located.
Then you can use it without installing anything aside from python v2.x.

The example command in my first post should work but you should change the parameters based from your drive and directory paths and size.

-snip-
I downloaded from the website and installed python 2.7 but cmd says that "Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases."
You can launch python from its install directory by using command prompt's "cd" (change directory) command.

Example: if python is installed in "C:/Python/Python27" and python.exe is in that directory, you can enter: cd "C:/Python/Python27"
to set it as command prompt's working directory, then the python command should now work in that session.

Thank you, python works following your steps and the pywallet.py runs too. I have last 2 questions about the script.

Code:
python pywallet.py --recover --recov_device=D: --recov_size=50Gio --recov_outputdir=C:\pywallet_recov_dir
I copy paste this whole line after changing the info with mines or do i need first to run --recover then --recover device=D etc?

Code:
--recover size=50Gio
This is the size of the D device? So in your case it was a 50gb hard drive? The size of the btc hd is 153gb so should I put --recov_size=153Gio ?