GCSE · Computer Science · Eduqas · Spec C500QS

OS backing store management

Save a file, delete another, save something bigger. Nothing gets overwritten. Who is keeping track? For the next few minutes, you are: you play the operating system.

Computer Science · Operating systems

Be the operating system: who gets which blocks?

Ten blocks, six requests, and a table you have to keep right.

You are the operating system. The store has 10 blocks, numbered 0 to 9, and in this example you always hand out the lowest-numbered free blocks first. Watch the first row, then call each marked step before the table shows it.

Start: nothing saved, blocks 0 to 9 all free
Request 1: save file A (needs 3 blocks)
Request 2: save file B (needs 2 blocks)
Request 3: save file C (needs 3 blocks)
Request 4: delete file B
Request 5: save file D (needs 3 blocks)
Request 6: file A grows by 1 block
File A blocksFile B blocksFile C blocksFile D blocksFree blocks
––––0, 1, 2, 3, 4, 5, 6, 7, 8, 9

Step 1. Nothing is saved yet, so every block is free. This first row is worked for you.

Step 1 of 7Called right: 0 of 5

Check the Free blocks column before you hand anything out. A block that belongs to a file is not free.

Computer Science · Folders and paths

Walk the folder tree to a file

Start at the top of the backing store. Choose a folder at each step until you reach a file.

Folder → Sub-folder → File

6 paths to a file.

On Backing store (top level). 2 branches to choose from.

Pick a folder at each step. The route you take is the file's path.

Exam line: A path names every folder on the way down to a file. Different routes can end at files with the same name, and they are different files.

Computer Science · File metadata

About the file, or inside the file?

Pick an item, then pick the category it belongs in.

Still to sort

Metadata (about the file) (0)

Information the OS records about each file.

Where the line is: Metadata describes the file. It is not what the user typed, drew or saved into it.

The file's own data (0)

What is actually inside the file.

Where the line is: The file's own data is the content a user or program put into it.

9 of 9 still to sort.

Sort each item: is it something the OS records about a file, or part of what the file holds?

Watch out: File size feels like part of the file, but it is a fact recorded about the file.

Computer Science · Reading a file

What happens when a program reads a file?

the order things happen in when a program reads a file

1 · happens first4 · happens last
  1. The OS moves the file's data from backing store into RAM

  2. The program uses the data now held in RAM

  3. The program asks to read the file, giving its name and path

  4. The OS uses its records to find the file's blocks, and their order

Two views of one file

What a user or program seesvsWhat the OS keeps track of

Same file, two points of view. Read across each row.

Focus

How the file is identified

What a user or program sees

Its file name and its path through the folders

What the OS keeps track of

Which blocks belong to it, and in what order

The insight

A program asks by name and path. The OS uses its table or index to turn that into blocks.

Where the data sits

What a user or program sees

Nobody needs to know, and there is nothing to look up

What the OS keeps track of

In fixed-size blocks that need not be next to each other

Free space

What a user or program sees

Just save the file

What the OS keeps track of

A record of which areas are free and which are in use

A read or write request

What a user or program sees

Open or save this file

What the OS keeps track of

Read: find the blocks, move the data into RAM. Write: find free space, write the data, update the records

Computer Science · Have a go

Describe it in your own words

Describe what the operating system does when a user saves a new file and later deletes it. [5 marks]

0 words · your answer stays on this page and is not sent anywhere.

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

How the operating system keeps track of where every file really lives

What you need to know

  • The OS manages backing store (secondary storage) for users and programs, organising its data into files that each have a file name.
  • Files are grouped into folders (directories). A folder can hold files and more folders, which makes a hierarchical tree.
  • A file is found by its path, the route through the folders. So files in different folders may share a name.
  • Have a goMaya says: "Two files can't both be called notes.txt, or the computer wouldn't know which is which." Is she right?

    No. They can share a name if they are in different folders.

    The OS finds a file by its path, the whole route through the folders, not by its name alone.

  • For every file the OS records metadata: name, type, size, dates created and last modified, and where it is stored.
  • Backing store is divided into fixed-size blocks. One file may use several blocks that aren't next to each other.
  • Have a goOnly blocks 2, 6 and 9 are empty. A file needs 3 blocks. Can it be saved there?

    Yes. Its blocks don't have to be next to each other.

    A file may be spread over several blocks that aren't adjacent, so scattered empty blocks can still hold it.

  • A table or index records which blocks belong to which file, in order. The OS also tracks which areas are free or in use.
  • Have a goThe OS's table says file X uses blocks 4, 9, 2, in that order. Which block holds the first part of X?

    Block 4.

    The table records a file's blocks in the file's order, so you read it as listed, not from the lowest block number.

  • Creating or growing a file means the OS allocates free space and updates its records, so nothing else gets overwritten.
  • Deleting a file removes its entry and marks its blocks as free for reuse.
  • Read: the OS uses its records to find the blocks and moves the data into RAM. Write: it finds free space, writes there, updates its records.
  • Programs only use a file's name and path. They never need to know where the data physically sits.

The big picture

The operating system manages backing store for you. It organises data into named files and folders, records which fixed-size blocks each file uses and which blocks are free, uses those records to find a file's data on every read, and updates them on every save and delete. That is why programs only ever need a file's name and path.

Key points

1Backing store management is the operating system's job: it manages the data and programs on backing store for users and application programs.
2Data is organised into files with file names, grouped in a hierarchy of folders, and a file is located by its path.
3Backing store is split into fixed-size blocks; a file may occupy several blocks that need not be next to each other.
4The OS keeps a table or index of which blocks belong to which file, in order, and a record of which areas are free or in use.
5Creating, growing, deleting, reading and writing all work through those records, so programs only ever use a file's name and path.

Worked example

Problem

A small store has 8 blocks, numbered 0 to 7. File P holds blocks 0 and 1, and file Q holds blocks 4 and 5. The rest are free. The OS hands out the lowest-numbered free blocks first. A user saves a new file E that needs 3 blocks, and later deletes E. What do E's entry and the free list look like at each stage?

⚠ Watch out

Picturing a file as one continuous lump in one place, so a program must know where it is. A file may sit in several blocks that aren't next to each other. The OS's records track them, and you only ever use the name and path.

🧠

Memory hook

Think of the OS as keeping two sets of records: who owns which blocks, and which blocks are free. Saving or deleting updates both. Reading only uses them to find the blocks.

✓

Check yourself

Without looking back: name the two kinds of record the OS updates when it saves a new file, and say why that stops one file overwriting another.

Flashcards

(13)
Backing store management: whose job is it, and who is it done for?
It is a role of the operating system. It manages the data and programs held on backing store (secondary storage) on behalf of users and application programs.
How does the OS organise data on backing store?
Into files, each identified by a file name.
What is a folder (directory)?
A way to organise files. A folder can contain files and further folders, giving a hierarchical (tree) structure.
What is a path?
The route through the folder hierarchy to a file. A file is located by its path.
Name four pieces of metadata the OS records about a file.
Any four from: name, type, size, date created, date last modified, where it is stored.
What is a block?
A fixed-size piece of backing store. A file may occupy several blocks, and they need not be next to each other.
What does the OS's table or index record?
Which blocks belong to which file, and in what order.
What does the OS track about the backing store as a whole?
Which areas are free and which are in use.
A file is created or grows. What does the OS do?
It allocates free space and updates its records, so new data does not overwrite data belonging to another file.
A file is deleted. What does the OS do?
It removes the file's entry and marks its blocks as free for reuse.
A program asks to read a file. What does the OS do?
It uses its records to locate the file's blocks and transfers the data from backing store into main memory (RAM).
A program asks to write (save) data. What does the OS do?
It finds free space on the backing store, writes the data there and updates its records of the file's location.
Why do programs not need to know where data is physically stored?
The OS handles the read and write requests, so users and programs refer to files by name and path.

Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.

Learning with Lightbulb is opening soon

You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.

Keep me posted

More Eduqas GCSE Computer Science topics

See the full Eduqas Computer Science curriculum →

How this lesson was checked. This Eduqas GCSE Computer Science (specification C500QS)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 16 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.