Author

Topic: Corrupted wallet recovery. (Read 135 times)

newbie
Activity: 6
Merit: 1
January 22, 2023, 08:01:09 AM
#12
Thank you nc,

I'll give that a try after the recovery scan has completed
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
January 22, 2023, 07:49:48 AM
#11
-snip-
I've tried swapping my wallet.dat into a default wallet.  Get a couldn't salvage message,

My install has a daemon folder. When I use the powershell in there, with a copy of wallet in the same folder, I get an "invalid command" error

Code:
PS D:\BTC\daemon> ./bitcoin-wallet -wallet="D:\BTC\daemon\wallet.dat" salvage
Invalid command: salvage
PS D:\BTC\daemon>
It appears that you're using an old version of Bitcoin Core because of the "daemon" folder and missing salvage command in bitcoin-wallet tool.

You have two options to use it:
  • Option1 is to update Bitcoin Core to the latest version or download the Windows zip file, extract it to a different directory and use the provided instructions.
    The latest binaries can be downloaded here: bitcoincore.org/en/download/ or the "news" link above the forum.
  • Option2 is to use your old Bitcoin Core to salvage but the wallet.dat needs to be pasted to be in the correct wallet directory and IIRC, the command line option was -salvagewallet.
    Salvage was previously included in the main software before it's moved to bitcoin-wallet tool.
newbie
Activity: 6
Merit: 1
January 22, 2023, 05:14:14 AM
#10
I hope you created backups of the recovered wallet.dat file because tools will likely modify it during the recovery process.


I see that you're using Windows, the first thing to try is Bitcoin Core's own bitcoin-wallet tool.
It's pre-installed together with Bitcoin Core, should be in "bin" folder inside your Bitcoin installation folder (Program Files default).

To use it, go to that bin directory then right-click on an empty space in that file explorer window while not selecting any file, and select "Open PowerShell window here".
PowerShell will open and the displayed directory should be where bitcoin-wallet.exe is.

In PowerShell, type:
Code:
./bitcoin-wallet -wallet="full_path_to_wallet.dat" salvage
for example, if I put the corrupted wallet.dat in the same bin directory:
Code:
./bitcoin-wallet -wallet="C:\Program Files\Bitcoin\bin\wallet.dat" salvage

If there's an error, the wallet file is too corrupt or there are other issues.
If there's no error, salvage worked and the wallet may have been retrieved, the original wallet is renamed as .bak file while the new wallet.dat is the restored wallet file.

Thank you nc,

I've tried swapping my wallet.dat into a default wallet.  Get a couldn't salvage message,

My install has a daemon folder. When I use the powershell in there, with a copy of wallet in the same folder, I get an "invalid command" error

Code:
PS D:\BTC\daemon> ./bitcoin-wallet -wallet="D:\BTC\daemon\wallet.dat" salvage
Invalid command: salvage
PS D:\BTC\daemon>




I recovered wallet.dat with EaseUS but the .dat is a garbled mess that pywallet can't read.
Each time Bitcoin Core saves your wallet.dat, it writes to a different part of your disk. Pywallet has an option to search the entire disk, that might help. See [GUIDE] Recover your deleted keys.

Thank you Loyce.

Scanning now.

[moderator's note: consecutive posts merged]
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
January 22, 2023, 03:14:19 AM
#9
I recovered wallet.dat with EaseUS but the .dat is a garbled mess that pywallet can't read.
Each time Bitcoin Core saves your wallet.dat, it writes to a different part of your disk. Pywallet has an option to search the entire disk, that might help. See [GUIDE] Recover your deleted keys.
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
January 22, 2023, 12:28:55 AM
#8
I hope you created backups of the recovered wallet.dat file because tools will likely modify it during the recovery process.


I see that you're using Windows, the first thing to try is Bitcoin Core's own bitcoin-wallet tool.
It's pre-installed together with Bitcoin Core, should be in "bin" folder inside your Bitcoin installation folder (Program Files default).

To use it, go to that bin directory then right-click on an empty space in that file explorer window while not selecting any file, and select "Open PowerShell window here".
PowerShell will open and the displayed directory should be where bitcoin-wallet.exe is.

In PowerShell, type:
Code:
./bitcoin-wallet -wallet="full_path_to_wallet.dat" salvage
for example, if I put the corrupted wallet.dat in the same bin directory:
Code:
./bitcoin-wallet -wallet="C:\Program Files\Bitcoin\bin\wallet.dat" salvage

If there's an error, the wallet file is too corrupt or there are other issues.
If there's no error, salvage worked and the wallet may have been retrieved, the original wallet is renamed as .bak file while the new wallet.dat is the restored wallet file.
newbie
Activity: 6
Merit: 1
January 21, 2023, 08:33:22 PM
#7
Thank you Edwardard

pywallet...

https://i.imgur.com/yKOzzXp.png
hero member
Activity: 1050
Merit: 681
January 21, 2023, 08:32:20 PM
#6
btw... this is my pywallet results

oh... maybe not. How to paste a screenshot?
Just upload your screenshot on img.doerig.dev and copy the direct link you get for your image/screenshot from there. Later, use the bbcode and paste your img here in this form:
Code:
[img]https://imgur.com/img.png[/img]
newbie
Activity: 6
Merit: 1
January 21, 2023, 08:08:07 PM
#5
Ok, thank you.



btw... this is my pywallet results

oh... maybe not. How to paste a screenshot?

http://

[moderator's note: consecutive posts merged]
legendary
Activity: 1512
Merit: 4795
Leading Crypto Sports Betting & Casino Platform
January 21, 2023, 07:01:29 PM
#4
Yes, it's Bitcoin Core.

I have a password that needs entering to spend/send BTC.
You need your wallet file for it and you do not have it again which is what you rely on as backup. You can wait for other people to respond if it is possible to use a data recover to recover your wallet file after the OS has been reinstalled. The last I remember was a discussion about formating a phone and how possible the deleted data on it can still be recovered, but I do not know if this is possible after computer OS has been reinstalled. But I guess definitely that the data that has been deleted on computer will still stay for certain period of time until it is replaced by new data on the computer, so there should be a way about the recovery.
newbie
Activity: 6
Merit: 1
January 21, 2023, 06:49:38 PM
#3
Yes, it's Bitcoin Core.

I have a password that needs entering to spend/send BTC.
legendary
Activity: 1512
Merit: 4795
Leading Crypto Sports Betting & Casino Platform
January 21, 2023, 06:43:00 PM
#2
You can not recover a wallet with just addresses and passphrase, you will need the wallet.dat or the master private key for the recovery.

You can extend the seed phrase with passphrase to generate different seed, different keys and addresses. Are you sure it is Bitcoin Core or a seed phrase wallet? Because passhrase is not needed with private key, it is used with seed phrase not keys.

Which wallet?
newbie
Activity: 6
Merit: 1
January 21, 2023, 06:40:48 PM
#1
Long story short,

I did a fresh OS install on Drive 0.... which has... strike that, had, my BTC wallet on it.

I managed to stop the install, but the damage was already done.  I recovered wallet.dat with EaseUS but the .dat is a garbled mess that pywallet can't read.
However, I know the BTC addresses associated with the wallet and the passphrase. Can I regain access?

Thanks for any assistance.
Jump to: