Bitcoin Forum
April 25, 2024, 08:47:28 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Formatted Drive , Lost wallet.dat  (Read 3221 times)
Robert23 (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
January 05, 2012, 06:45:41 AM
 #1

HI everyone,
This evening I did a clean reinstall of windows, however I forgot to move my wallet.dat. When I realized my mistake, I booted into a live cd of ubuntu. I tried to recover the keys using this https://bitcointalk.org/index.php?topic=25091.0, but it said the command was not found. Can anybody help me out.
Much thanks
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, which will follow the rules of the network no matter what miners do. Even if every miner decided to create 1000 bitcoins per block, full nodes would stick to the rules and reject those blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714078048
Hero Member
*
Offline Offline

Posts: 1714078048

View Profile Personal Message (Offline)

Ignore
1714078048
Reply with quote  #2

1714078048
Report to moderator
1714078048
Hero Member
*
Offline Offline

Posts: 1714078048

View Profile Personal Message (Offline)

Ignore
1714078048
Reply with quote  #2

1714078048
Report to moderator
devoblackflag
Newbie
*
Offline Offline

Activity: 11
Merit: 0



View Profile
January 05, 2012, 07:10:03 AM
 #2

Honestly you're probably fucked. Which command wasn't working?
casascius
Mike Caldwell
VIP
Legendary
*
Offline Offline

Activity: 1386
Merit: 1136


The Casascius 1oz 10BTC Silver Round (w/ Gold B)


View Profile WWW
January 05, 2012, 07:13:31 AM
 #3

Does that mean it searched your drive and found nothing?  Or that you couldn't get the command to start?  How long did the command "think" before it decided it didn't work, and how big is the drive?

I just successfully recovered someone's BTC just a few days ago... we did it by installing windows on a different boot drive, and then I got on GoToMeeting and dug up his BTC with a hex editor.

Companies claiming they got hacked and lost your coins sounds like fraud so perfect it could be called fashionable.  I never believe them.  If I ever experience the misfortune of a real intrusion, I declare I have been honest about the way I have managed the keys in Casascius Coins.  I maintain no ability to recover or reproduce the keys, not even under limitless duress or total intrusion.  Remember that trusting strangers with your coins without any recourse is, as a matter of principle, not a best practice.  Don't keep coins online. Use paper or hardware wallets instead.
jake262144
Full Member
***
Offline Offline

Activity: 210
Merit: 100


View Profile
January 05, 2012, 07:14:13 AM
 #4

LEARN TO BACKUP VALUABLE DATA :<

but it said the command was not found.
Which command wasn't found?
There are a couple steps to the whole procedure and you haven't told us which one failed.
casascius
Mike Caldwell
VIP
Legendary
*
Offline Offline

Activity: 1386
Merit: 1136


The Casascius 1oz 10BTC Silver Round (w/ Gold B)


View Profile WWW
January 05, 2012, 07:39:39 AM
 #5

Well... Just don't write anything to that drive until you have either recovered your BTC or determined it's a lost cause.  Don't boot it, don't install anything to it, don't save anything to it.

Was it a decent amount worth major effort to save?

A hex editor can determine very quickly if there is a recoverable wallet on the drive.  The wallet will be completely recoverable if it is on sectors that have not been overwritten.

Companies claiming they got hacked and lost your coins sounds like fraud so perfect it could be called fashionable.  I never believe them.  If I ever experience the misfortune of a real intrusion, I declare I have been honest about the way I have managed the keys in Casascius Coins.  I maintain no ability to recover or reproduce the keys, not even under limitless duress or total intrusion.  Remember that trusting strangers with your coins without any recourse is, as a matter of principle, not a best practice.  Don't keep coins online. Use paper or hardware wallets instead.
Robert23 (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
January 05, 2012, 03:31:21 PM
 #6

Yeah, it's a 125 bitcoins. I forgot to add that it's an ssd too, and also that I had a 2 month old copy of wallet.dat on my flash drive, before I deleted it since I was going to move the new wallet.dat onto it. The command ./wallet-recover-0.2-linux/bin/32/wallet-recover did not work.
chromeguy
Newbie
*
Offline Offline

Activity: 28
Merit: 0



View Profile WWW
January 05, 2012, 03:32:53 PM
 #7

i have done many clean reinstalls of my Windows, and it simply renames the old copy to windows.old - unless you meant you did a format?
if format, use a file recovery program such as piriform's Recuva - as mentioned before, do not boot or write ANYTHING to the drive.
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
January 05, 2012, 03:34:00 PM
 #8

This highlights why all wallets need to be deterministic.  As user base grows you will get less and less tech savy users.  A strongly encrypted, lose it and you are fucked wallet is fine for power users, businesses, custom development but not for Joe Sixpack.
BurtW
Legendary
*
Offline Offline

Activity: 2646
Merit: 1130

All paid signature campaigns should be banned.


View Profile WWW
January 05, 2012, 04:16:54 PM
 #9

The command ./wallet-recover-0.2-linux/bin/32/wallet-recover did not work.

Still not sure if you mean a) you tried to run this command and the program did not run or b) the program did run but after scanning your entire drive it did not find anything.

Which is it?

Since it is over $600 (at this time) you might be able to ship your drive to someone who knows how to do this and pay them a finders fee if they can find it (?)

Our family was terrorized by Homeland Security.  Read all about it here:  http://www.jmwagner.com/ and http://www.burtw.com/  Any donations to help us recover from the $300,000 in legal fees and forced donations to the Federal Asset Forfeiture slush fund are greatly appreciated!
BUTAB
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
January 05, 2012, 05:03:37 PM
 #10

did you delete the partition?
Robert23 (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
January 05, 2012, 11:00:48 PM
 #11

Yes, I unfortunately reformatted the drive.
I loaded up a ubuntu live cd, opened the terminal and entered
"wget http://www.makomk.com/~aidan/wallet-recover-0.2-linux.tar.gz
tar xzf wallet-recover-0.2-linux.tar.gz"
then I entered this

sudo ./wallet-recover-0.2-linux/bin/32/wallet-recover /dev/sda recovered-wallet.dat
however the terminal said that this command "
/wallet-recover-0.2-linux/bin/32/wallet-recover"
was not found.As for shiping my drive, is their anyone who can fix it for me like that and for what fee.
Thanks for the replies
bulanula
Hero Member
*****
Offline Offline

Activity: 518
Merit: 500



View Profile
January 05, 2012, 11:04:38 PM
 #12

Yes, I unfortunately reformatted the drive.
I loaded up a ubuntu live cd, opened the terminal and entered
"wget http://www.makomk.com/~aidan/wallet-recover-0.2-linux.tar.gz
tar xzf wallet-recover-0.2-linux.tar.gz"
then I entered this

sudo ./wallet-recover-0.2-linux/bin/32/wallet-recover /dev/sda recovered-wallet.dat
however the terminal said that this command "
/wallet-recover-0.2-linux/bin/32/wallet-recover"
was not found.As for shiping my drive, is their anyone who can fix it for me like that and for what fee.
Thanks for the replies

Where are you located ? What SSD was it ?
chromeguy
Newbie
*
Offline Offline

Activity: 28
Merit: 0



View Profile WWW
January 05, 2012, 11:11:44 PM
 #13

Yes, I unfortunately reformatted the drive.
I loaded up a ubuntu live cd, opened the terminal and entered
"wget http://www.makomk.com/~aidan/wallet-recover-0.2-linux.tar.gz
tar xzf wallet-recover-0.2-linux.tar.gz"
then I entered this

sudo ./wallet-recover-0.2-linux/bin/32/wallet-recover /dev/sda recovered-wallet.dat
however the terminal said that this command "
/wallet-recover-0.2-linux/bin/32/wallet-recover"
was not found.As for shiping my drive, is their anyone who can fix it for me like that and for what fee.
Thanks for the replies
this sounds to me (with virtually no linux experience) like the actual wallet-get program isn't installed to your live cd (ram drive, whatever) properly or you are trying to access the wrong path.


edit: i'm pretty sure that you can get UBCD4WIN that has recova or similar program on it - even linux live-cd's should have some kind of recover-file-after-format utility on them, try an inbuilt one & ask it to search specifically for wallet.dat
casascius
Mike Caldwell
VIP
Legendary
*
Offline Offline

Activity: 1386
Merit: 1136


The Casascius 1oz 10BTC Silver Round (w/ Gold B)


View Profile WWW
January 05, 2012, 11:24:09 PM
 #14

If all else fails, I can do it for 20 BTC, payable only if successful, plus the cost of return shipping for your drive regardless of success assuming you want it back.  If your wallet was encrypted, I will need the encryption password you used.

Here was my last successful recovery. https://bitcointalk.org/index.php?topic=56023.msg672983#msg672983

My mailing address is on my website in my sig line.

Your chances of recovery are maximized if you do not boot the drive and do not write anything to it.  Feel free to boot other drives and play with your drive as a secondary drive, but don't let it start as primary.

Companies claiming they got hacked and lost your coins sounds like fraud so perfect it could be called fashionable.  I never believe them.  If I ever experience the misfortune of a real intrusion, I declare I have been honest about the way I have managed the keys in Casascius Coins.  I maintain no ability to recover or reproduce the keys, not even under limitless duress or total intrusion.  Remember that trusting strangers with your coins without any recourse is, as a matter of principle, not a best practice.  Don't keep coins online. Use paper or hardware wallets instead.
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
January 05, 2012, 11:29:28 PM
 #15

Your chances of recovery are maximized if you do not boot the drive and do not write anything to it.  Feel free to boot other drives and play with your drive as a secondary drive, but don't let it start as primary.

THIS.

If you don't follow this instruction you can kiss any chance of recovery goodbye.

SSD make chance of recovery even worse as they have garbage collection.   I wouldn't even boot up until you are ready to attempt recovery.  SSD are slow to erase and must erase before they write so in the backup the SSD controller will erase blocks marked as unused.    Unlike a magnetic HDD where the file remains until it is overwritten w/ an SSD you can lose the data simply by letting SSD sit idle even if the file isn't overwritten.
chromeguy
Newbie
*
Offline Offline

Activity: 28
Merit: 0



View Profile WWW
January 05, 2012, 11:37:14 PM
 #16

SSD make chance of recovery even worse as they have garbage collection.   I wouldn't even boot up until you are ready to attempt recovery.  SSD are slow to erase and must erase before they write so in the backup the SSD controller will erase blocks marked as unused.    Unlike a magnetic HDD where the file remains until it is overwritten w/ an SSD you can lose the data simply by letting SSD sit idle even if the file isn't overwritten.
that's nasty!

can you make a clone image using a program designed to image corrupt hdd's? this way you can poke and probe without fear of this garbage collection performing.

also, y u no old backup?!
just discussing on a different thread about the wallet, an old backup will restore up to 100 post-backup keys/transactions from the backup date.
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
January 05, 2012, 11:38:30 PM
 #17

SSD make chance of recovery even worse as they have garbage collection.   I wouldn't even boot up until you are ready to attempt recovery.  SSD are slow to erase and must erase before they write so in the backup the SSD controller will erase blocks marked as unused.    Unlike a magnetic HDD where the file remains until it is overwritten w/ an SSD you can lose the data simply by letting SSD sit idle even if the file isn't overwritten.
that's nasty!

can you make a clone image using a program designed to image corrupt hdd's? this way you can poke and probe without fear of this garbage collection performing.

That might actually be a very good idea to do before anything else. 
casascius
Mike Caldwell
VIP
Legendary
*
Offline Offline

Activity: 1386
Merit: 1136


The Casascius 1oz 10BTC Silver Round (w/ Gold B)


View Profile WWW
January 05, 2012, 11:56:07 PM
 #18

SSD make chance of recovery even worse as they have garbage collection.   I wouldn't even boot up until you are ready to attempt recovery.  SSD are slow to erase and must erase before they write so in the backup the SSD controller will erase blocks marked as unused.    Unlike a magnetic HDD where the file remains until it is overwritten w/ an SSD you can lose the data simply by letting SSD sit idle even if the file isn't overwritten.
that's nasty!

can you make a clone image using a program designed to image corrupt hdd's? this way you can poke and probe without fear of this garbage collection performing.

That might actually be a very good idea to do before anything else.  

I suppose whether or not an SSD will garbage-collect abandoned data after a format would be highly dependent on whether the formatting OS issued a TRIM command to the drive to explicitly signal that the data is no longer needed, specifically TRIMming the entire drive as a whole.  I am not entirely sure whether or not that happens during a disk format operation.  But such idle garbage collection is only a concern if the answer to that question is yes.

EDIT: I just googled and found this: http://digfor.blogspot.com/2011/08/ssd-trim-encryption-formating-and.html - which, if correct, would be bad news.

Companies claiming they got hacked and lost your coins sounds like fraud so perfect it could be called fashionable.  I never believe them.  If I ever experience the misfortune of a real intrusion, I declare I have been honest about the way I have managed the keys in Casascius Coins.  I maintain no ability to recover or reproduce the keys, not even under limitless duress or total intrusion.  Remember that trusting strangers with your coins without any recourse is, as a matter of principle, not a best practice.  Don't keep coins online. Use paper or hardware wallets instead.
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
January 06, 2012, 12:01:03 AM
 #19

SSD make chance of recovery even worse as they have garbage collection.   I wouldn't even boot up until you are ready to attempt recovery.  SSD are slow to erase and must erase before they write so in the backup the SSD controller will erase blocks marked as unused.    Unlike a magnetic HDD where the file remains until it is overwritten w/ an SSD you can lose the data simply by letting SSD sit idle even if the file isn't overwritten.
that's nasty!

can you make a clone image using a program designed to image corrupt hdd's? this way you can poke and probe without fear of this garbage collection performing.

That might actually be a very good idea to do before anything else. 

I suppose whether or not an SSD will garbage-collect abandoned data after a format would be highly dependent on whether the formatting OS issued a TRIM command to the drive to explicitly signal that the data is no longer needed, specifically TRIMming the entire drive as a whole.  I am not entirely sure whether or not that happens during a disk format operation.  But such idle garbage collection is only a concern if the answer to that question is yes.


I don't know about other OS but I do know Windows 7 specifically (both install DVD and OS internally) fire TRIM on a format for all blocks in the format.  Ironically this was considered a good thing when it was announced (because otherwise a format won't solve various performance problems).


Robert23 (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
January 06, 2012, 12:12:09 AM
 #20

SSD make chance of recovery even worse as they have garbage collection.   I wouldn't even boot up until you are ready to attempt recovery.  SSD are slow to erase and must erase before they write so in the backup the SSD controller will erase blocks marked as unused.    Unlike a magnetic HDD where the file remains until it is overwritten w/ an SSD you can lose the data simply by letting SSD sit idle even if the file isn't overwritten.
that's nasty!

can you make a clone image using a program designed to image corrupt hdd's? this way you can poke and probe without fear of this garbage collection performing.

also, y u no old backup?!
just discussing on a different thread about the wallet, an old backup will restore up to 100 post-backup keys/transactions from the backup date.
what program do you suggest?
Pages: [1] 2 »  All
  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!