The generally accepted way to detect large geological features underwater, if you're not a survey ship (moving slowly, running multiple loud sonars, etc.) is to have and use accurate navigation charts.
Wretched shortcomings in that regard seem well-accepted as the cause of the USS San Francisco's mishap.