Arduino Leonardo not getting detected

Hi,

I am using a Arduino Leonardo . It was working fine previously but now my computer is not able to detect it when i plug it . The the ON led and L led on the board is continuously on and is not blinking a single time. dmseg is doesnt show anything when i plug the board. The last program i put in was of I2C communication.Please help.

Regards Anandghan