Magnetic recording is the core technology in HDDs where thin films of ferromagnetic material on platters are magnetised to represent binary data bits. Encoding schemes like run-length limited encoding determine how data is represented through magnetic transitions.