Skip to content

How To Move And Change Your Ethereum Mining Ethash (DAG) Folder

If you are mining Ethereum you have the Ethash folder where the DAG dataset is generated, and the folder will get bigger and bigger. The chance is big that you came here to find out how you can move your Ethash folder. I had the same problem, I stored the DAG files on my primary partition, and after mining I had less and less space so that I wanted to change the DAG folder destination. In this article you will learn how to do exactly that, you will learn how to move or change your Ethash (DAG) folder.

The problem is that we can’t simply move the folder to another place or partition, also there is no easy option to change the destination. We need to do something manually. If you are Windows user, there is a feature that is pretty handy, the symbolic links and the mklink command. Symbolic links are pretty similar to shortcuts that you regularly create on your desktop, symbolic links are mainly there to reference files that are stored in another location. So, here is my case and how I did move the DAG files…

  1. The problem was that I had the DAG stored in “C:\Users\PC\AppData\LocalEthash” but I wanted it to be in “D:\ETH\Ethash”.
  2. To solve the issue, I created the new folders first. I created the folder structure “D:\ETH\Ethash”.
  3. I moved all the files from “C:\Users\PC\AppData\LocalEthash” to “D:\ETH\Ethash”.
  4. Now I clicked on start in Windows and typed “cmd” into the search to open the Windows command shell.
  5. Then I typed “mklink /D C:\Users\PC\AppData\Local\Ethash D:\ETH\Ethash” into the shell. This command creates a symbolic directory link, so that there is a reference where the files are now located. Note that my Windows user folder is called “PC”, that means you have to use your own folder name there if you want to use the “mklink” command. If this reference is set after you used the command, you are good to go.

How to move or change the Ethash folder (DAG)

There is nothing more you need to do. To understand it, you just moved your files from one folder to another, and to make the mining tools understand it, you created the reference that the files are now located somewhere else. With this trick, you do not run out of space on your primary partition or SSD drive, and the DAG will be on a much bigger partition. You can now continue to mine Ether without worrying about space problems.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: