In this research, phase retrieval using transport of intensity equation (TIE) and transport of phase equation (TPE) have been used for determine the surface of corrosion behavior of electrodeposited Co-Fe alloys, an important component in hard disk drive. Without interferometer as used in digital holography technique, by using TIE and TPE, our observing setup is simple and compact. The experimental results show the capability of TIE and TPE for observing the pitting corrosion. The pitting corrosion of Co-Fe image results have also shown. The dynamic process of microstructure surface system would be conducted and may be applied to hard disk drive industry in the future.