Dislocation motion in the normal and the superconducting states