While you wait for answers, we may have found some information which could help you.
Click here for Sd Card LockedProblem with Pentax Optio M20 Camara?
How can I get my Pentax OPtio M20 to turn on?
my pentax optio m20 keeps showing batteries depleted even with new ones ?