Bitcoin Forum
April 25, 2024, 12:49:04 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Help me access my friends corrupt litecoin wallet.dat  (Read 978 times)
scutzi128 (OP)
Sr. Member
****
Offline Offline

Activity: 476
Merit: 283


View Profile
January 16, 2014, 10:02:08 PM
 #1

Long story short my friend reinstalled windows and did not realize that the wallet.dat file was on his c drive. He used recuva to read the old wallet.dat file but when used in litecoin it says it is corrupted. I tried using pywallet with no success. He had around 30 ltc in it and anyone that can help access it will get a 20% bounty. Any help would be greatly appreciated. Thanks.
1714006144
Hero Member
*
Offline Offline

Posts: 1714006144

View Profile Personal Message (Offline)

Ignore
1714006144
Reply with quote  #2

1714006144
Report to moderator
1714006144
Hero Member
*
Offline Offline

Posts: 1714006144

View Profile Personal Message (Offline)

Ignore
1714006144
Reply with quote  #2

1714006144
Report to moderator
It is a common myth that Bitcoin is ruled by a majority of miners. This is not true. Bitcoin miners "vote" on the ordering of transactions, but that's all they do. They can't vote to change the network rules.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714006144
Hero Member
*
Offline Offline

Posts: 1714006144

View Profile Personal Message (Offline)

Ignore
1714006144
Reply with quote  #2

1714006144
Report to moderator
atchoum6760
Legendary
*
Offline Offline

Activity: 1904
Merit: 1063



View Profile
January 16, 2014, 10:06:42 PM
 #2

Rename bitcoin.dat in wallet.dat et put in  the dossier bitcoin de appdata normaly it's good.


scutzi128 (OP)
Sr. Member
****
Offline Offline

Activity: 476
Merit: 283


View Profile
January 16, 2014, 10:09:10 PM
Last edit: January 16, 2014, 10:21:51 PM by scutzi128
 #3

Thanks for the reply but I do not understand what you just said.
pedrog
Legendary
*
Offline Offline

Activity: 2786
Merit: 1031



View Profile
January 16, 2014, 10:09:38 PM
 #4

Try recovering the file with GetDataBack.

scutzi128 (OP)
Sr. Member
****
Offline Offline

Activity: 476
Merit: 283


View Profile
January 16, 2014, 10:22:09 PM
 #5

Tried it with no luck.
tomthgrk
Newbie
*
Offline Offline

Activity: 56
Merit: 0


View Profile
January 16, 2014, 10:33:02 PM
 #6

Install a new litecoin wallet
let it sync
close wallet
name your old data file wallet.dat
copy and past wallet.dat at appdata folder to replace the existing wallet.dat file
open run litecoin wallet
stefan80
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
January 16, 2014, 10:36:29 PM
 #7

Just paste the old wallet file in  the folder  %APPDATA%\Litecoin\    it should work.

This folder is usually located in C:\Users\..... (user name).... \AppData\Roaming\Litecoin

scutzi128 (OP)
Sr. Member
****
Offline Offline

Activity: 476
Merit: 283


View Profile
January 16, 2014, 10:45:44 PM
 #8

think the problem is not how to get old wallet to new client
problem is corrupted wallet file

you are correct...it says its corrupted and the wallet just closes
tomthgrk
Newbie
*
Offline Offline

Activity: 56
Merit: 0


View Profile
January 16, 2014, 10:54:32 PM
 #9

think the problem is not how to get old wallet to new client
problem is corrupted wallet file

you are correct...it says its corrupted and the wallet just closes

ok...then, follow this directions.


Corrupt wallets used to cause a DB_RUNRECOVERY uncaught exception and a
crash. This commit does three things:

1) Runs a BDB verify early in the startup process, and if there is a
low-level problem with the database:

*Moves the bad wallet.dat to wallet.timestamp.bak
*Runs a 'salvage' operation to get key/value pairs, and writes them to a new wallet.dat
*Continues with startup.

2) Much more tolerant of serialization errors. All errors in deserialization
are tolerated EXCEPT for errors related to reading keypairs
or master key records-- those are reported and then shut down, so the user
can get help (or recover from a backup).

3) Adds a new -salvagewallet option, which:

*Moves the wallet.dat to wallet.timestamp.bak
*extracts ONLY keypairs and master keys into a new wallet.dat
*soft-sets -rescan, to recreate transaction history
scutzi128 (OP)
Sr. Member
****
Offline Offline

Activity: 476
Merit: 283


View Profile
January 16, 2014, 11:07:35 PM
 #10

I am getting this error in the debug log file:

Litecoin version v0.8.5.1-beta (2013-09-11 17:46:33 -1000)
Using OpenSSL version OpenSSL 1.0.1c 10 May 2012
Startup time: 2014-01-16 23:04:31
Default data directory C:\AppData\Roaming\Litecoin
Using data directory C:\AppData\Roaming\Litecoin
Using at most 125 connections (2048 file descriptors available)
Using 8 threads for script verification
init message: Verifying wallet...
dbenv.open LogDir=C:\AppData\Roaming\Litecoin\database ErrorFile=C:\AppData\Roaming\Litecoin\db.log
Failed to rename wallet.dat to wallet.1389913471.bak
Flush(false)
DBFlush(false) ended               1ms
StopNode()
Flushed 0 addresses to peers.dat  3ms
Flush(true)
DBFlush(true) ended               0ms




This is the db.log file:

Page 0: metadata page corrupted
Page 0: could not check metadata page
wallet.dat: DB_VERIFY_BAD: Database verification failed
__db_meta_setup: C:\AppData\Roaming\Litecoin\wallet.dat: unexpected file type or format
__db_meta_setup: C:\AppData\Roaming\Litecoin\wallet.dat: unexpected file type or format
__db_meta_setup: C:\AppData\Roaming\Litecoin\wallet.dat: unexpected file type or format
__db_meta_setup: C:\AppData\Roaming\Litecoin\wallet.dat: unexpected file type or format
iGotSpots
Legendary
*
Offline Offline

Activity: 2548
Merit: 1054


CPU Web Mining 🕸️ on webmining.io


View Profile WWW
January 16, 2014, 11:12:00 PM
 #11

Just use private keys

Code:
dumpprivkey <address here>

^ Copy that key

Open on new machine

Code:
importprivkey <priv key you copied> <label>

Remove all the < and > obviously

scutzi128 (OP)
Sr. Member
****
Offline Offline

Activity: 476
Merit: 283


View Profile
January 16, 2014, 11:20:56 PM
 #12

Just use private keys

Code:
dumpprivkey <address here>

^ Copy that key

Open on new machine

Code:
importprivkey <priv key you copied> <label>

Remove all the < and > obviously

I don't know what the private key is and I can't determine it from the wallet.dat because it is corrupted.


I found that topic earlier and I'm having him try it as we speak.
scutzi128 (OP)
Sr. Member
****
Offline Offline

Activity: 476
Merit: 283


View Profile
January 17, 2014, 03:54:40 PM
 #13




I found that topic earlier and I'm having him try it as we speak.

He tried this and it failed looks like its lost forever. At least he learned to backup his wallet from now on.
samysamy1
Sr. Member
****
Offline Offline

Activity: 490
Merit: 252



View Profile
January 17, 2014, 04:31:59 PM
 #14




I found that topic earlier and I'm having him try it as we speak.

He tried this and it failed looks like its lost forever. At least he learned to backup his wallet from now on.


Try to run Windows system restore and restore to a previous point OR you might want to restore to the previous Windows version. That wallet might not be corrupted.
cryptomining
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250



View Profile
January 17, 2014, 04:42:22 PM
 #15

litecoin-qt -reindex

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!