hi
my nokia n97 also had the same problem like you have told. i gave it to authorised nokia service center. simply they have formatted. now it is working good without any problem.