There are two types of storage devices used with computers: primary storage devices and secondary storage devices. Primary storage devices, such as RAM (random-access memory), hold data that is currently being used by the computer. Secondary storage devices, such as hard drives, provide long-term storage for programs and data2.