Answer:
Hard Disk Drives (HDDs)
Step-by-step explanation:
To store and retrieve data, magnetic storage is used. This is possible through the availability of magnetic coated rotating platters. Due to their ability to retain data stored on them, they are considered non-volatile storage devices.
Even though facing extinction due to the emergence of SSDs (Solid State Drives), HDDs are still the most used because they are less expensive.
Just as stated in the question, HDDs can detect and change the patterns o varying magnetic flux on the pattern and they also possess read/write heads for storage and retrieval of data.