Post
Topic
Board Development & Technical Discussion
Re: Wallet.dat fragmented from OS resintallation on HDD
by
nc50lc
on 05/03/2025, 04:30:54 UTC
The HDD back then was Separated as C and D drive, where most apps, games, info was saved on D directory.  I hope this makes the chances a bit higher.
Only if you didn't deleted the D partition when you formatted the hard disk and only formatted both partitions leaving the sectors bound to each intact.
In that case, the OS hasn't been constantly writing to that drive and only your recently written files to D:/ will come into equation of corruption.

If it's deleted and the whole drive was formatted as one partition or created new C and D partitions, you'll get the same chance regardless.
It's based from the block and sector where the data is written.


If your wallet.dat came out corrupted, you can make a copy of it and try to use Bitcoin Core's bitcoin-wallet tool's "salvage" command.
Install Bitcoin Core and find it in "bin" or "daemon" folder.
Use your terminal/cmd, cd to that directory and use the salvage command, e.g.: bitcoin-wallet --wallet="Full\path\to\your\wallet.dat" salvage