What is a rattling noise from the gearbox?

It might not be the gearbox. Does it sound like it's coming from below the gear lever? I had the same problem in mine, and it turned out to be the exhaust, which was loose and rattling. It was fixed by putting a hard rubber spacer between the pipe and the car.