My C: drive in my WINDOWS PC is almost full. How can I change both geth and Mist path to relocate my blockchain files?

  • I read here somewhere that I have to execute geth --datadir "NEW PATH". But this solution:

    1) Doesn't work in a permanent way for me (it will actually point geth in that direction but if I after execute geth -help it will show the old path).

    2) Will not update the Mist (or Ethereum Wallet) path. Every time I execute it will try to download the entire blockchain again in the old path.

    I know this has been treated before here, but couldn't find an answer for this particular situation. Thanks in advance.

    EDIT: This question is Windows specific, and hasn´t been answered before

    Slightly different from Running out of storage space - want to move Mist chaindata as soft links are harder in Windows, especially over separate drives.

    This really needs some work on mist side. I proposed to add a `--datadir` flag for mist here.

    I agree this is not a duplicate. I was looking for this sort of answer recently but there was no question or answer that was Windows specific.

    So tell me what's the difference of this question and the other one?

    This question is Windows specific, I was thinking the other one was Linux but on reviewing it the author doesn't specify an operating system. I'm happy to provide a Windows specific answer on either question, I'll wait to see if you open this one back up first.

    Hello @tayvano. Can you please reopen the question?, because is not a duplicate.

    Well, go ahead ;-)

  • DirtStats

    DirtStats Correct answer

    5 years ago

    You'll need to create a symbolic link from the folder where Mist is looking for the chaindata to the folder where you are storing the chaindata (e.g., on an external drive). You can make a symbolic link with the MKLINK command in Windows, there's a good primer on the matter here: http://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/?PageSpeed=noscript (A symbolic link is not the same as a Windows shortcut, though it functions similarly)

    Here are directions to do this in Windows Vista, 7, 8 or 10: First, open command prompt in Windows with administrator privileges, then enter:

    mklink /J folder_path_that_Mist_looks_at folder_path_to_your_desired_location

    In my case with Win8 this command looks something like this: mklink /J C:\User\Username\AppData\Roaming\Ethereum D:\Etherdata\Ethereum (I moved my whole Etherdata folder, not just the chaindata folder).

    The /J indicates that you're linking a folder not a file. You do not need to navigate to a particular folder in command to do this.

    (Thanks to @BokkyPooBah for his guidance on this here)

    Better using /D as Parameter like -> mklink /D C:\Users\Tom\AppData\Roaming\Ethereum E:\Ethereum

License under CC-BY-SA with attribution


Content dated before 7/24/2021 11:53 AM