If I move the .chia folder to another disk, the GUI/node can’t start. When I move it back to the original folder, it works.
I did this:
Create a symlink: mklink /J C:\Users\aitor.chia D:.chia
I also tried with another disk, and only with the /db folder, but every time I move the database or chia from the original installation disk, it doesn’t work.
What I’m doing wrong?
Windows 10, all updated.
Chia 1.2.11
I also tried with firewall off.
Have you opened up your file manager and double-clicked your junction to confirm that it is showing you the target directory’s files?
“mklink” also supports a /d option.
Aside from the properties showing one as “JUNCTION” and the other as “SYMLINK”, they appear to behave exactly the same way. But if you cannot get your link to work via /j, then try /d.
If all else fails, I suggest that you make the link again, and for the target, spell out the fully qualified pathname.
Why symlink?
You can just tell the chia client to look for the db (both blockchain and wallet db’s if wanted) on the other disk.
Check this for instructions: https://spacefarmers.io/wiki/guides/farming/movedb
Just make sure that the leading spaces fit what you have in your config.yaml and when you swap for your drive/path use forward slashes.
The advantage of this method is that if you have resources, you can put various folders from your mainnet on different drives (e.g., separate blockchain db from wallet db traffic or move logs to a slower drive, as logs can actually interfere with blockchain/wallet db access during dust storms (create more strain on the underlying drive).
Thank you people for all your help, but I already tried all before posting here and anything worked:
@chiameh I did it the same way, it works by CMD but the node doesn’t start:
D:\.chia\mainnet>dir
El volumen de la unidad D es Trabajo
El número de serie del volumen es: DEEF-F1A4
Directorio de D:\.chia\mainnet
22/02/2022 15:10 <DIR> .
22/02/2022 15:10 <DIR> ..
22/02/2022 15:01 <DIR> cache
22/02/2022 15:16 <DIR> config
22/02/2022 15:09 <DIR> db
22/02/2022 15:09 <DIR> log
22/02/2022 15:09 <DIR> plotter
18/11/2021 00:21 <DIR> plotters
22/02/2022 15:24 <DIR> run
22/02/2022 15:10 <DIR> wallet
@seymour.krelborn the link it’s working from windows and also from cmd.
@xkredr59 I tried that first, but as didn’t worked, then I move to the symlink thing.
Your output there just proves that you have your new directory structure on d: drive, but not that you made a proper junction on your c: drive. Create one more ‘test.txt’ file on your d:.chia\mainnet folder, and then try
dir %USERPROFILE%\.chia\mainnet\
If your junction works, you should see that new file there (as it will use that junction). If not, there is a problem with your junction.
When you try those changes to config.yaml, the best thing is to delete your logs, and when you start chia, check the new log for errors. Most likely, you did some error/typo when modifying config.yaml (had that problem as well).
By the way, when you try to use the config.yaml modification, maybe you can start with just one change:
C:\Users\aitor>dir C:\Users\aitor\.chia\mainnet
El volumen de la unidad C es Sistema
El número de serie del volumen es: 84C5-E2BE
Directorio de C:\Users\aitor\.chia\mainnet
22/02/2022 17:54 <DIR> .
22/02/2022 17:54 <DIR> ..
22/02/2022 15:01 <DIR> cache
22/02/2022 17:21 <DIR> config
22/02/2022 15:09 <DIR> db
22/02/2022 17:54 0 file.txt
22/02/2022 15:09 <DIR> log
22/02/2022 15:09 <DIR> plotter
18/11/2021 00:21 <DIR> plotters
22/02/2022 17:53 <DIR> run
22/02/2022 15:10 <DIR> wallet
1 archivos 0 bytes