An Etymological Dictionary of the German Language/Annotated/grübeln

grübeln, verb, ‘to grub, rack one's brains, brood,’ from Middle High German grübelen, Old High German grubilôn, ‘to excavate by boring, investigate closely’; it is certainly connected with the root grab, ‘to dig’ (compare English to grub).