They make a tool for this and it's called a ginger grater
. If you don't have one of those you can use a microplane
. If you don't have one of those you can grate and then chop even more using a knife.
I have been known just to peel, cut in thin rounds, then cut in matchstick pieces, then finely mince from there.