<h1>Recover corrupted wallet</h1>

<blockquote>
  <p>Possible to get back my private-key from [corrupted] wallet.dat</p>
</blockquote>

<p>I doubt it.</p>

<p>You could put in weeks of effort and not recover anything. By effort I mean learning what tools are available, how to configure and use them and how to evaluate the results. Learning more about the internal structure of wallets etc. Learning about general tools that can recover deleted older versions of files (if you immediately stop using the computer and maybe extract and duplicate the disk) etc.</p>

<p>Most likely you will  be contacted by many scammers offering to recover your wallet or telling you about marvelous people who can recover wallets. It is almost certain that all of them will be trying to trick you out of more money by inventing plausible seeming fees. In this website we see a lot of pleas for help from the victims of recovery scams. </p>

<hr>

<h1>Backups</h1>

<p>Most computer users learn early on the importance of backups. Some by seeing other people's good habits, some by seeing other people's disasters and some by making our own disasters.</p>

<p>See Tom Scott - <a href="https://www.youtube.com/watch?v=X6NJkWbM1xk" rel="nofollow noreferrer">The Worst Typo I Ever Made</a></p>

<p>In the case of Bitcoin, it is essential to make a backup as soon as you create your wallet and again after making any significant changes such as importing a key. This sort of backup needs to be kept somewhere safe from fire, theft or accidental loss.</p>

CC BY-SA 4.0
2020-06-02T09:56:04.450Z
Backup is another topic, since that is my testing server so i didn't do any backup for it. Anyway, thanks and appreciate for your answer.
superrman777
CC BY-SA 4.0
2020-06-02T09:25:49.670Z
2020-06-02T09:25:49.670Z
RedGrittyBrick
<p>My server was crashed suddenly and didn't shut down bitcoin core probably, so now my wallet was corrupted due to it didn't be released. I try to moved the corrupted wallet to a new server but it can't be load:</p>

<pre><code>Wallet file verification failed: wallet.dat corrupt, salvage failed
</code></pre>

<p>I have also tried to use <strong>pywallet</strong> to rescue, but getting this error:</p>

<pre><code>ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this again.
</code></pre>

<p>I suspect that my wallet.dat was totally corrupt so <strong>pywallet</strong> couldn't found <em>main</em> . Any help on this please ? Possible to get back my privatekey from wallet.dat please ? Thanks alot.</p>

<pre><code>Information:

bitcoin version: v0.18
os: centos7
</code></pre>

CC BY-SA 4.0
2020-06-02T08:47:33.427Z
Is it true you didn't write your private-key down and put that somewhere safe  and you didn't make any backups of your wallet in particular and you also don't have the usual daily backups of all data on your server?
RedGrittyBrick
CC BY-SA 4.0
2020-06-02T09:20:31.280Z
Ya, didn't do any backup at all. Any ways to recover ?
superrman777
<bitcoind><wallet>
Recover corrupted wallet due to system crashed
superrman777
# Recover corrupted wallet due to system crashed

(Asked by: username_0 on 2020-06-02)

My server was crashed suddenly and didn't shut down bitcoin core probably, so now my wallet was corrupted due to it didn't be released. I try to moved the corrupted wallet to a new server but it can't be load:

```
Wallet file verification failed: wallet.dat corrupt, salvage failed

```

I have also tried to use **pywallet** to rescue, but getting this error:

```
ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this again.

```

I suspect that my wallet.dat was totally corrupt so **pywallet** couldn't found *main* . Any help on this please ? Possible to get back my privatekey from wallet.dat please ? Thanks alot.

```
Information:

bitcoin version: v0.18
os: centos7

```

**Tags:** bitcoind, wallet

> **Comments:**
> **username_1**: Is it true you didn't write your private-key down and put that somewhere safe  and you didn't make any backups of your wallet in particular and you also don't have the usual daily backups of all data on your server?  
> **username_0**: Ya, didn't do any backup at all. Any ways to recover ?  

---

## 1 answers

### Answer by username_1 on 2020-06-02. Score: 2

# Recover corrupted wallet

> Possible to get back my private-key from [corrupted] wallet.dat

I doubt it.

You could put in weeks of effort and not recover anything. By effort I mean learning what tools are available, how to configure and use them and how to evaluate the results. Learning more about the internal structure of wallets etc. Learning about general tools that can recover deleted older versions of files (if you immediately stop using the computer and maybe extract and duplicate the disk) etc.

Most likely you will be contacted by many scammers offering to recover your wallet or telling you about marvelous people who can recover wallets. It is almost certain that all of them will be trying to trick you out of more money by inventing plausible seeming fees. In this website we see a lot of pleas for help from the victims of recovery scams.

---

# Backups

Most computer users learn early on the importance of backups. Some by seeing other people's good habits, some by seeing other people's disasters and some by making our own disasters.

See Tom Scott - [The Worst Typo I Ever Made](https://www.youtube.com/watch?v=X6NJkWbM1xk)

In the case of Bitcoin, it is essential to make a backup as soon as you create your wallet and again after making any significant changes such as importing a key. This sort of backup needs to be kept somewhere safe from fire, theft or accidental loss.

> **Comments:**
> **username_0**: Backup is another topic, since that is my testing server so i didn't do any backup for it. Anyway, thanks and appreciate for your answer.  

---

