Secondary storage devices store information even when a computer is powered off. Common secondary storage devices include floppy disks, hard disks, magnetic tapes, flash drives, and optical disks. Magnetic tapes and disks are sequential access devices that read/write data in sequence, while hard disks and optical disks are direct access devices that allow random access to data. Secondary storage provides large storage capacity at lower costs than primary storage and is used to store programs and data.