The part of a tape machine or disk drive that reads and/or writes information magnetically to and from the storage media.