In this paper we study the system governing flows in the magnetic field within the earth. The system is similar to the magnetohydrodynamic (MHD) equations. For initial data in space L^p, we obtained the local in time existence and uniqueness of weak solutions of the system subject to appropriate initial and boundary conditions.