One present obstacle to the "RNA-first" model for the origin of life is an inability to generate reasonable "hands off" scenarios for the formation of carbohydrates under conditions where they might have survived for reasonable times once formed. Such scenarios would be especially compelling if they deliver pent(ul)oses, five-carbon sugars found in terran genetics, and exclude other carbohydrates (e.g., aldotetroses) that may also be able to function in genetic systems. Here, we provide detailed chemical analyses of carbohydrate premetabolism, showing how borate, molybdate, and calcium minerals guide the formation of tetroses (C(4)H(8)O(4)), heptoses (C(7)H(14)O(7)), and pentoses (C(5)H(10)O(5)), including the ribose found in RNA, in "hands off" experiments, starting with formaldehyde and glycolaldehyde. These results show that pent(ul)oses would almost certainly have formed as stable borate complexes on the surface of an early Earth beneath a humid CO(2) atmosphere suffering electrical discharge. While aldotetroses form extremely stable complexes with borate, they are not accessible by pathways plausible under the most likely early Earth scenarios. The stabilization by borate is not, however, absolute. Over longer times, material is expected to have passed from borate-bound pent(ul)oses to a branched heptulose, which is susceptible to Cannizzaro reduction to give dead end products. We show how this fate might be avoided using molybdate-catalyzed rearrangement of a branched pentose that is central to borate-moderated cycles that fix carbon from formaldehyde. Our emerging understanding of the nature of the early Earth, including the presence of hydrated rocks undergoing subduction to form felsic magmas in the early Hadean eon, may have made borate and molydate species available to prebiotic chemistry, despite the overall "reduced" state of the planet.