Ginger can last for a little more than a month in the fridge unpeeled, but if you need a long-term solution, start with peeling the root thoroughly. Then, place the ginger in a well-sealed freezer bag and keep it in the fridge for up to six months, and when you're ready to use it, you can grate it while it's still frozen and be good to go.