Frodo's understanding of Sauron and Barad-dûr builds across multiple sources:
While organizing Bilbo's effects, Frodo reads of Bilbo finding the Ring in Gollum's cave and his growing unease about its power. Bilbo notes it was forged in Mordor.
Gandalf investigates the Ring's history, confirming it as the One Ring. He reveals Sauron's return, the Nine Riders' awakening, and Barad-dûr's reconstruction.
At Rivendell, the full history is laid bare: Isildur's failure, the Ring's corruption, Sauron's marshalling of armies, and the necessity of destroying it in Mount Doom's fire.
Traveling toward Mordor, Frodo sees its blighted lands, feels the Eye's searching presence, and confronts its servants (Orcs, Nazgûl, Shelob)—confirming the Council's warnings.
Sam's loyalty grounds Frodo when the Ring's psychological weight threatens to overwhelm him, reinforcing why the quest matters.
Knowledge accumulates from lore → research → council → direct experience → moral resolve.