Author

Topic: Fun & learning with Bitcoin Core QT in Win 11 mklink chainstate error (Read 106 times)

full member
Activity: 896
Merit: 193
web developer for hire
Symbolic link with mklink I've seen 6% progress. It's usually in 0.4% & 1.3% so it's helped. After it's 100% download progress complete I've moved chainstate back to bitcoin in D drive & deleted the chainstate.backup. I've deleted the symbolic link & chainstate in C drive. My chainstate's 11.7gb. I don't know if it's connected so if ppl want to try use junction mklink /j if mklink /D didn't work.

I used "mklink /d ...." (symbolic link) on my successful test in Regtest.
But it's great that "/j" (directory junction) works on your case while '/d' didn't, perhaps it has something to do with the size of the chainstate folder.


legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
-snip-
It's working I'd missed : in mklink after C & used /j for mklink

mklink /j "D:\Bitcoin\chainstate" "C:\Bitcoin\chainstate"
I used "mklink /d ...." (symbolic link) on my successful test in Regtest.
But it's great that "/j" (directory junction) works on your case while '/d' didn't, perhaps it has something to do with the size of the chainstate folder.
full member
Activity: 896
Merit: 193
web developer for hire
I don't use Windows much these days, but you could use workaround where you set datadir on C: (the fast drive) and set blocksdir on D: (the slow drive). You can add those either on bitcoin.conf file or bitcoin-qt.exe parameter.
I'll test bitcoin.conf datadir later. I'll try for mklink first it's the good way for learning.

Try opening cmd as admin and entering mklink again.

mklink /D "D:\Bitcoin\chainstate" "C\Bitcoin\chainstate"
I tested this in Windows11 Bitcoin Core version 28.0, Regtest and it works without that error.
That setup works even if the directories are reversed.
[error] Fatal LevelDB error: NotFound: D:\Bitcoin\chainstate/LOCK: The system cannot find the path specified.\x0d

It's working I'd missed : in mklink after C & used /j for mklink

mklink /j "D:\Bitcoin\chainstate" "C:\Bitcoin\chainstate"
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
mklink /D "D:\Bitcoin\chainstate" "C\Bitcoin\chainstate"
I tested this in Windows11 Bitcoin Core version 28.0, Regtest and it works without that error.
That setup works even if the directories are reversed.

Bitcoin 28.0 doesn't make errors after I've removed mklink shortcuts & put chainstate back so without mklink it'll continue downloading. If you've used mklink to move chainstate how did you make it download I don't know why it doesn't work.
Please tell if the symlink chainstate directory's contents are exactly the same as the original contents. (copied from the original chainstate)
Because otherwise, Bitcoin Core will surely show that message for having an empty/different chainstate.
If unsure, check your debug.log file for "[error] Fatal LevelDB error" lines.
legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
I don't use Windows much these days, but you could use workaround where you set datadir on C: (the fast drive) and set blocksdir on D: (the slow drive). You can add those either on bitcoin.conf file or bitcoin-qt.exe parameter.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
mklink creates a symbolic link. Have you confirmed that it configured to point to the correct target?

Also:
  • Check your debug.log in D:\Bitcoin. It will probably describe the problem in more details.
  • Try opening cmd as admin and entering mklink again.
full member
Activity: 896
Merit: 193
web developer for hire
mklink /D "D:\Bitcoin\chainstate" "C\Bitcoin\chainstate"



Bitcoin 28.0 doesn't make errors after I've removed mklink shortcuts & put chainstate back so without mklink it'll continue downloading. If you've used mklink to move chainstate how did you make it download I don't know why it doesn't work.
Jump to: