I tried to open this file with Bitcoin core before using pywallet and got a similar "data is not in recognized format" error.
It might be worth mentioning I recovered the file using EaseUS data recovery wizard some time ago.
Salvage will likely return with the same error message since the wallet file's header may be corrupted.
Anyways, to correctly use the command, you should use these commands with your Command Prompt or Powershell (
prepend with ./ for powershell),
Change directory to bitcoin/daemon (
change the dir if Bitcoin Core is installed to another dir):
cd C:\Program Files\Bitcoin\daemon
Provide the path to the wallet.dat file and the salvage command (
without the "-"):
bitcoin-wallet --wallet="C:\Python27\wallet.dat" salvage
Since you already set-up pywallet, using
-recover is worth the try.
It should be able to find if there are recoverable keys from your wallet.dat file.
Follow this guide for the commands:
Here's an example command for recover (
tested with python v2.7.17 and latest version of pywallet):
python pywallet.py --recover --recov_device=D: --recov_size=50Gio --recov_outputdir=C:\pywallet_recov_dir
Then you'll be prompted for the to-be-created wallet's passphrase (
where the keys will be imported) and the deleted wallets'/keys' possible passphrases.
(
characters wont display as you type the passphrases)
The result will be a wallet.dat named "
recovered_wallet_<number>.dat" that you can load to Bitcoin Core.
In your case, just move the corrupted wallet.dat to the root of your other drive, then use its drive letter as the
--recov_device,
then fill out the
--recov_size which is the drive's size and
--recov_outputdir where you want to put the recovered wallet.