Author

Topic: Different folder location for the blockchain? (Read 88 times)

newbie
Activity: 1
Merit: 0
September 12, 2024, 06:49:58 AM
#7
I only have 1 USB port on the PC though. Basically I'll create a wallet, sync the blockchain, stop the daemon, change the USB and start the daemon again (with a new wallet). Will I be required to rescan in this situation?
newbie
Activity: 1
Merit: 0
September 12, 2024, 06:33:58 AM
#5
Got it!

Can I use different wallets each time when I start the daemon?

For example:
Code:
bitcoind
  -data-dir=/home/bositi7188/.blockchain
  -wallet=/media/usb/.wallet

Then stop the daemon and run it again with different wallet:
Code:
bitcoind
  -data-dir=/home/bositi7188/.blockchain
  -wallet=/media/usb2/.wallet
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
September 12, 2024, 06:37:39 AM
#4
You can use -wallet multiple times in the same command to load more than one wallet without restarting.

Edit: I see you've deleted your previous post above this one but anyways, this is what you can do whenever you run a Bitcoin node in any sort of configuration, not necessarily limited to the one you had posted before.
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
September 12, 2024, 06:21:07 AM
#3
You should definitely use the -wallet option since it allows you to load and unload the wallet using the RPC commands, which can act as a sort of "Safely eject USB" trigger.

Bitcoin Core will only read the wallet.dat file from the USB drive, which means there is no risk of data corruption if you unload it properly, and there is no sudden outage or shutdown.
legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
September 12, 2024, 04:26:35 AM
#2
I prefer option 2. But i'm not fan of your approach since,
1. Sudden USB disconnection could cause file corruption.
2. If you only run Bitcoin Core when you need to access your wallet, syncing will take some time.
3. If you run Bitcoin Core without loading any wallet to keep the blockchain synced, you need to rescan blockchain when you load the wallet.
newbie
Activity: 1
Merit: 0
September 11, 2024, 09:23:31 PM
#1
Hi! I have a PIN-secured USB, and I wish to keep my wallet there (every sensitive information, like transactions, addresses, etc.). It has very small storage, so I want to keep the blockchain files on my PC and the rest on the USB. So far, I have found two options to do it. Please let me know which is the best or if there is a better option.

OPTION 1:
Code:
ln -s /home/bositi7188/.blockchain/blocks /media/usb/.wallet/blocks
ln -s /home/bositi7188/.blockchain/chainstate /media/usb/.wallet/chainstate

bitcoind
  -data-dir=/media/usb/.wallet

OPTION 2:
Code:
bitcoind
  -data-dir=/home/bositi7188/.blockchain
  -wallet=/media/usb/.wallet

Thanks!
Jump to: