The contact at head/disk interface in hard disk drives subject to an external shock has been studied using the finite element method. A rigid cylinder moving over a two-layered thin film was implemented to simulate the contact between the recording slider and the disk. The effects of different friction coefficients on the von Mises stress of two-layered thin film were investigated. The relation between pressed depth and width of deformation has been obtained. Results show that the amplitude decreases with increase of friction coefficient while the period of slider motion is diminution. In addition, the stress distribution fits Hertzian contact theory.