Primary memory like RAM can be read and written to and is used to store operating systems and active programs and files. ROM is read-only and stores boot programs. Secondary storage like hard disks and USB drives stores inactive programs and files long-term as it is non-volatile. Buffers temporarily store data during transfers between devices like printers and memory that operate at different speeds, allowing the processor to do other tasks, while interrupts signal the processor to refill buffers.