Bitcoin Forum
November 24, 2026, 02:09:06 PM *
News: Latest Bitcoin Core release: 32.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Migrating OS; Bitcoin Core from Win to Linux  (Read 345 times)
Libyanrav9 (OP)
Newbie
*
Offline

Activity: 8
Merit: 21


View Profile
March 28, 2022, 06:47:36 PM
Merited by LoyceV (4), Welsh (4), o_e_l_e_o (4), Slow death (3), BlackHatCoiner (3), ABCbits (2), mocacinno (1)
 #1

Hi Bitcoiners:)

I am trying to get my full node optimized for inbound connections by using Tor but also switching to Linux as recommended by many people for security and technical support.
Any information regarding the following will be very appreciated!

  • Can I use the Windows version of blockchain data in Linux? Or do I have to download it all over after switching OS?
  • Could you share your personal take on running Bitcoin node on Linux?
  • Also is it possible to copy the blockchain data multiple times to different HDDs and send them to another country where the internet is too inconvenient for the IBD, to run a full node there easier and faster?
  • Is Bitnodes.io 100% accurate about quantitative and geographical data of nodes? For ex. it shows zero nodes in Turkey and Libya. Is this actually true or not necessarily so in case like the use of Tor / VPN hides or manipulates such location data?

Please pardon me for any brain pain, as I am a non technical person:)

BTC
jackg
Copper Member
Legendary
*
Offline

Activity: 2856
Merit: 3076


https://bit.ly/387FXHi lightning theory


View Profile
March 28, 2022, 06:58:07 PM
Merited by LoyceV (4), mocacinno (1), ABCbits (1), Libyanrav9 (1)
 #2

  • Can I use the Windows version of blockchain data in Linux? Or do I have to download it all over after switching OS?


You can use the same blocks data as the data should be the same. I'm not sure if it still needs to reindex though wehn you move the data directory (some files might be incompatible - particularly since Linux relies heavily on assigning files permissions and windows relies on assigning them to the user).

  • Could you share your personal take on running Bitcoin node on Linux?


    If you've not used Linux much, you might find it difficult to use. I think a lot of people struggle with the initial dependencies and some parts of the install (like database versions) can be confusing to understand for some distros (which one did you plan to use)?

    • Also is it possible to copy the blockchain data multiple times to different HDDs and send them to another country where the internet is too inconvenient for the IBD, to run a full node there easier and faster?


    Yes it's possible to distribute the blockchain this way. It's also possible to download the blockchain from satellites afaik (ref: https://blockstream.com/satellite/).


    • Is Bitnodes.io 100% accurate about quantitative and geographical data of nodes? For ex. it shows zero nodes in Turkey and Libya. Is this actually true or not necessarily so in case like the use of Tor / VPN hides or manipulates such location data?

    Afaik tor nodes will probably fall under another category of their own. There's probably a good chance a lot of aws services are just listed as being from the US too as well as many European IPs from major cities (some share the same group of IP addresses and are harder to determine the location of). [/list]
    BitMaxz
    Legendary
    *
    Offline

    Activity: 4172
    Merit: 3710


    #kycfree ❎


    View Profile WWW
    March 28, 2022, 11:50:25 PM
    Merited by ABCbits (1), Libyanrav9 (1)
     #3

    Adding this from the post above on the first question yes the block data from Linux should be compatible with Windows just make sure to copy both chainstate folder and block folder and transfer it to your Windows OS.

    And according to Achow101 from this post, it's advisable to install the same version of Bitcoin core due to the different database versions.

    You can read this thread below it might answer some of your doubts.

    - https://bitcointalk.org/index.php?topic=2321137.0

    HCP
    Legendary
    *
    Offline

    Activity: 2086
    Merit: 4382

    <insert witty quote here>


    View Profile
    March 29, 2022, 06:09:56 AM
     #4

    Yes, it is entirely possible to copy all the blockchain data from one node to another... I did exactly this when setting up an umbrel node on a Raspberry Pi. I copied all the blocks from a Windows box, onto the harddrive being used by the Raspberry Pi/Umbrel.

    As noted, make sure you also copy the chainstate, or you'll have to wait for you new node to reindex the entire blockchain (can take some hours depending on your hardware).

    I second the recommendation to ensure that you initially use the same version of Bitcoin Core to avoid any database version issues, but by all means update afterwards once you've confirmed that everything has transferred OK and is working correctly.

    █████████████████████████
    ████▐██▄█████████████████
    ████▐██████▄▄▄███████████
    ████▐████▄█████▄▄████████
    ████▐█████▀▀▀▀▀███▄██████
    ████▐███▀████████████████
    ████▐█████████▄█████▌████
    ████▐██▌█████▀██████▌████
    ████▐██████████▀████▌████
    █████▀███▄█████▄███▀█████
    ███████▀█████████▀███████
    ██████████▀███▀██████████
    █████████████████████████
    .
    BC.GAME
    ▄▄░░░▄▀▀▄████████
    ▄▄▄▀
    ██████████████
    █████░░▄▄▄▄████████
    ▄▄▄▄▄▄▄▄▄██▄████████▄▄▄▄████
    ▄█████▄█▄▄██████████▄█████▄████
    ███████████████████████████▀███
    ▀████▄██▄██▄░░░░▄████████████
    ▀▀▀█████▄▄▄███████████▀██
    ███████████████████▀██
    ███████████████████▄██
    ▄████████████████████▄██
    ██████████████████████▀██
    ██████████████████████▄
    .
    ..CASINO....SPORTS....RACING..
    █░░░░░░█░░░░░░█
    ▀███▀░░▀███▀░░▀███▀
    ▀░▀░░░░▀░▀░░░░▀░▀
    ▄░░░░░░░░░░░░
    ▀██████████
    ░░░░░███░░░░▀
    ░░█░░░███▄█░░░█
    ░░██▌░░███░▀░░██▌
    ░█░██░░███░░░█░██
    ░█▀▀▀█▌░███░░█▀▀▀█▌
    ▄█▄░░░██▄███▄█▄░░▄██▄
    ▄███▄
    ░░░░▀██▄▀


    ▄▄████▄▄
    ▄███▀▀███▄
    ██████████
    ▀███▄░▄██▀
    ▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
    ▄███▀▀▀████▄▄██▀▄███▀▀███▄
    ███████▄▄▀▀████▄▄▀▀███████
    ▀███▄▄███▀░░░▀▀████▄▄▄███▀
    ▀▀████▀▀████████▀▀████▀▀
    LoyceV
    Legendary
    *
    Offline

    Activity: 4228
    Merit: 23228


    Thick-Skinned Gang Leader and Golden Feather 2021


    View Profile WWW
    March 29, 2022, 08:04:26 AM
    Merited by ABCbits (1), BlackHatCoiner (1)
     #5

    Could you share your personal take on running Bitcoin node on Linux?
    I've been doing it for years, and it works fine. But if you're new to Linux, it might be a steep learning curve. For security, in general Linux is considered better than Windows, but it doesn't do miracles: you can still mess up and lose your coins or data. Linux isn't as forgiving as Windows. Or better: Linux does what you tell it to do, without asking if you're sure about it. The wrong command can destroy your data, so make sure you know what you're doing before doing it.

    ¡uʍop ǝpᴉsdn pɐǝɥ ɹnoʎ ɥʇᴉʍ ʎuunɟ ʞool no⅄
    [MUSIC] The Ballad of LoyceV
    mocacinno
    Legendary
    *
    Offline

    Activity: 4088
    Merit: 5569


    ♻️ Automatic Exchange


    View Profile WWW
    March 29, 2022, 08:08:47 AM
    Merited by BlackHatCoiner (2), ABCbits (1), Libyanrav9 (1)
     #6

    • Could you share your personal take on running Bitcoin node on Linux?


    All other answers were answered, but this one is rather personal... So i tought i'd chip in.
    I'm a unix sysadmin (it's my daytime job), so i might not be the best reference, but i find running a full node on *nix much easyer to setup than running one on windows.

    If you're stuck, i helped n0nce gathering all info he needed to write this nice topic: https://bitcointalk.org/index.php?topic=5366854.0
    It was losely based on this topic written by me (a long time ago): https://bitcointalk.org/index.php?topic=5217198.0

    Both topics are much wider than your usecase, but they do describe (amongst other things) how to setup a full node on openSuse and Centos...
    Installing a full node on ubuntu (which seems to be more or less the most popular "newbie" distro) is even easyer: https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md#ubuntu--debian (these are the complete build instructions)

    I usually compile the reference client myself, but you can also just opt to download the pre-built binary version aswell (it does require some trust regarding to the person building the binary version).
    https://bitcoin.org/en/download

    ░░░░▄▄████████████▄
    ░▄████████████████▀
    ▄████████████████▀▄█▄
    ▄███████▀▀░░▄███▀▄████▄
    ▄██████▀░░░▄███▀░▀██████▄
    ██████▀░░▄████▄░░░▀██████
    ██████░░▀▀▀▀░▄▄▄▄░░██████
    ██████▄░░░▀████▀░░▄██████
    ▀██████▄░▄███▀░░░▄██████▀
    ▀████▀▄████░░▄▄███████▀
    ▀█▀▄████████████████▀
    ▄████████████████▀░
    ▀████████████▀▀░░░░
     
     CCECASH 
     
        ANN THREAD    
     
          TUTORIAL      
    ABCbits
    Legendary
    *
    Offline

    Activity: 3794
    Merit: 10518



    View Profile
    March 29, 2022, 11:52:14 AM
    Merited by Libyanrav9 (1)
     #7

    • Could you share your personal take on running Bitcoin node on Linux?

    As regular Linux user, i have easy time running Bitcoin node on Linux and i never encounter problem due to Linux.

    • Can I use the Windows version of blockchain data in Linux? Or do I have to download it all over after switching OS?

    You can use the same blocks data as the data should be the same. I'm not sure if it still needs to reindex though wehn you move the data directory (some files might be incompatible - particularly since Linux relies heavily on assigning files permissions and windows relies on assigning them to the user).

    Based on my past experience, there's no problem with file/directory permission when i move from Windows to Linux.

    • Could you share your personal take on running Bitcoin node on Linux?

    If you've not used Linux much, you might find it difficult to use. I think a lot of people struggle with the initial dependencies and some parts of the install (like database versions) can be confusing to understand for some distros (which one did you plan to use)?

    Might be true with other application. But Bitcoin Core on linux is easy to use. You just need to download archive file, extract it and double click bitcoin-qt.

    Libyanrav9 (OP)
    Newbie
    *
    Offline

    Activity: 8
    Merit: 21


    View Profile
    March 30, 2022, 03:08:35 AM
     #8


    jackg,  BitMaxz,  HCP,  LoyceV,  mocacinno,  ETFbitcoin Thank you all so much for sparing your valuable time and sharing knowledge!
    I will post updates/Qs as I progress.

    Cheers:)
    BTC
    Pmalek
    Legendary
    *
    Offline

    Activity: 3682
    Merit: 9877



    View Profile
    April 02, 2022, 07:17:45 PM
    Merited by Libyanrav9 (1)
     #9

    Adding this from the post above on the first question yes the block data from Linux should be compatible with Windows just make sure to copy both chainstate folder and block folder and transfer it to your Windows OS.
    OP is looking to migrate from Windows to Linux, so any data he has needs to be copied from his Windows machine to Linux. Since the data is compatible (I didn't actually it was), it doesn't matter.

    @Libyanrav9
    If you still want a Windows-like operating system, you can try Linux Mint. It's often recommended for those trying out a Linux distro for the first time.   

    ▄▄███████████████████▄▄
    ▄███████████████████████▄
    ███████████████████▄█████
    █████████████████████████
    ███████████▀█████████████
    █████████▀███▀██████▀████
    ██████████████████▄██████
    █████████▄▄█▄▄███████████
    ██████████▄▄▄████████████
    ███████████████████▀█████
    ████████████████▀▀███████
    ▀███████████████████████▀
    ▀▀███████████████████▀▀
     
     EARNBET 
    |⚽ 🏀
     
    🏈 🏓
     
    🎯 🥊
     
    ⚾ 🎾
     
    ⛳ 🏐
     
    🏏 🏎️
    |


    ███████▄▄███████████
    ████▄██████████████████
    ██▄▀▀███████████████▀▀███
    █▄████████████████████████
    ▄▄████████▀▀▀▀▀████████▄▄██
    ███████████████████████████
    █████████▌████▀████████████
    ███████████████████████████
    ▀▀███████▄▄▄▄▄█████████▀▀██
    █▀█████████████████████▀██
    ██▀▄▄███████████████▄▄███
    ████▀██████████████████
    ███████▀▀███████████

    ....HIGHEST....
    VIP REWARDS

     ✔ G U A R A N T E E D  
    | 
     🜲 
    KING OF
    THE CASTLE

    $200K in prizes
    | 
    ..PLAY NOW..
    MusaPk
    Hero Member
    *****
    Offline

    Activity: 1512
    Merit: 500



    View Profile WWW
    November 07, 2026, 08:06:48 PM
     #10

    Migrating OS; Bitcoin Core from Linux to Windows

    I came across this topic while I was trying to move my Bitcoin core from Linux (Ubuntu 18.04) to Windows 10. I was doing it because my Bitcoin core was running too slow on Ubuntu (it was installed on machine with old spec). On Ubuntu my Bitcoin core was almost 63% sync and on Windows I was able to resume the sync process from 63%.

    Claude provided great support in that cross OS migration.  

    I am leaving here few notes, which I think can help anyone who is looking to migrate Bitcoin core from Ubuntu to Windows 10 in future:
    • Try to install same versions of Bitcoin core on both Ubuntu and Windows. Mine was a bit different 31.2.0 on Ubuntu and 31.0.0 on Win 10 but still worked
    • I was running Bitcoin core in Prune mode and set same limit of 2GB on both machine
    • Install and run Bitcoin core on Win 10 and then close it down.
    • Copy files blocks, chainstate, wallets, banlist.json and peers.dat from ~/.bitcoin (Ubuntu) to C:\Users\<username>\AppData\Roaming\Bitcoin
    • Re run the Bitcoin core on Win 10 and it will start the sync process from 63% (as it was left on Ubuntu machine in my case)

    nc50lc
    Legendary
    *
    Offline

    Activity: 3332
    Merit: 9384


    Self-proclaimed Genius


    View Profile
    November 08, 2026, 07:49:21 AM
    Merited by ABCbits (1), MusaPk (1)
     #11

    • Copy files blocks, chainstate, wallets, banlist.json and peers.dat from ~/.bitcoin (Ubuntu) to C:\Users\<username>\AppData\Roaming\Bitcoin
    Although the old bitcoin data directory works,
    it's more proper to use the new default Windows datadir in local Appdata: C:\Users\<username>\AppData\local\Bitcoin
    It's the new default since v28.0 (release notes)

    Just saying that Claude is still using outdated information at this point.

    You don't have to move yours now that's it setup though.

    MusaPk
    Hero Member
    *****
    Offline

    Activity: 1512
    Merit: 500



    View Profile WWW
    November 08, 2026, 05:36:31 PM
     #12

    Although the old bitcoin data directory works,
    it's more proper to use the new default Windows datadir in local Appdata: C:\Users\<username>\AppData\local\Bitcoin
    It's the new default since v28.0 (release notes)

    Just saying that Claude is still using outdated information at this point.

    You don't have to move yours now that's it setup though.

    Actually I followed steps given by Claude until it worked for me.  

    I checked Datadir under Information tab and its points to C:\Users\<username>\AppData\Local\Bitcoin

    This is a good guideline for any person who is looking to migrate from Linux to Windows to copy files (which I mentioned earlier) to location C:\Users\<username>\AppData\Local\Bitcoin.

    These AI chatbots are great help but its good to cross check them because they often give wrong or outdated information.

    Cricktor
    Legendary
    *
    Offline

    Activity: 1680
    Merit: 4699



    View Profile
    November 08, 2026, 08:32:25 PM
     #13

    What's the reason to run Bitcoin Core 31.0.0 as your new node on your Windows box? (Assuming it from your post(s) and you didn't mention that you upgraded after the migration to more recent versions.)

    You could've run the same 31.2.0 on Windows or even go to the newest release 32.1.0 which fixes, IIRC, some yet undisclosed issues of your older version.

    satscraper
    Legendary
    *
    Offline

    Activity: 1652
    Merit: 3183


    AntiSwap.io - NO AML/KYC EXCHANGER MONITORING


    View Profile
    Today at 09:10:44 AM
     #14

    Although the old bitcoin data directory works,
    it's more proper to use the new default Windows datadir in local Appdata: C:\Users\<username>\AppData\local\Bitcoin
    It's the new default since v28.0 (release notes)

    Just saying that Claude is still using outdated information at this point.

    You don't have to move yours now that's it setup though.

    Actually I followed steps given by Claude 

    If you were keeping datadir on external drive, you could do it without Claude, by simply pointing Bitcoin Core to that drive. In fact the external drive offers a few advantages such as portability when moving  node between different hardware and OS, easy backups and cloning, and the ability to upgrade to larger drive, to name just a few. I use  2 TB SSD for this purpose, while the second 1 TB SSD is used for backup.


     AntiSwap 
    █████▄▄▄█████▄▄▄
    █▄████████████████▄▄▄
    ▐█████████████████████▄
    █████████▀▀█▀██████████
    ███████▀▄▄▄██▀████████▌
    ██████████▄▄█████████▀
    ██████▀▀████▀███████▀
    ▐█████▄████▄███████▀
    ████████▄█████████▀
    █████████████████
    ███████████████▀
    ████▀████████▀
    ██████▀███▀

    │❌ NO AML / KYC
    ███████████████████████
    █████▀█▀▀▀▀██████████████
    █████▀▀▀▀▀▀███████████████
    ███████████████████████████
    ███████████████████████████
    ██████████████████████████
    ████████████████████████▀█▄
    ███████████████████████▀██▄█▄
    █████████████████████████▀████▄
    ███████████████████████████▀████▄
    █████████████████████████████▀██▀
    🔎︎ 900+
    EXCHANGERS

    ██ ██ ██ ██ ██ ██
    │
    3 TIER
    RATING
    SYSTEM

    🟢 Fair
    🟠 Neutral
    🔴 SCAM!
    │
     BTC   ➤ 
    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!