RAM and ROM make up primary memory, with RAM being temporary storage and ROM containing permanent operating system instructions. Secondary memory includes magnetic tapes, hard disk drives, floppy disks, and CD-ROMs, which are used to store data and files for longer periods of time. Common secondary storage devices also include flash drives, memory cards, and the internal storage of smartphones.