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
Free preview
Create a free account to keep watching
It takes a minute and costs nothing. Your free account unlocks all of Chapter 1 and 3 more lessons of Introduction to Operating Systems.
Lesson complete
Earn the 3 college credits for Introduction to Operating Systems
Enrolling adds a quiz after each lesson, the graded work and the official transcript. Recommended for credit by NCCRS.
Next lesson: Optical Storage →← 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 →
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.
Enroll now → Course details Download the syllabus All Computer Science courses Every course with PRO →
Compare: Linux vs Operating Systems
Why take it here
Why students take Introduction to Operating Systems with UPI Study
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.
Thomas Edison State UniversitySigned partner
University of the PeopleSigned partner
Charter Oak State CollegeSigned partner
Strayer UniversitySigned partner
Columbia Southern UniversitySigned partner
Indiana TechSigned partner
Penn StateWorks with NCCRS
Southern New Hampshire UniversityWorks with NCCRS
SUNYWorks with NCCRS
+many more cooperating universitiesFind my college →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?
How do you calculate the average rotational latency of a hard drive?
Why is magnetic tape still used for archives?
Is an SSD faster than a hard disk drive?
About the Introduction to Operating Systems course
How many college credits is Introduction to Operating Systems?
How much does Introduction to Operating Systems cost and what is included?
Which universities accept UPI Study credits?
How long does Introduction to Operating Systems take?
How are the exams done?
How do my credits reach my college?
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
3 credits · NCCRSEnroll →