Bitcoin Forum
May 17, 2024, 03:11:10 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Moving blockchain to another drive on ubuntu  (Read 614 times)
jantaro (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
March 09, 2016, 10:46:46 AM
 #1

Hello, would like to move my 53GB folder ./bitcoin, of course to another drive because I m running out of space on my SSD. I tried, but I cannot do it:


first I go to my home directory by typing cd /home

then I try to create a symbolic link

sudo ln -s /path/to/mystoragedrive/.bitcoin .bitcoin

it returns me back to the "$" line with no errors so I suppose the command runs fine but...

well I start again the dowloading of the blockchain with

bitcoind -daemon

but the blocks download to my SSD drive. So nothing has changed after running this.

Should I erase or change the name of my ./bitcoin folder of the SSD?, right now I got this 53GB folder ( ./bitcoin ) both in my storage drive and my SSD.

or maybe this would solve the problem:?

bitcoind -daemon -datadir=/path/to/mystoragedrive/.bitcoin

or maybe could I change something on the config files of bitcoind and/or bitcoin-qt.? I don´t wanna deal with this -datadir flag every time I start the program.

Please help, would not like to mess up anything that´s why I´m asking. Kind regards!.
unamis76
Legendary
*
Offline Offline

Activity: 1512
Merit: 1009


View Profile
March 09, 2016, 10:54:25 AM
 #2

bitcoind -daemon -datadir=/path/to/mystoragedrive/.bitcoin

The solution you seek is in your post already... Just move the data to the drive you want and specify it's path with the datadir command.
Shibashi Dogemoto
Hero Member
*****
Offline Offline

Activity: 840
Merit: 1000


View Profile
March 09, 2016, 10:59:52 AM
 #3

OR, you can create a new partition on your SSD, format it, move all your data in ~/.bitcoin to the new partition, mount the partition to ~/.bitcoin (make sure to edit your fstab).

This will probably be easyer.
jantaro (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
March 10, 2016, 04:52:28 PM
 #4

this flag will work?. that´s great!. Thanks for your help!.
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!