Types of Storage Devices, Explained

UPI Study › Courses › Introduction to Operating Systems › Free lessons › Lesson 5.9 Free with a free account

Types of Storage Devices

Introduction to Operating Systems · Chapter 5: Peripheral Devices and I/O SystemsSection 5.9 · lesson 44 of 837 min · free with a free account

← Internal BusesNext lesson: Optical Storage →

A free account plays all of Chapter 1 and 3 more lessons of Introduction to Operating Systems. Create a free account →

Earn 3 college credits for Introduction to Operating SystemsRecommended for credit by NCCRS · Computer Science 354 · self-paced · one payment, lifetime access

In this lesson

How storage tiers and devices trade speed, room and cost.

  • Distinguish primary, secondary and tertiary storage, and place cloud storage among them
  • Explain how hard disks, SSDs, optical discs and tape each store bits
  • Calculate a hard disk's average rotational wait from its spin speed
  • Choose a storage device for a job by speed, cost per byte, size and shelf life

Free study notes

Get this lesson's notes by email

The key points and 4 practice questions with answers, in your inbox. One email, free.

One email. Unsubscribe in one click.

Transcript

Everything said in the video, section by section (1,036 words). Read along, or search it.

Opening Scene

Recipes Kept in Three Places

Sam, who runs a small online bakery, keeps recipes in three places. A paper copy on the counter. A recipe binder on a shelf. And the accountant's archive boxes, up in the attic. Each place holds information, and each trades speed against room and cost. You grab the counter copy in a second. The attic box takes an afternoon. A computer sorts its storage the same way. Knowing the sorting tells you which device fits which job.

Storage Tiers

Primary, Secondary and Tertiary Storage

Computers sort storage by how close it is to the CPU. Primary storage is memory the CPU can reach directly: RAM and cache. It's fast, and volatile, so it forgets everything when the power goes off. Secondary storage is the built-in or attached device that keeps files with the power off: a hard disk, or an SSD. The CPU reaches it through the I/O system, not directly. Tertiary storage is for large, rarely used, or offline data: tape libraries and removable discs, where a robot or a person must load the media first. And cloud storage isn't a new kind of device. It's secondary or tertiary storage in someone else's data center, reached over a network. You rent the space instead of owning the drive.

How It Works

Spinning Platters and a Moving Head

How does each device keep a bit? A hard disk drive, or HDD, keeps bits as tiny magnetic patches on spinning platters of metal or glass. A read and write head on a moving arm hovers just above the surface. To read a file, the arm swings to the right track. Then the drive waits for the right spot to rotate under the head. Those moving parts make a hard disk cheap for its size, but slower and more fragile than flash.

Other Devices

SSDs, Optical Discs and Magnetic Tape

A solid state drive, or SSD, stores bits as electric charge in flash memory chips, which lesson 5.11 opens up. Nothing moves, so it reads quickly, makes no noise, and survives bumps better. An optical disc keeps bits as microscopic marks, read with a laser. That's lesson 5.10. And a magnetic tape is a long ribbon of magnetic material wound on a reel, read in order from one end, like a cassette.

Worked Example

Average Rotational Wait Is Half a Turn

That waiting for the spot is easy to compute. Once the head arrives, on average half a turn of the platter must pass before the right spot is underneath. A disk spinning at seventy-two hundred turns a minute takes sixty thousand milliseconds divided by seventy-two hundred: about eight point three milliseconds per turn. Half of that is about four point two. A fifty-four hundred r p m disk waits about five point six milliseconds. A ten thousand r p m disk, three. That's only the waiting part, and it's thousands of times slower than RAM, which answers in nanoseconds. That's why the OS works so hard to cache data and schedule disk requests. An SSD has no spinning part, so it has no wait like this at all.

Quick Check

A Fifteen Thousand RPM Server Disk

Quick check. A server disk at the school, where Ivy looks after the computers, spins at fifteen thousand r p m. What's its average rotational wait? Pause, and work it out. Two milliseconds. Sixty thousand milliseconds divided by fifteen thousand is four milliseconds for one full turn, and the average wait is half a turn. Four is the tempting slip: that's the whole turn, not the average. On average, the spot you need is half a turn away.

Trade-Offs

Matching Speed, Size, Cost and Shelf Life

No single device wins everywhere. Each one trades speed, size, cost per byte, and how long it lasts on a shelf. Words like fast and cheap are relative, because real products differ. A hard disk gives lots of space for the price, but it's slower, with moving parts. It suits bulk files, media libraries, and backups. An SSD is fast, quiet, and has no moving parts, but it costs more per byte. It's the boot drive, and it's in laptops and phones. An optical disc is cheap and easy to hand over, but small, slow, and scratchable. Tape is big, cheap, and lasts long on a shelf, but it's sequential, so finding data is slow. And the cloud is reachable from anywhere, but it needs a network, and trust in the provider. So before you choose, ask three questions. How fast must I read it? How long must it last? And what will each stored gigabyte cost?

Quick Check

Ten Years of Raw Film Footage

Quick check. A film school must keep its raw footage for ten years. It'll be read maybe once a year, and the budget is tight. Which device fits best: an SSD, an external hard disk, or tape? Pause, and decide. Tape. It's big, it costs little per byte, and it lasts a long time on a shelf. Slow access doesn't matter when reads are rare. The hard disk is tempting, because it's cheap too. But its moving parts aren't built to sit unused for a decade. And an SSD costs the most per byte, for speed this job never needs.

Real Example

A Layered Storage Plan at School

Put it together, and you get a layered plan. At Ivy's school, the IT firm Corner Byte keeps the data in layers. Today's open documents live in RAM. The files the school uses daily sit on SSDs. The year-end records move to large hard disks. And old yearly archives go to tape, or to a cloud service, stored off-site in case the building has a problem.

Common Mistake

A Synced Cloud Copy Is Not a Backup

Sam wanted to keep every photo of every cake ever baked on the fast laptop drive. It filled up in a month. Keep this year on the SSD, Ivy said. Put the older ones on a big, cheap hard disk, and send a second copy to the cloud. But a common mistake is treating a cloud copy as a backup plan. A file that syncs automatically also syncs a deletion, or a damaged copy. A backup needs a separate, older version to go back to. Lesson 5.12 returns to this.

Key Takeaways

Choosing the Right Device for the Job

To recap. Primary storage is reached directly, secondary through the I/O system, and tertiary is loaded when needed. The cloud is someone else's secondary or tertiary storage. A hard disk moves and waits. An SSD only sends signals. The average rotational wait is half a turn. And you match a device to a job by speed, cost, size, and shelf life.

About Introduction to Operating Systems at UPI Study

Introduction to Operating Systems (Computer Science 354) is a self-paced online course of 83 video lessons in 10 chapters, from what an operating system does and process scheduling to concurrency, memory, devices, file systems, networks, the internet, security and virtual machines. It carries a NCCRS credit recommendation for 3 semester credits.

Every lesson transcript is free on pages like this one, and the videos are free with a free UPI Study account. Enrolling adds a practice quiz after each lesson, the graded work and final exam that earn the credit, lifetime access, and an official transcript on completion. UPI Study has helped over 130,000 students with college credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.

Compare: Linux vs Operating Systems

Why take it here

Why students take Introduction to Operating Systems with UPI Study

What happens under every app you runIntroduction to Operating Systems explains the software that runs a computer: processes and scheduling, threads and synchronization, deadlock, memory and paging, devices and storage, file systems, networking, security and virtualization. It suits computer science and information technology degrees.
Credit at a fraction of the priceThe same 3 credits can cost $750 or more at a US college. Here it is one payment, self-paced, with lifetime access.
Finish your degree soonerTransfer credits reduce the courses you still owe, so you can graduate earlier or lighten a heavy semester.
Strengthen an applicationA completed college-level course on an official transcript shows admissions and scholarship committees you can do the work.
Study on your own scheduleNo start dates, no deadlines. Watch the lessons, practice, and take the final when you are ready.
130,000+students helped with college creditsACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.

Where the credit goes

Universities that work with NCCRS

Introduction to Operating Systems carries a NCCRS credit recommendation. These universities work with NCCRS; some are UPI Study's signed partners. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.

Find my college → Not listed? Ask Athena in the corner of this page, or book a 15-minute call.

FAQ

Questions students ask us

About Types of Storage Devices

What is the difference between primary and secondary storage?
Primary storage is memory the CPU reaches directly, such as RAM and cache, while secondary storage is a drive that keeps files with the power off. Primary storage is fast but volatile, so it loses its contents at shutdown. Secondary storage, such as a hard disk or SSD, is reached through the I/O system instead of directly, and it holds data far longer.
How do you calculate the average rotational latency of a hard drive?
Divide 60,000 milliseconds by the disk's revolutions per minute to get one full turn, then halve it, because on average the needed spot is half a turn away from the head. A 7,200 rpm disk takes about 8.3 milliseconds per turn, so its average wait is about 4.2 milliseconds. A 15,000 rpm disk turns once in 4 milliseconds and waits about 2 on average.
Why is magnetic tape still used for archives?
Tape stays in use because it holds a lot of data cheaply per byte and lasts a long time on a shelf. Its weakness is sequential access: finding a file means winding through the reel, so reads are slow. For an archive that must be kept for years and is read rarely, slow access matters little, which makes tape a strong fit for long-term storage.
Is an SSD faster than a hard disk drive?
Yes, an SSD is generally faster, because it has no moving parts and no rotational wait. A hard disk must swing its arm to the right track and wait for the platter to turn, while an SSD stores bits as charge in flash chips and reads them electronically. The trade-off is cost: SSDs usually cost more per byte, so hard disks still suit bulk files and backups.

About the Introduction to Operating Systems course

How many college credits is Introduction to Operating Systems?
Introduction to Operating Systems (Computer Science 354) carries a NCCRS credit recommendation for 3 semester credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
How much does Introduction to Operating Systems cost and what is included?
$250, paid once, with lifetime access: all 83 video lessons, a practice quiz after each, the graded work and final exam, and an official transcript when you finish. Students who want several courses choose UPI Study PRO instead.
Which universities accept UPI Study credits?
UPI Study has signed partner agreements with universities such as Thomas Edison State University, University of the People and Charter Oak State College, and works with universities such as Penn State, SNHU and SUNY. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities. Use "Find my college" on this page to check yours.
How long does Introduction to Operating Systems take?
It is self-paced with no deadlines. The 83 lessons total about 10 hours of video; most students add reading and practice time and finish in a few weeks to a few months, on their own schedule.
How are the exams done?
Quizzes and assignments are online in the course. The final exam is taken online with proctoring; a person on the UPI Study team checks assignments, usually within two days.
How do my credits reach my college?
When the course shows 100% complete, request the official transcript from your dashboard. It is sent to the college you name, and you can send it to more than one. Check your college first with "Find my college" on this page, or ask Athena.

Ready for the full course? Earn 3 credits in Introduction to Operating Systems.

83 video lessons, a quiz after each one, and the graded work that earns the credit. Recommended for credit by NCCRS.

Updated

Introduction to Operating Systems
3 credits · NCCRS
Enroll →