Bitcoin Forum
May 21, 2026, 09:25:50 PM *
News: Latest Bitcoin Core release: 31.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How I managed to recover 0.13 BTC from an old hard drive  (Read 195 times)
VanillaH (OP)
Newbie
*
Offline

Activity: 29
Merit: 10


View Profile
May 16, 2026, 01:49:52 PM
Merited by pawanjain (2), joker_josue (2), Lucius (1)
 #1

I bought Bitcoin well over a decade ago, when it was worth a fraction of what it is today, and I still had my old hard drive from back then. Thinking there might be some coins left on it, I decided to investigate.

This isn't really a step-by-step guide, since your recovery process will likely differ from mine. I'm also a programmer, which gives me some background knowledge others may not have. Still, I'll try to be as clear as possible.

First of all, I wasn't sure how healthy my old hard drive still was. It had also been reformatted in the past, and I didn't want to risk overwriting any data. So I used Disk Drill to make a byte-to-byte clone of the drive, then restored that image onto a newer, healthy drive so I could work from a safe copy.

Afterwards, I searched the drive for common terms like wallet.dat, multibit, and other Bitcoin-related keywords. Nothing turned up.

That's when I started looking for specialized tools. I found FindBTC, which is designed to locate traces of wallet.dat files. Scanning my drive on Windows didn't work. Apparently it's a known issue and the software was tested more thoroughly on Linux. Since it hadn't been updated in nine years, I was a bit stuck. Fortunately, after digging into the code, I realized I could scan my byte-to-byte backup instead. That worked, and FindBTC found something:

Code:
[main] Found possible wallet trace:
  Found 'bestblock' at G:\backup.dd in 4kB block at byte offset 32212320256
[main] Found possible wallet trace:
  Found 'defaultkey' at G:\backup.dd in 4kB block at byte offset 32212320256
[main] Found possible wallet trace:
  Found 'addrIncoming' at G:\backup.dd in 4kB block at byte offset 32212324352
[COMPLETE]

Unfortunately, FindBTC didn't offer any way to extract the wallet file from the backup.

I opened the backup file in a hex editor at the byte offsets where the traces were found. After some research, I learned that my wallet file was unencrypted and that the 32-byte raw private keys were stored in it, each prefixed with the bytes 0001D63081D30201010420. So, I wrote a script to scan for this pattern and extract the 32 bytes that followed each match.

This gave me a list of hexadecimal keys. I deduplicated the list and used bitcoin-tool to convert them into WIF keys. I had to run dos2unix for the input file to be accepted by bitcoin-tool. Here are the commands I ran:

Code:
dos2unix input.txt
bitcoin-tool --batch --input-type private-key --input-format hex --input-file input.txt --output-type private-key-wif --output-format base58check --public-key-compression compressed --network bitcoin > output.txt
bitcoin-tool --batch --input-type private-key --input-format hex --input-file input.txt --output-type private-key-wif --output-format base58check --public-key-compression uncompressed --network bitcoin >> output.txt

The WIF keys were then imported into Electrum. I was able to recover 0.08 BTC this way.

As happy as I was, FindBTC only handled wallet.dat files, and I was sure I'd used other wallet software back then.

I tried another tool called Treasure Hunter. This time I couldn't run it against my byte-to-byte backup, but it worked fine on the drive itself. It flagged a file called Screenshot_2019-01-02-08-44-45.png and identified it as an Electrum wallet. I tried to open it, but Windows complained, "It looks like we don't support this file format."

I opened it in a hex editor and found out that it wasn't a PNG file at all, but a mix of different things. The file was corrupt. The beginning was a Python script. Here are the first few lines:

Code:
import weakref

from .lock import allocate_lock
from .error import CDefError, VerificationError, VerificationMissing

# type qualifiers
Q_CONST    = 0x01
Q_RESTRICT = 0x02
Q_VOLATILE = 0x04

def qualify(quals, replace_with):

I assumed this was a false positive and was ready to move on, but then I noticed something else on the very first line of the file: a very, very long string. I won't paste the whole thing here, but it looked something like this:

Code:
QklFMQIkB0eHIcrdrMw1gwhsi...haZr1WueqYDeA==import types

This was a base64-encoded string followed by the start of the Python script. After some research, I realized this base64 string was actually an Electrum wallet. I extracted it into a separate file and tried to load it into Electrum, which prompted me for a password. After 20 minutes of guessing, I was starting to think I'd have to use BTCRecover, but I finally got in, and found 0.05 BTC sitting inside.

All in all, I recovered about 0.13 BTC. Considering I bought it for pennies way back then, I'm definitely not complaining!!

I'm no expert, but if you have any questions, I'll try to answer them as best as I can.
arzuo
Member
**
Offline

Activity: 257
Merit: 24

Own a Dream with crypto


View Profile WWW
May 16, 2026, 02:31:30 PM
 #2

The topic is instructive and I had some questions!

# How did you clone the hard drive without preparing the drive directly? Was your disk fully functional?

# Do you personally remember what kind of information you had to enter into the device?

# How did you recover data from a previously REformatted disk?

VanillaH (OP)
Newbie
*
Offline

Activity: 29
Merit: 10


View Profile
May 16, 2026, 02:37:19 PM
Last edit: May 16, 2026, 03:08:23 PM by VanillaH
 #3

The topic is instructive and I had some questions!

# How did you clone the hard drive without preparing the drive directly? Was your disk fully functional?

ANSWER: My drive was fully functional, though I wasn't sure how healthy it was. I plugged it into my main computer and created a byte-to-byte backup. If your disk isn't functional, or if you really don't want to screw it up, it may be better to have a professional handle the imaging process instead.

# Do you personally remember what kind of information you had to enter into the device?

ANSWER: I'm not fully sure what you mean.

# How did you recover data from a previously REformatted disk?

ANSWER: I used Disk Drill to create and restore the image for my byte-to-byte backup. I assume most data recovery software will do the job. Technically, you can run the data recovery software directly on the drive, but I feared that might damage it, which is why I created a byte-to-byte backup and worked from that instead.


My answers are above!
arzuo
Member
**
Offline

Activity: 257
Merit: 24

Own a Dream with crypto


View Profile WWW
May 16, 2026, 03:13:44 PM
 #4


# Do you personally remember what kind of information you had to enter into the device?
Question 2 :I would like to know, do you remember anything that helped you recover it?

For example: wallet username, email address, a guessed password, or a guessed seed word.

(And if not, anyone can recover it in the same way as you, they just need to know that the hard drive has the potential to contain Bitcoin! And if so, many people will collect old hard drives and try!)

VanillaH (OP)
Newbie
*
Offline

Activity: 29
Merit: 10


View Profile
May 16, 2026, 04:56:37 PM
 #5


# Do you personally remember what kind of information you had to enter into the device?
Question 2 :I would like to know, do you remember anything that helped you recover it?

For example: wallet username, email address, a guessed password, or a guessed seed word.

(And if not, anyone can recover it in the same way as you, they just need to know that the hard drive has the potential to contain Bitcoin! And if so, many people will collect old hard drives and try!)

I knew I had used Electrum and Bitcoin Core. I also more-or-less remembered the passwords I had used back then.
Lucius
Legendary
*
Offline

Activity: 3976
Merit: 7429


www.marysmeals.org


View Profile WWW
May 17, 2026, 02:55:51 PM
 #6

There's no doubt that it's a good feeling to find buried treasure - especially if you did it without anyone's help. Your name seemed familiar, and when I looked at your post history I saw that we had exchanged a few posts about crypto ATMs - are you still in the business or has Canada banned such devices?

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
VanillaH (OP)
Newbie
*
Offline

Activity: 29
Merit: 10


View Profile
May 17, 2026, 03:29:01 PM
 #7

There's no doubt that it's a good feeling to find buried treasure - especially if you did it without anyone's help. Your name seemed familiar, and when I looked at your post history I saw that we had exchanged a few posts about crypto ATMs - are you still in the business or has Canada banned such devices?

I left the business a long time ago. Way too many scams. Canada hasn't banned crypto ATMs yet, but I think they're heading in that direction. I'm not sure whether it's still just talk, or if the decision is already set in stone.
Lucius
Legendary
*
Offline

Activity: 3976
Merit: 7429


www.marysmeals.org


View Profile WWW
May 18, 2026, 01:54:51 PM
 #8

~snip~
I left the business a long time ago. Way too many scams. Canada hasn't banned crypto ATMs yet, but I think they're heading in that direction. I'm not sure whether it's still just talk, or if the decision is already set in stone.


True, a lot has been written about people being sucked into a tax scam using crypto ATMs when it comes to Canada. This is a real shame considering that such things could have been prevented with just simple warnings on ATMs - and this is something I see operators of such devices highlighting as a warning to potential customers.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
nc50lc
Legendary
*
Offline

Activity: 3150
Merit: 8786


Self-proclaimed Genius


View Profile
May 19, 2026, 05:18:54 AM
 #9

I tried another tool called Treasure Hunter. This time I couldn't run it against my byte-to-byte backup, but it worked fine on the drive itself. It flagged a file called Screenshot_2019-01-02-08-44-45.png and identified it as an Electrum wallet.
You'd probably used that as a "last-resort backup" of an Electrum wallet file.
I remember suggesting this years ago to users who want an offline indistinguishable backup of their wallet file (aside from the written seed phrase of course)

The method is to disguise it as other file types alongside with real files of that type with the same file size.
Because even if it's renamed with file name extension of other file types, it will still work when loaded to Electrum.
But to be extra safe, I've noted that it should be in an encrypted form like inside a compressed archive with strong password even if the wallet is already encrypted itself.
You must have chosen to hid it alongside with other pictures (png).

That's if it's not a bug in that treasure hunter tool.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
joker_josue
Legendary
*
Offline

Activity: 2394
Merit: 7044


**In BTC since 2013**


View Profile WWW
May 19, 2026, 06:39:21 AM
 #10

Interesting process that ultimately had a positive outcome. Congratulations on successfully recovering that BTC.

You didn't mention it, but how long did the whole process take?

 
 b1exch.to 
  ETH      DAI   
  BTC      LTC   
  USDT     XMR    
.███████████▄▀▄▀
█████████▄█▄▀
███████████
███████▄█▀
█▀█
▄▄▀░░██▄▄
▄▀██▄▀█████▄
██▄▀░▄██████
███████░█████
█░████░█████████
█░█░█░████░█████
█░█░█░██░█████
▀▀▀▄█▄████▀▀▀
The Cryptovator
Legendary
*
Online Online

Activity: 2898
Merit: 2575


Protect your privacy 🔏 it's very important


View Profile WWW
May 19, 2026, 07:17:46 AM
 #11

Good to hear you have successfully recovered your wallet; you were lucky since you purchased and stored Bitcoin decades ago. Since you are a programmer, hence it was easy for you to write a script and find the perfect tools to recover your funds. But in such a situation it will be hard for the general public to recover their wallet.

I am not sure if this strategy would work for everyone, but this thread would inspire those who forgot about their wallet. Also, it's a warning for new users to secure their wallet credentials in a secure place. Because everyone won't be lucky like you to recover their wallet. So we need to think before losing the wallet credentials. 

 
 b1exch.to 
  ETH      DAI   
  BTC      LTC   
  USDT     XMR    
.███████████▄▀▄▀
█████████▄█▄▀
███████████
███████▄█▀
█▀█
▄▄▀░░██▄▄
▄▀██▄▀█████▄
██▄▀░▄██████
███████░█████
█░████░█████████
█░█░█░████░█████
█░█░█░██░█████
▀▀▀▄█▄████▀▀▀
YellowSwap
Full Member
***
Offline

Activity: 459
Merit: 148



View Profile
May 19, 2026, 08:13:43 AM
 #12

I am happy that you finally found your way around it, I would have been tired already through the hassle, I've lost access to some coins in the past, alternative coins to be precise and recovering them is a big pain in the ass.

I don't want to ever experience that again, so it's better to make sure that nothing like this happen to you ever ( for newbies and beginners to be precise), do all you can to never lose access to your private key or recovery seed.

It's not easy to get your lost keys back and most of the time, 98% of time you will never get it back, so I consider this OP to be very lucky son of a gun, don't ever be careless again.

VanillaH (OP)
Newbie
*
Offline

Activity: 29
Merit: 10


View Profile
May 19, 2026, 05:19:07 PM
 #13

Interesting process that ultimately had a positive outcome. Congratulations on successfully recovering that BTC.

You didn't mention it, but how long did the whole process take?

Thanks! It took me about 3 weeks or so.
joker_josue
Legendary
*
Offline

Activity: 2394
Merit: 7044


**In BTC since 2013**


View Profile WWW
May 19, 2026, 10:19:13 PM
 #14

Thanks! It took me about 3 weeks or so.

But were those many hours spent working directly on it, or was it more time that the software spent analyzing information?

 
 b1exch.to 
  ETH      DAI   
  BTC      LTC   
  USDT     XMR    
.███████████▄▀▄▀
█████████▄█▄▀
███████████
███████▄█▀
█▀█
▄▄▀░░██▄▄
▄▀██▄▀█████▄
██▄▀░▄██████
███████░█████
█░████░█████████
█░█░█░████░█████
█░█░█░██░█████
▀▀▀▄█▄████▀▀▀
VanillaH (OP)
Newbie
*
Offline

Activity: 29
Merit: 10


View Profile
May 19, 2026, 11:26:14 PM
 #15

Thanks! It took me about 3 weeks or so.

But were those many hours spent working directly on it, or was it more time that the software spent analyzing information?

More time was spent on the software analyzing information. Running the tools took forever!

I did spend a fair amount of time working directly on the files, but I already a good idea of what to look for, so that helped.
pawanjain
Hero Member
*****
Offline

Activity: 3416
Merit: 957


Nothing lasts forever


View Profile
May 20, 2026, 03:39:26 PM
 #16

All in all, I recovered about 0.13 BTC. Considering I bought it for pennies way back then, I'm definitely not complaining!!

I'm no expert, but if you have any questions, I'll try to answer them as best as I can.

That was very impressive I must say. Honestly speaking, reading the entire process felt like watching a movie.
I was really amused when you mentioned that you did a byte to byte clone of your hard drive and used a hex editor to search for BTC data.
That's what got me hooked. Anyway, congratulations on your BTC recovery. You got what you deserved.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!