MADRID, Spain — The Spanair plane that crashed in Madrid, killing 154 people, had landing gear trouble a month ago that forced the pilot to abandon a first attempt at takeoff, the airline acknowledged Wednesday.

On July 26, the MD-82 was to take 167 passengers and crew from Palma on the Mediterranean island of Mallorca to Copenhagen, Denmark.

But as it taxied to the runway the pilot heard a "louder than usual noise" coming from the front landing gear and returned to the gate, a Spanair official said.

Mechanics worked on the problem for about a half-hour, and the plane took off without incident, 44 minutes late, the Spanair official said.

The official spoke on condition of anonymity because company rules bar her name from being published.

Ahead of the Aug. 20 crash, the same plane abandoned a first takeoff attempt while taxiing. Spanair has said this was because of a minor problem with an air temperature gauge near the cockpit. The airline has ruled out any link between this malfunction and Spain's worst air disaster in 25 years.

The plane struggled to get airborne, hit the ground tail-first, skidded and bounced three times over a half-mile before disintegrating and burning, the head of the Spanish commission overseeing the investigation, Francisco Soto, said Tuesday night.

Only 18 people survived.

Soto said it was too early to establish the cause of the crash but a preliminary report should be out in a month.

The earlier landing gear problem was first reported Tuesday by a Danish newspaper, Ekstra-Bladet, and carried Wednesday by Spanish papers.

Spanair did not make the detail public until these newspapers asked about it because the company did not deem the case serious enough to mention, the official said. She said she did not know the exact problem with the landing gear.

This particular plane passed 36 inspections this year, she said.