Bitcoin Forum
January 10, 2026, 06:45:39 AM *
News: Due to a wallet-migration bug, you should not upgrade Bitcoin Core. But if you already did, there's no need to downgrade.
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Fun & learning with Bitcoin Core QT in Win 11 mklink chainstate error  (Read 276 times)
arabspaceship123 (OP)
Sr. Member
****
Offline Offline

Activity: 1260
Merit: 472


codetheforum.com


View Profile WWW
October 15, 2024, 08:43:00 AM
 #1

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.

  A R A B S P A C E S H I P   1 2 3  سفينة الفضاء العربية ١٢٣  
|  | ||     |    AVATAR & SIGNTURE AVAILABLE TO RENT   |     || |  |
██████   Hire me for your websites. Send a Message or Privnote to discuss your requirements   ██████
BlackHatCoiner
Legendary
*
Offline Offline

Activity: 1904
Merit: 9249


Bitcoin is ontological repair


View Profile
October 15, 2024, 08:58:59 AM
 #2

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.

██████████████████████████████████████████████████████████████████████
████████▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄████████▄▄▄▄▄▄▄███▄▄▄▄▄▄▄▄▄████████████████████
███████▄██▀▀▀▀▀▀▀▀▀▀▀██▄▄▄▄▄▄▄▄███████▄▄▄██▀▀▀▀▀██▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄████
███████
█▄▄▄▄▄▄▄▄▄▄████▀▀▀▀██▀▀▄▄██▀██▀▀▀███████▀▀▀█▀▀▀▀▀▀▀▀▀▀████
███████
▀█
█████▀▀▀▀█████████████████▀█████████▀██▄██▄▄▄▄▄█████████
███████
▄█
███▄▄▄▄▄▄▄██████████████████████▀▀██▄███████▀████▀████
██████
▄█
██████████████████████████▄██████████████████▀████▀██████
█████
▄█
██████▀▀▀████████████████████████████████▀█████████████
████
▄█
██████▀█████████████████████████████████▀███▀▀▀▀▀█▄██████
████
▄████▀████▀███████████████████████████▀██████████████████████
████
▀█
███▀▀▀██████▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█████████████▀██████
█████
▀▀▀▀█████████████████████████████████████████▀▀▀▀▀▀▀▀▀▀▀▀▀
███████
██████████████████████████████████████████████████████████████████████
.
.. SPORTSBOOK..NEW..
.
..100% WELCOME BONUS │ NO KYC │ UP TO 15% CASHBACK....PLAY NOW...
ABCbits
Legendary
*
Offline Offline

Activity: 3486
Merit: 9558



View Profile
October 15, 2024, 10:39:46 AM
 #3

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.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
nc50lc
Legendary
*
Offline Offline

Activity: 3024
Merit: 8221


Self-proclaimed Genius


View Profile
October 16, 2024, 07:53:41 AM
 #4

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.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
arabspaceship123 (OP)
Sr. Member
****
Offline Offline

Activity: 1260
Merit: 472


codetheforum.com


View Profile WWW
October 16, 2024, 12:48:21 PM
Merited by nc50lc (1)
 #5

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"

  A R A B S P A C E S H I P   1 2 3  سفينة الفضاء العربية ١٢٣  
|  | ||     |    AVATAR & SIGNTURE AVAILABLE TO RENT   |     || |  |
██████   Hire me for your websites. Send a Message or Privnote to discuss your requirements   ██████
nc50lc
Legendary
*
Offline Offline

Activity: 3024
Merit: 8221


Self-proclaimed Genius


View Profile
October 17, 2024, 03:33:15 AM
 #6

-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.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
arabspaceship123 (OP)
Sr. Member
****
Offline Offline

Activity: 1260
Merit: 472


codetheforum.com


View Profile WWW
October 18, 2024, 07:54:28 AM
 #7

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.



  A R A B S P A C E S H I P   1 2 3  سفينة الفضاء العربية ١٢٣  
|  | ||     |    AVATAR & SIGNTURE AVAILABLE TO RENT   |     || |  |
██████   Hire me for your websites. Send a Message or Privnote to discuss your requirements   ██████
arabspaceship123 (OP)
Sr. Member
****
Offline Offline

Activity: 1260
Merit: 472


codetheforum.com


View Profile WWW
April 03, 2025, 09:24:48 AM
Merited by nc50lc (1)
 #8

I'm updating because after I moved the chainstate folder back & removed the mklink symbolic link I didn't face problems. I'm using my bitcoin wallet with blockchain & chainstate in the same SSD. If you're getting slow blockchain download I'll recommend using symbolic links because you'll save time.

  A R A B S P A C E S H I P   1 2 3  سفينة الفضاء العربية ١٢٣  
|  | ||     |    AVATAR & SIGNTURE AVAILABLE TO RENT   |     || |  |
██████   Hire me for your websites. Send a Message or Privnote to discuss your requirements   ██████
nc50lc
Legendary
*
Offline Offline

Activity: 3024
Merit: 8221


Self-proclaimed Genius


View Profile
April 03, 2025, 11:13:13 AM
 #9

-snip-
If you're getting slow blockchain download I'll recommend using symbolic links because you'll save time.
That's actually good alternative to "blocksdir" if the user preferred to store the datadir on a slow HDD and store the chainstate on a fast SSD instead.

Just take note that if you used your previous setup above, you had actually used "directory junction" and not "symbolic link".
The difference between the two is subtle (thousands of docs about it online) but both should work in your suggestion nonetheless.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
arabspaceship123 (OP)
Sr. Member
****
Offline Offline

Activity: 1260
Merit: 472


codetheforum.com


View Profile WWW
April 05, 2025, 01:37:17 PM
 #10

The difference is subtle but you're right it's different. When I'd tried making a mklink symbolic link it failed. The junction link worked with out any problem. I couldn't understand why /j function worked but separating chainstate from blocks did help.

-snip-
If you're getting slow blockchain download I'll recommend using symbolic links because you'll save time.
That's actually good alternative to "blocksdir" if the user preferred to store the datadir on a slow HDD and store the chainstate on a fast SSD instead.

Just take note that if you used your previous setup above, you had actually used "directory junction" and not "symbolic link".
The difference between the two is subtle (thousands of docs about it online) but both should work in your suggestion nonetheless.

  A R A B S P A C E S H I P   1 2 3  سفينة الفضاء العربية ١٢٣  
|  | ||     |    AVATAR & SIGNTURE AVAILABLE TO RENT   |     || |  |
██████   Hire me for your websites. Send a Message or Privnote to discuss your requirements   ██████
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!