Show Posts
|
Pages: « 1 [2] 3 4 »
|
Hi, i got the PC back late tonight, my son was using it... Ok, I got to the point of the list below & clicked on the path to my wallet folder highlight and copy it (Ctrl+C) I then pasted the command in command prompt: salvage --wallet="<CTRL+V>\wallet.dat" salvage <Enter> 'salvage' is not a recognised as an internal or external command, operable program or batch file. Everything was fine up to this point & I did not close the command prompt or any of the folder windows during this process, I guess this is very likely my error. The instructions & images are really helpful but I'm sorry I must be doing something wrong again & misunderstanding the method, does the Bitcoin Core program need to be running? Cheers. [/li] [li]Use salvage: go back to command prompt and type: salvage --wallet="<CTRL+V>\wallet.dat" salvage <Enter>[/li] [li]If it finished without any error, the command is successful, like this: [/li] [li]Then, the folder where your wallet.dat should have these file, the original corrupted wallet.dat is the backup " .bak" file: [/li] [/list] [/quote] I retried the method & can 'cd' to the daemon directory, I placed my wallet folder into the wallets folder in C:users\username\appdate\roaming\bitcoin\wallets\my wallet folder with wallet.dat inside. Highlight the address to the wallet.dat & CTRL+C to the wallet location. I then use the salvage command in command prompt & it says: salvage --wallet="<CTRL+V>\wallet.dat" 'salvage' is not a recognised as an internal or external command, operable program or batch file.
|
|
|
Wow I'm just away to bed & came to see you have replied. I'll take a good look at these later tonight, it is the early hours of the morning here.
I promise to make this worth your while when I get the wallet back & thank you for doing this for me. It's nice to be able to go to sleep with the hope of your kind assistance being the solution to getting the wallet back, thank you for that.
Bless you sir.
|
|
|
Hi, this is where I am lost, I cannot seem to locate the 'bin' file in the install directory in Program Files on C: Is the 'bin' file created after making a new wallet?, currently I have no wallets loaded.
In C:Program Files/Bitcoin I have: deamon folder share folder bitcoin.conf bitcoin.qt COPYING readme uninstall
In the daemon folder I have: bitcoin-cli bitcoind bitcoin-tx bitcoin-wallet test_bitcoin
Thanks.
As I've mentioned twice already, there's no " bin file". It's the folder where bitcoin-wallet is located and the directory where you should use " cd" ( change directory) in command prompt. Please check my previous replies in this thread since I've already addressed most of these concerns and separate whanau's replies with mine. To answer this shortly: it's your old installation since there's a " daemon" folder, which is equivalent to the " bin" folder of the new version. And in your reply, there's a " bitcoin-wallet" file inside it; which is what you need to perform salvage. ( if the version is too old, it may not contain the salvage command) The workflow is this simple ( without repeating the already given instructions): - Find Bitcoin Core's installation directory (where you installed Bitcoin Core), not the 'bitcoin' data directory in your 'appdata/roaming' folder.
- Open cmd and cd to the directory above. The trailing "C:\Users\YOUR_USERNAME>" in command prompt will change into that directory after entering the cd command.
- Use the provided salvage command.
- Load the salvaged wallet to Bitcoin Core.
Take note that salvage's success still depends if the keys/master key in your wallet.dat are still intact. Thanks once again & I am sorry for you to have to repeat these instructtions. I chose to do this in order doing what I thought was the easiest route & this option was left until last because I am so unsure of what I'm doing. I am not good with command prompt & I will try again later tonight because I am just too tired atm. If I get similar errors from my next attempt, I will then know it is my complete misunderstanding of this & I'll keep trying to understand. This is a brand new installation of Windows 10 on a completely different hard drive, this is not the old installation of Bitcoin Core. I thought I had installed the latest version of Bitcoin Core. 24.0.1. Is this version correct? I cannot explain the daemon folder being there.
|
|
|
You are running the command prompt/ powershell as an administrator??
I have used all of the versions of commands as administrator & then normally without admin rights. I notice you mention Powershell, I am using command prompt in Windows 10 Pro.
|
|
|
I think I am out of ideas.
try just running bitcoin-wallet.exe see what it says then bitcoin-wallet --wallet see what it says should be no wallet file or similar
Damn it, I just don't understand why the command prompts are not functioning. I have opened the Bitcoin QT & there are no wallets available, I will leave it on overnight again. When I try to run the bitcoin-wallet exe in the daemon folder, it disappears before I can see anything. Almost forgot to say thank you for being here.
|
|
|
I tried this in command prompt with Bitcoin Core open & closed & got the same error.
"bitcoin-wallet --wallet=wallet.dat salvage" is not a recognised as an internal or external command, operable program or batch file.
"bitcoin-wallet.exe --wallet=wallet.dat salvage" is not a recognised as an internal or external command, operable program or batch file.
This is unreal, nothing seems to work the way it should.
|
|
|
OK I suspect the path to your wallet may be wrong try this
copy your wallet to
"C:\Program Files\Bitcoin\ and copy your wallet there. Then run
bitcoin-wallet --wallet=wallet.dat salvage
no "" around wallet.dat
I confirm bitcoin-wallet is a program for me, so I copied the wallet folder with all my recovered files to the main Bitcoin directory in Program Files, I used command prompt without admin rights, typed: bitcoin-wallet --wallet=wallet.dat salvage Received this error: 'bitcoin-wallet' is not a recognised as an internal or external command. If I try to run the bitcoin-wallet program, it just disappears in a flash.
|
|
|
Gotcha & it's amazing that I actually thought to try that & it came up with this error 'the system cannot find the file specified' I did retry the command again from your text cd "C:\Program Files\Bitcoin\bitcoin-wallet but the same error comes up & I also tried the command prompt in admin mode but the same error 'the system cannot find the file specified' At least I do know the password If I can get this wallet back online, I will treat both of you for taking the time out to help me like this.
|
|
|
Thanks for the quick reply & I have tried your idea to copy all the files into the wallet from my recovered files, unfortunately there are still no wallets to load.
I have tried the command prompt cd "C:\Program Files\Bitcoin\bin" & got this error 'the system cannot find the file specified'
|
|
|
Since it's quite buried in the first page, I'll quote my post here for reference: ( plus additional comments since it looks like you're new in using commands) If the recovered file is corrupted, try to use salvage command of Bitcoin Core's bitcoin-wallet tool: - Go to Bitcoin Core's install directory, open "bin" folder;
Since you're on Windows, it's in "C:\Program Files\Bitcoin\bin" folder by default. -> that is only the default, if you've installed Bitcoin Core in different directory, browse to that directory instead. And inside that folder, there should be a bitcoin-wallet file inside it which is the tool that you're going to use. - Open your command prompt and cd to that directory, enter: cd "C:\Program Files\Bitcoin\bin"
-> this is important since this will change command prompt's working directory where bitcoin-wallet.exe tool is located, in this case, inside "bin" folder. Of course, as stated above, if Bitcoin Core is installed to a different directory, cd to its 'bin' folder instead. - Then to use salvage command with bitcoin-wallet tool: bitcoin-wallet --wallet="full path to your wallet.dat" salvage
For example: if your corrupted wallet.dat is saved in "D:\testdir\wallet.dat", it should be --wallet="D:\testdir\wallet.dat" -> To create the example, create a temporary folder in "D:", name it "testdir" and paste your corrupted wallet.dat in it. That's only for the example, you can use any folder that you want and make sure to enter its path in "--wallet=<path>" arg. - Command should finish without any response, otherwise, there's an error.
- If it finished without errors, load the wallet.dat to Bitcoin Core and see if it's now fixed.
-> If there's no error, go to your "testdir" where the corrupted wallet.dat is, if salvage command is successful, there should be a backup file there named "wallet.dat.nnnnnnn.bak" which is the original corrupted wallet.dat. In that case, open Bitcoin Core and use the menu: "File->Restore Wallet", browse to that "testdir" directory and open wallet.dat. Bitcoin Core will try to restore that salvaged wallet, and if there's no issue, it should load and rescan.
[/quote] Hi, this is where I am lost, I cannot seem to locate the 'bin' file in the install directory in Program Files on C: Is the 'bin' file created after making a new wallet?, currently I have no wallets loaded. In C:Program Files/Bitcoin I have: deamon folder share folder bitcoin.conf bitcoin.qt COPYING readme uninstall In the daemon folder I have: bitcoin-cli bitcoind bitcoin-tx bitcoin-wallet test_bitcoin Thanks.
|
|
|
I do have these from the original deleted but recovered wallet folder: database folder .walletlock db wallet.dat
I think I did encrypt the wallet but not entirely sure & is called wallet.dat, I didn't rename it.
I'll try the restore method soon.
Thanks again.
Just to see what happened I tried the 'restore' option from the wallet file I copied onto my D: drive & pointed Bitcoin Core to that file, typed in the wallet name & received a message saying Restore wallet failed. Wallet file verification failed to load database C:\Users\MyUserName\Appdata\Roaming\Bitcoin\wallets\My wallet Data is not in recognised format.
Next I will try the 'repair' option.
|
|
|
I am surprised that the wallet.dat file isn't seen
nc50lc has provided good advice .. A sole 'wallet.dat' file inside wallets folder should be automatically loaded as "default wallet" once Bitcoin Core is started.
i would just add to check that in C:\Users\MyUserName\Appdata\Roaming\Bitcoin there are the following files in the wallets folder
wallet.dat walletlock db.log and a folder called database
As you use windows walletlock may have an extension or be hidden.
In C:\Users\MyUserName\Appdata\Roaming\Bitcoin I have the following files. blocks chainstate wallet (with my wallet.dat inside) .lock anchors.dat banlist.json debug fee_estimates.dat mempool.dat peers.dat settings.json These files are not present in the wallet folder: walletlock db.log and a folder called database I really appreciate everything you have done to help thus far. Cheers.
|
|
|
Thanks, yes I restarted the Bitcoin Core program & it's the same. I'll try the 'restore' option later this evening, I will have to check back in the thread for the instructions to do this task.
|
|
|
I have just checked & Bitcoin Core is still the same, I have looked in open wallet & it's blank/greyed out, no wallets are available.
|
|
|
Copy that & thanks for the clear instructions. I confirm the Wallets Folder was empty in C:\Users\MyUserName\Appdata\Roaming\Bitcoin I copied my wallet.dat inside the empty wallet folder & restarted the Bitcoin Core Program, this was at 11:57pm & I am leaving the PC on for the next 18 hrs. There were no warnings or errors Fingers & toes are crossed. Cheers.
|
|
|
I have not transplanted the wallet .dat as yet & Bitcoin Core has fully downlaoded the blockchain.
I take it there is a wallet.dat automatically created by Bitcoin Core, not created by me deliberatley saving a wallet. Will do as you advise & overwrite that wallet with mine.
I'll update as to what errors I encounter.
|
|
|
This is where I get jittery once again thanks for the info & given there is more than one way to do this, I think I will try the 'recovery' option with the recovered wallet.dat that is likely not in the correct format. I'll have access to the newly installed PC later tonight.
|
|
|
Update: I have a fresh installation of Windows 10, laatest BIOS & drivers, all diagnostics check out fine & Bitcoin Core 24.0.1 is apporoximately 11 hours from completion on an unpruned blockchain on C:
|
|
|
Ok I understand, I will have to clone our 1 TB C: drive with Windows installation & swap it for a bigger capacity 2 TB drive. I'll do this tonight & start the Bitcoin installation on the 2 TB C: drive after I have cloned the drive.
|
|
|
Hello, we typed this into command prompt & we get this error. C:\Users\username>D:\Program Files\Bitcoin\daemon\bitcoind 'D:\Program' is not recognized as an internal or external command, operable program or batch file. In the command prompt in the Bitcoin Core QT (my cloned M.2 is 'F') we typed "F:\Users\USERNAME\AppData\Roaming\Bitcoin\wallets\wallet.dat Method not found (code -32601) I can clearly see this command is not going to find the deleted wallet on my cloned drive. Thank you for the link but I am totally lost as what to do with info like that, sorry but it's gobbledegook to me. https://bitcoin.org/en/full-node#windows-10I also copy/pasted the wallet.dat that I recovered into the wallet section in the bitcoin QT install & it messes up the bitcoin core & will not function until I delete that dat file. The Bitcoin program then loses its path & gives me a yellow warning, it still allows me to continue after the warning though. I would post screenshots but there's not much point if I am so far off track, nothing seems to work.
|
|
|
|