Bitcoin Forum
April 16, 2024, 01:21:31 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Moving Bitcoin database to new harddrive without having to resync  (Read 162 times)
TropicalHenry (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 6


View Profile
March 08, 2020, 06:02:58 AM
Merited by OmegaStarScream (2), hugeblack (2), LoyceV (1), o_e_l_e_o (1)
 #1

Hello,

I have a fully synced and working download of the blockchain on an external hard drive and just want to move it all to a brand new external hard drive (as the old one has started making a click click death is imminent noise!). I thought it would be super simple bit am having problems.

I copied the whole bitcoin folder (containing blocks, chainstate etc) to the new external hard drive, started up BitcoinCore and pointed it at the new directory. I expected it to carry on as normal but it is trying to sync the whole blockchain again.

Why is it trying to sync all over again. Have i done something wrong. Am i bad person.

I have a garbage laptop and it took about 2 weeks of it being on 24 hours a day to sync last time, please dont make me do that again...

1713273691
Hero Member
*
Offline Offline

Posts: 1713273691

View Profile Personal Message (Offline)

Ignore
1713273691
Reply with quote  #2

1713273691
Report to moderator
1713273691
Hero Member
*
Offline Offline

Posts: 1713273691

View Profile Personal Message (Offline)

Ignore
1713273691
Reply with quote  #2

1713273691
Report to moderator
1713273691
Hero Member
*
Offline Offline

Posts: 1713273691

View Profile Personal Message (Offline)

Ignore
1713273691
Reply with quote  #2

1713273691
Report to moderator
According to NIST and ECRYPT II, the cryptographic algorithms used in Bitcoin are expected to be strong until at least 2030. (After that, it will not be too difficult to transition to different algorithms.)
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
ABCbits
Legendary
*
Offline Offline

Activity: 2842
Merit: 7380


Crypto Swap Exchange


View Profile
March 08, 2020, 06:42:53 AM
Merited by Jet Cash (2)
 #2

Weird, usually it would detect the database and carry out normally (or verify whole blockchain again in very few cases).

Can you share your debug.log file? It's possible the database (blockchain files) got corrupted and Bitcoin Core decided to resync from scratch.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
TropicalHenry (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 6


View Profile
March 08, 2020, 09:07:38 AM
 #3

Corrupt data for the win!

I deleted and re-copied everything and it worked this time.

Thankyou for the help  Smiley
xyzzy099
Legendary
*
Online Online

Activity: 1062
Merit: 1041



View Profile
March 10, 2020, 01:38:16 AM
Merited by suchmoon (4), Jet Cash (2), nc50lc (1)
 #4

Is it possible that you made  the copy while the clent was running?  I would imagine that if that is the case, the database would be being changed as your copy was taking place, possibly resulting in an inconsistency which would require a resync.

If you are going to make a copy of the blockchain, I think you would need to shut down, then copy.

Just guessing here :-)

Libertarians:  Diligently plotting to take over the world and leave you alone.
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!