Bitcoin Forum

Other => Beginners & Help => Topic started by: bret on November 28, 2013, 06:07:45 PM



Title: Trouble with pywallet (recovered and partially recovered wallets)
Post by: bret on November 28, 2013, 06:07:45 PM
Hello,

I am unable to post or reply in an area likely to be seen by jackjack but I am having some trouble with a recovered wallet and partially recovered wallet from a crashed HDD.

My recovered wallet is showing a balance of 0.00BTC and my partially recovered wallet appears to be useless.  I am really unclear on how I use either of these files.

I copied the recovered_wallet.dat to my Bitcoin folder and renamed it wallet.dat, did a BitcoinQT --rescan and it shows no balance.

I am unable to get the partially recovered wallet to do much of anything.

Also in my recovered wallet folder I have the following files

drwxr-xr-x   272B Nov 20 05:53 .bitcoin
-rw-r--r--   2.1K Oct 31 02:18 README
-rw-r-----   10M Nov 19 20:13 log.0000000001
-rwxr--r--   337K Oct 31 02:18 pywallet.py
-rw-r--r--   4.7K Nov 19 20:13 pywallet_partial_recovery_1384920810.dat
-rw-r-----   16K Nov 19 20:13 recovered_wallet_1384920812.dat

contents of .bitcoin
-rw-r-----  24K Nov 20 05:53 __db.001
-rw-r-----  200K Nov 20 05:53 __db.002
-rw-r-----  264K Nov 20 05:53 __db.003
-rw-r-----  96K Nov 20 05:53 __db.004
-rw-r-----  736K Nov 20 05:53 __db.005
-rw-r-----  56K Nov 20 05:53 __db.006


What do I do with the files __db files in .bitcoin? Can I dump or some how salvage the files in partially recovered wallet? If not, what is the purpose of this file? How do I dump the keys from my recovered_wallet_1384920812.dat and is there any way to determine the approximate age of the keys in that file?  Should I be able to locate some of my send/recv addresses in either of those files?

Thanks!

Can someone please point jackjack to this thread, I would greatly appreciate it.


Title: Re: Trouble with pywallet (recovered and partially recovered wallets)
Post by: jackjack on November 29, 2013, 09:41:47 PM
Hi!

pywallet_partial_recovery_XXX.dat is just a file that records the places where pywallet found some data. It avoids having to rescan the whole disk (which is kinda long) if something crashes.
The __db files is something that is due to my too light understanding of the bsddb library (which is the format of bitcoin-qt wallets)


I copied the recovered_wallet.dat to my Bitcoin folder and renamed it wallet.dat, did a BitcoinQT --rescan and it shows no balance.
How many keys did it manage to recover?

How do I dump the keys from my recovered_wallet_1384920812.dat and is there any way to determine the approximate age of the keys in that file? 
The regular way, recovered_wallet_1384920812.dat is really a wallet.dat (pywallet.py --dumpwallet --wallet recovered_wallet_1384920812.dat or something like that)

Should I be able to locate some of my send/recv addresses in either of those files?
They should be in the recovered_wallet_1384920812.dat, try looking at the dump


Title: Re: Trouble with pywallet (recovered and partially recovered wallets)
Post by: bret on December 10, 2013, 12:13:49 AM

Should I be able to locate some of my send/recv addresses in either of those files?
They should be in the recovered_wallet_1384920812.dat, try looking at the dump


I tried to run the dump and I get this

./pywallet.py --dumpwallet --wallet recovered_wallet_1384920812.dat
ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this again.


Title: Re: Trouble with pywallet (recovered and partially recovered wallets)
Post by: Sormerense on December 10, 2013, 01:50:58 AM
Just broke my Zetacoin wallet while encrypting. So scare.