I use this command because it allows me to sync the Geth blockchain to an external SD card rather than to the internal hard drive:

geth --datadir /media/user/sdcard/chaindata --ipcdisable

However, if there was a way to use it with the console it would be even better.

I have tried this but it doesn't work:

geth console --datadir /media/user/sdcard/chaindata --ipcdisable

Is it possible to use the command with the console and if so, how?

2 Answers 2


The following should work for you:

geth --datadir /media/user/sdcard/chaindata --ipcdisable console

The console and attach [endpoint] commands should always be at the end.


you have to put console after the options, the help command tells you that :

➜  ✗ geth --help
   geth - the go-ethereum command line interface

   geth [options] command [command options] [arguments...]


console      Geth Console: interactive JavaScript environment


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.