Thank you for the response. I tried safe mode and cleared cache..Then in safe mode the phone didn't turn off except for when I use the camera. And after that the phone detects the sd card and shows all in it..after turn off the safe mode, the problem seems to be there..