Even though the process went smoothly, customers still found it unnerving.

“People expect companies to go out of business, not banks,” said James R. Fouts, the mayor of Warren, Mich., whose working class city of 140,000 has had a front row seat to the collapses of General Motors and Chrysler. “That is something that you expect to hear about in the Great Depression, and it further exacerbates the feeling that financially, the country is not yet in stable shape.”

The banking system may also be facing a long recovery. About $870 billion, or roughly half of the industry’s $1.8 trillion of commercial real estate loans, now sit on the balance sheets of small and medium-size banks like these, according to an analysis by Foresight Analytics, a research firm. For most of the banks, this represents the biggest and riskiest part of their loan portfolio, since they lack the trading streams and fee businesses of their larger rivals. And as a group, small banks have written off only a tiny percentage of the losses that analysts expect them to incur.

In fact, applying only the commercial real estate loss assumptions that federal regulators used during the stress tests for the big banks last spring, Foresight analysts estimated that as many as 581 small banks were at risk of collapse by 2011.

By contrast, commercial real estate losses put none of the nation’s 19 biggest banks, and only about 5 of the next 100 largest lenders, in jeopardy.

Even Citigroup, the biggest and most troubled of the banks, has a relatively small portion of its loans tied to commercial real estate and may begin to recover faster than other rivals.

Gerard Cassidy, a veteran banking analyst, said the problems call to mind the wave of small bank failures in Texas and New England two decades ago during the savings and loan crisis  only on a national scale.

Back then, regulators closed more than 700 lenders in those regions. Today, Mr. Cassidy projects that as many as 1,000 small banks will close over the next few years and that their losses will be more severe. “It’s a repeat on steroids,” he said.