Storage Technologies, Explained

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

Storage Technologies

Introduction to Operating Systems · Chapter 4: Memory ManagementSection 4.2 · lesson 26 of 838 min · free with a free account

← How Computer Memory WorksNext lesson: Units of 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 volatile memory and non-volatile storage physically hold bits.

  • Distinguish volatile memory from non-volatile storage
  • Encode characters as bits with ASCII and count bit patterns as powers of two
  • Compare magnetic, solid state and optical storage
  • Contrast direct access with sequential access

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,031 words). Read along, or search it.

Opening Scene

Saved Files Survive a Power Cut

Sam, who runs a small online bakery, is typing a big order when the power goes out. The old laptop's worn-out battery gives up at once. When it starts again, every saved file is still there. But the order Sam was typing is gone. Why did one survive, and not the other?

Analogy

Whiteboard Versus Notebook

Think about two kinds of paper. A whiteboard is perfect for working out a problem, and wiping it takes one swipe. A notebook is slower to write in, but your words are still there next year. Computers use both kinds. Some memory forgets the moment the power goes out. Some remembers for years.

Key Distinction

Volatile Memory and Non-Volatile Storage

Memory that needs power to keep its contents is volatile. Cut the power, and the data is gone. RAM and cache are volatile. Non-volatile memory keeps its contents with no power at all: drives, flash memory, and discs. That's why saving matters. A document you're typing sits in RAM, on the whiteboard. Saving copies it down to the drive, where it survives a crash. One common mix-up: memory and storage. In everyday talk they're the same word. In a computer, RAM is the volatile workspace, and the drive is non-volatile storage. They're separate parts, with separate jobs.

Bits

Anything With Two Stable States

Underneath, all storage does the same humble thing: it holds bits. A bit is a single yes or no, written as 0 or 1. Anything that can reliably sit in one of two states can hold a bit. A light switch, on or off. A spot magnetized one way, or the other. A tiny cell, with electric charge, or without.

Worked Example

Storing Hi! in ASCII

To store a letter, a computer first agrees on a number for it. Text uses a standard table of numbers, called ASCII. Capital H is number 72. In bits, that's 0 1 0 0 1 0 0 0: a 64, plus an 8. Small i is 105. And the exclamation mark is 33. Each character takes 8 bits. A group of 8 bits is called a byte, and lesson 4.3 measures with it. So the note Hi! takes 3 bytes, which is 24 bits.

Key Rule

Each Extra Bit Doubles the Patterns

Here's a key fact. One bit can show 2 patterns: 0, or 1. Two bits show 4: 00, 01, 10, and 11. Every old pattern can now end in a 0 or a 1, so each extra bit doubles the count. Three bits give 8 patterns, four give 16, and five give 32. Eight bits give 256: enough for letters, digits and symbols. Photos, music and programs are stored the same way, just with far more bits.

Three Families

Magnetic, Solid State and Optical

Real devices use physics to keep each bit in one of two states. There are three big families. Magnetic storage, like hard disks and tape: tiny regions are magnetized one way or the other, and a read head senses which. The surface has to move under the head, so reaching data takes time. Solid state storage, like SSDs, USB sticks and memory cards: chips of cells that hold an electric charge, or don't. There are no moving parts. RAM is built from chips too. But each bit of ordinary RAM is a tiny charge that leaks away, so the computer refreshes it many times a second. Optical storage, like CDs, DVDs and Blu-ray: a disc covered in tiny marks. A laser shines on it, and the light comes back differently from a mark than from the flat surface. Devices come back in chapter 5: disks in 5.9, optical discs in 5.10, and flash in 5.11.

Access Methods

Direct Versus Sequential Access

Another difference is how you reach the data. On a disk, a flash chip or a disc, you can jump straight to any spot. That's direct access. On tape, you wind through everything in order. That's called sequential access. It's slow for opening one file. But it's fine for backups, which are written and read in order anyway.

Techniques

Layering, Redundancy, Compression, Checking

Storing bits is only half the job. Systems also use a few techniques. Layering puts fast, small memory in front of big, slow memory, as lesson 4.1 showed. Backups and redundancy keep extra copies, for example with RAID, so one failed device doesn't lose everything. A file system turns raw bits into named files and folders. And compression stores the same data in fewer bits, while error checking adds a few bits to catch damage.

Quick Check

Bits Needed for 50 Colors

Quick check. A drawing app gives each pixel one of 50 colors, and stores the choice as a pattern of bits. What's the fewest bits per pixel that can tell all 50 colors apart? Five bits, six bits, or eight bits? Pause, and decide. Six bits. Five bits give only 32 patterns, which is too few for 50 colors. One more bit doubles that to 64, enough for all 50, with 14 to spare. Eight bits would work too, with 256 patterns. But it isn't the fewest.

Quick Check

Flash for a Thermostat Schedule

One more. A thermostat on a school wall must remember its weekly heating schedule, even through a power cut. It's small and cheap, and it has no room for anything fragile. Which should hold the schedule: a small hard disk, ordinary RAM, or flash memory? Pause, and decide. Flash memory. The schedule must survive a power cut, so it needs non-volatile storage. That rules out ordinary RAM. A hard disk is non-volatile, but it spins, with moving parts: too big and too fragile for a thermostat. Flash keeps its charge with no power and no moving parts. That's why so many small gadgets use it.

Real Case

Autosave Copies the Whiteboard

Back to Sam's power cut. The order being typed lived only in RAM, on the whiteboard. When the power went, so did the order. The saved files were on the drive, in the notebook, so they survived. Ivy, who looks after the computers at a school, had simple advice: turn on autosave. It just copies the whiteboard to the notebook more often.

Key Takeaways

Power, Bits and Physical Media

To recap. Volatile memory, like RAM and cache, needs power. Non-volatile storage, like drives, flash and discs, keeps data without it. Everything is stored as bits. Eight bits make a byte, and each extra bit doubles the patterns. Magnetic, solid state and optical storage hold bits in different physical ways. And tape is read in order, while disks, flash and discs can jump to any spot.

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 Storage Technologies

What is the difference between volatile and non-volatile memory?
Volatile memory needs power to keep its contents, while non-volatile storage keeps data with the power off. RAM and CPU cache are volatile, so unsaved work disappears in a crash or power cut. Hard drives, SSDs, flash cards and optical discs are non-volatile. Saving a document copies it from volatile RAM to the non-volatile drive, which is why autosave protects work.
How many bits do you need to represent 50 different values?
Six bits are the minimum for 50 different values. Each extra bit doubles the number of patterns, so n bits give 2 to the power n patterns. Five bits give only 32, which is too few, while six bits give 64, enough for 50 with 14 to spare. Eight bits would also work, with 256 patterns, but would use more bits than needed.
How is a letter stored in binary?
A letter is stored as the number assigned to it in a character code table, written in bits. In ASCII, capital H is 72, stored as 01001000, which is 64 plus 8. Lowercase i is 105, and the exclamation mark is 33. Each character takes 8 bits, or one byte, so the text Hi! occupies 3 bytes, or 24 bits.
How do magnetic, solid state and optical storage hold bits differently?
Magnetic storage, such as hard disks and tape, magnetizes tiny regions one way or the other and reads them with a head as the surface moves. Solid state storage, such as SSDs and USB sticks, holds an electric charge, or no charge, in chip cells, with no moving parts. Optical storage, such as CDs, DVDs and Blu-ray, uses a laser that reflects differently from marks on a disc.

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 →