Before the days of GPS in the cockpit, a relative of mine was a 747 captain doing routes across the Pacific. On one flight, all of the gyros went offline.
He had been trained in the US Air Force in celestial navigation, so he was able to use that to get the aircraft within range of a beacon, and land safely.