They can store operating systems, software programs, and other files using magnetic disk. It controls the reading and writing of the hard disk that provides data storage. These are either the primary or secondary storage device in a computer.