Grub
Middle English: perhaps related to Dutch grobbelen, also to grave1.
wiktionary
From hypothetical Old English *grubbian, from Proto-Germanic *grubb- (compare Old High German grubilōn(“to dig, search”), German grübeln(“to meditate, ponder”)), from Proto-Germanic *grub-(“to dig”). The noun sense of "larva" (c. 1400) may derive from the notion of "digging insect" or from the possibly unrelated Middle English grub(“dwarfish fellow”). The slang sense of "food" is first recorded 1659, and has been linked with birds eating grubs or with bub(“drink”)."
etymonline
grub (v.)
c. 1300, "dig in the ground," from hypothetical Old English *grybban, *grubbian, from West Germanic *grubbjan (source also of Middle Dutch grobben, Old High German grubilon "to dig, search," German grübeln "to meditate, ponder"), from PIE *ghrebh- (2) "to dig, bury, scratch" (see grave (n.)). Transitive sense "dig up by the roots" is from 1550s. Related: Grubbed; grubbing.
grub (n.)
"larva of an insect," early 15c., perhaps from grub (v.) on the notion of "digging insect," or from the possibly unrelated Middle English grub "dwarfish fellow" (c. 1400). Meaning "dull drudge" is 1650s. The slang sense of "food" is first recorded 1650s, said to be from birds eating grubs, but also often linked with bub "drink."