Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: thepriceinsats on February 09, 2024, 01:27:53 PM



Title: Using the data from my Windows node on Ubuntu
Post by: thepriceinsats on February 09, 2024, 01:27:53 PM
So I run a full bitcoin node on windows OS currently, and I want to set-up 3 more nodes (for different locations).

I plan to set these nodes up on an Ubuntu OS as its free, lighter and just a preference.

I wanted to know if I could copy the blockchain data from my windows machine and use it when i set-up the full nodes on ubuntu, or would the file types be different an therefore not compatible? Probably a stupid question as even I pointed out the file type issue, but I know many of you in the community have greater knowledge on nodes than me.

Help appreciated.


Title: Re: Using the data from my Windows node on Ubuntu
Post by: LoyceV on February 09, 2024, 03:36:07 PM
I wanted to know if I could copy the blockchain data from my windows machine and use it when i set-up the full nodes on ubuntu, or would the file types be different an therefore not compatible?
I think this should work, and it's definitely worth a try. If it doesn't work, nothing is lost and you'll start a fresh sync.


Title: Re: Using the data from my Windows node on Ubuntu
Post by: thepriceinsats on February 09, 2024, 05:03:21 PM
I wanted to know if I could copy the blockchain data from my windows machine and use it when i set-up the full nodes on ubuntu, or would the file types be different an therefore not compatible?
I think this should work, and it's definitely worth a try. If it doesn't work, nothing is lost and you'll start a fresh sync.

Well I'll be trying tonight, so I'll keep you updated on how I progress 👍


Title: Re: Using the data from my Windows node on Ubuntu
Post by: BitMaxz on February 09, 2024, 05:44:38 PM

Well I'll be trying tonight, so I'll keep you updated on how I progress 👍

It should work just fine but don't forget to copy the chainstate folder if you don't want to be stuck in the loading process or else you might end up needing to run Bitcoin Core with -reindex or -reindex-chainstate.


Title: Re: Using the data from my Windows node on Ubuntu
Post by: Cricktor on February 09, 2024, 06:53:47 PM
Make sure to properly shutdown your Bitcoin Core on your source computer before you start to copy the blockchain data. I would copy all content of folders blocks, chainstate and indexes if you have left the configuration of Bitcoin Core mostly at its default settings (what I mean: didn't change the location of any data folder). Those three folders should be in the base data directory of Bitcoin Core.


Title: Re: Using the data from my Windows node on Ubuntu
Post by: BlackHatCoiner on February 10, 2024, 09:40:40 PM
Don't try to copy blocks, chainstate and indexes without making sure your external disk is error-free. Check its condition. There's a small chance it has bad sectors, which can lead to incomplete transfers (AKA, corrupted files). During transfer close any unnecessary programs. I'd use a freshly formatted disk for this purpose, if I were you.

Speaking out of experience (https://bitcointalk.org/index.php?topic=5484601.msg63637572#msg63637572)...  :D