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 freeRequest 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 BRequest 5: save file D (needs 3 blocks)Request 6: file A grows by 1 block
| File A blocks | File B blocks | File C blocks | File D blocks | Free 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.
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.
Pick a folder at each step. The route you take is the file's path.
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.
Sort each item: is it something the OS records about a file, or part of what the file holds?
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
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?
How does the OS organise data on backing store?
What is a folder (directory)?
What is a path?
Name four pieces of metadata the OS records about a file.
What is a block?
What does the OS's table or index record?
What does the OS track about the backing store as a whole?
A file is created or grows. What does the OS do?
A file is deleted. What does the OS do?
A program asks to read a file. What does the OS do?
A program asks to write (save) data. What does the OS do?
Why do programs not need to know where data is physically stored?
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 postedMore Eduqas GCSE Computer Science topics
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.