Bitcoin Forum
November 17, 2024, 01:21:09 AM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Corrupt wallet.dat, salvage not working, using pywallet.py - Please help :)  (Read 551 times)
sigtexx (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
December 01, 2017, 09:25:50 PM
 #1

Hi all,

Thanks in advance for any assistance. I'm relatively new to Bitcoin, fairly technically adept, however not very familiar with using things other than Windows.

As per subject, I've managed to corrupt my wallet.dat (idiot move, backed it up but never stored it off my PC). Bitcoin Core won't salvage it, so I've resorted to researching and using pywallet.py to try and recover it.

All has gone fairly swimmingly up until now. I have a small error which says decryption may be slow, however I never encrypted my wallet anyway, so I can't see that being an issue.

Here's the command I'm using in cmd, followed by the return I'm getting:

C:\Users\jackg>C:\Users\jackg\Downloads\pywallet-master\pywallet-master\pywallet.py --datadir=K:\Bitcoin --recover --recov_size=2000000 --recov_device=K:\Bitcoin --recov_outputdir=C:\Users\jackg\Desktop

Starting recovery.
Can't open K:\Bitcoin, check the path or try as root
   Error: (13, 'Permission denied')

Please help! It's annoying to be falling down at the last hurdle.

Really, really could do with recovering my private keys.
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3542
Merit: 6886


Just writing some code


View Profile WWW
December 01, 2017, 09:54:54 PM
 #2

Make sure that the path K:\Bitcoin exists and that your user is allowed to read and write to it. The error is very clear, you did not have the permission to access it.

sigtexx (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
December 01, 2017, 10:18:08 PM
 #3

Make sure that the path K:\Bitcoin exists and that your user is allowed to read and write to it. The error is very clear, you did not have the permission to access it.

Hiya, thanks for your help. I've checked this, my user most certainly does have full control rights to K:\Bitcoin, which definitely exists.
elbandi
Hero Member
*****
Offline Offline

Activity: 525
Merit: 531


View Profile
December 01, 2017, 10:43:07 PM
 #4

recov_device paramter sould be a device. in linux /dev/sda or something, in windows maybe "K:"
morbius55
Full Member
***
Offline Offline

Activity: 217
Merit: 109


View Profile
December 01, 2017, 11:07:37 PM
 #5

Check out my recent thread in technical support.
kahc
Member
**
Offline Offline

Activity: 350
Merit: 13


View Profile
December 01, 2017, 11:58:16 PM
 #6

Hi all,

Thanks in advance for any assistance. I'm relatively new to Bitcoin, fairly technically adept, however not very familiar with using things other than Windows.

As per subject, I've managed to corrupt my wallet.dat (idiot move, backed it up but never stored it off my PC). Bitcoin Core won't salvage it, so I've resorted to researching and using pywallet.py to try and recover it.

All has gone fairly swimmingly up until now. I have a small error which says decryption may be slow, however I never encrypted my wallet anyway, so I can't see that being an issue.

Here's the command I'm using in cmd, followed by the return I'm getting:

C:\Users\jackg>C:\Users\jackg\Downloads\pywallet-master\pywallet-master\pywallet.py --datadir=K:\Bitcoin --recover --recov_size=2000000 --recov_device=K:\Bitcoin --recov_outputdir=C:\Users\jackg\Desktop

Starting recovery.
Can't open K:\Bitcoin, check the path or try as root
   Error: (13, 'Permission denied')

Please help! It's annoying to be falling down at the last hurdle.

Really, really could do with recovering my private keys.

Have you tried to run cmd as "Run as administrator"?
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4361

<insert witty quote here>


View Profile
December 02, 2017, 06:23:16 AM
 #7

Here's the command I'm using in cmd, followed by the return I'm getting:

C:\Users\jackg>C:\Users\jackg\Downloads\pywallet-master\pywallet-master\pywallet.py --datadir=K:\Bitcoin --recover --recov_size=2000000 --recov_device=K:\Bitcoin --recov_outputdir=C:\Users\jackg\Desktop

Starting recovery.
Can't open K:\Bitcoin, check the path or try as root
   Error: (13, 'Permission denied')
recov_device paramter sould be a device. in linux /dev/sda or something, in windows maybe "K:"
It is most likely this... pywallet doesn't let you scan a directory or file... you need to give it a device identifier and it scan the device... my suggestion is to get a smallish usb stick (prefer 1 GB or less), to minimise the "scanning time".... wipe/format it and then put ONLY your wallet.dat on the usb stick.

Let's pretend that Windows has mounted your 1GB usb stick as the drive letter "X"... (replace "X" with whatever drive letter your system uses for the usb stick)... your command should be:
Code:
C:\Users\jackg\Downloads\pywallet-master\pywallet-master\pywallet.py --recover --recov_size=1Gio --recov_device=X: --recov_outputdir=C:\Users\jackg\Desktop

NOTE: --recov_size should equal the size of the usb stick... 8GB stick = 8Gio, 4GB stick = 4Gio... I have no idea why the pywallet author choose this format?!?? Huh Roll Eyes

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
sigtexx (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
December 02, 2017, 10:38:47 AM
 #8

Here's the command I'm using in cmd, followed by the return I'm getting:

C:\Users\jackg>C:\Users\jackg\Downloads\pywallet-master\pywallet-master\pywallet.py --datadir=K:\Bitcoin --recover --recov_size=2000000 --recov_device=K:\Bitcoin --recov_outputdir=C:\Users\jackg\Desktop

Starting recovery.
Can't open K:\Bitcoin, check the path or try as root
   Error: (13, 'Permission denied')
recov_device paramter sould be a device. in linux /dev/sda or something, in windows maybe "K:"
It is most likely this... pywallet doesn't let you scan a directory or file... you need to give it a device identifier and it scan the device... my suggestion is to get a smallish usb stick (prefer 1 GB or less), to minimise the "scanning time".... wipe/format it and then put ONLY your wallet.dat on the usb stick.

Let's pretend that Windows has mounted your 1GB usb stick as the drive letter "X"... (replace "X" with whatever drive letter your system uses for the usb stick)... your command should be:
Code:
C:\Users\jackg\Downloads\pywallet-master\pywallet-master\pywallet.py --recover --recov_size=1Gio --recov_device=X: --recov_outputdir=C:\Users\jackg\Desktop

NOTE: --recov_size should equal the size of the usb stick... 8GB stick = 8Gio, 4GB stick = 4Gio... I have no idea why the pywallet author choose this format?!?? Huh Roll Eyes

Hi HCP,

I figured this out with the help of the thread morbius55 pointed me towards - I didn't use the 'cd' command in cmd to set the directory I was running pywallet from.

I've managed to get pywallet to scan, however it finds 0 recoverable keys. Sigh.

I'm happy to share my wallet with anyone if they want to try and extract something from it? I've given up now, so as far as I'm concerned it's a last ditch effort. If anyone does find something, I'll be more than willing to send them some coin.
sigtexx (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
December 02, 2017, 11:33:57 AM
 #9

Bad news. I've just spoken to some experts in data recovery and I've royally fucked it. Please close this thread Sad
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4361

<insert witty quote here>


View Profile
December 02, 2017, 12:38:28 PM
 #10

Sorry to hear that... to "close the thread", you'll need to click the "lock topic" option at the bottom of the page, just above the "quick reply" box... or you can edit the first post, click "additional options", select "lock this topic" and then "save".

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
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!