It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search. I'm running geth on Linux within a Chromebook.
Problem is, the storage capacity on my Chromebook is quite limited so it is difficult to keep the data under the user directory. I have an SD card where I'd like to save the blockchain while keeping the geth installation in the home directory and local to the computer. How can I do this? I don't believe this has to do with --datadir that's just for the keystore , right? Any guidance or documentation is helpful, since I basically can't sync with the network with my limited storage as is.
The --datadir flag specifies the location data directory. However FAT32 file systems do not support the necessary operations to create unix sockets. Therefore if the directory is on a FAT32 file system e. This question outlines how one can run a Geth node using an external configuration file. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Learn more. Possible to store the blockchain in a different directory? Ask Question. Asked 5 years, 8 months ago. Active 2 months ago. Viewed 28k times. RiskyFire thanks for this video. It helps me to fix error "Cannot create a file when that file already exists. I did exactly this, apart from picking a directly on another drive. Ethereum then errors out when connecting to the node with the following report.
Couldn't connect to node? See the logs for more Node type: get Network: main Platform: win32 Architecture ia It seems like the node couldn't be started. Do you already have one running? Is it upgrading the database right now? Since I thought maybe it was a permission issue, I ran the wallet via the shortcut in administrator mode.
Still didn't work. Same error. I'd prefer not using a systemlink, and as a matter of principle this far into development, there really should be variables used for ethereum node folder location that is set by the end user. It doesn't make sense, so I would rather assume I am just missing something with a new setting somewhere or some other simple fix built into the coding already? This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.
Skip to content. This repository has been archived by the owner. It is now read-only. Star 7. How to change the blockchain dir? Copy link. What could be a way to make it? I would really appreciate your extended answer for that. MrBrighty try the following download the standalone version of geth link or use the binary geth. As summary: Opened geth. Will be really happy getting your feedback.
Do you have any ides? Probably, some firewall actions prevents the download. Do you know how to overcome it? So, for other people who could meet the same issue as me: Download atomic clock sync Open geth. Change data folder Comodore you can follow these instructions : Create the new folder for your chain data on desired drive with any name you want. Move the contents of your Ethereum folder.
Delete the original Ethereum folder. Run command prompt as admin. Note that the wallet file is not stored in the main datadir folder, but is instead placed in a separate folder under it called keystore. Inside that folder you should see a file with a long name starting with UTC If you are moving your Ethereum installation over to a different computer or want to have a copy on another system for solo mining for example, aside from a copy of the wallet file you may also want to make a copy of the blockchain, so that the geth client will not need to download the whole thing again from the network.
For the moment the Ethereum blockchain is not that big, but as it continues to grow it can become a very time consuming task to wait for the blockchain to download over the network like it already is with bitcoin for example. So here is how you can also export and then import the Ethereum blockchain should you need to do so.
You can also export and import the blockchain data from a geth console mode, however it seems that when ran inside the console it is doing it much slower than the above method.
0コメント