GCSE · Computer Science · Edexcel · Spec 1CP2
Utility software – disk defragmentation
A book with its chapters shelved in different rooms is a nightmare to fetch. Your hard drive can do the same to files.
Watch a hard drive get sorted
Three files, seven segments, eight blocks
Each row is the drive at one moment. Block 1 to Block 8 run left to right. A1, A2, A3 are the three segments of file A; B1, B2 belong to file B; C1, C2 to file C.
Before you press Next: where are file A's three segments right now? Together, or scattered?
| Block 1 | Block 2 | Block 3 | Block 4 | Block 5 | Block 6 | Block 7 | Block 8 |
|---|---|---|---|---|---|---|---|
| A1 | B1 | C2 | A2 | C1 | B2 | A3 | empty |
Output
Step 1: Before. Every file was saved in segments, and the segments are scattered. File A is in blocks 1, 4 and 7. File B is in blocks 2 and 6. File C is in blocks 3 and 5.
Use Next to move through the four states of the drive. Watch each letter: the pieces never change, only where they sit.
Why is it faster?
Reason it through
Why does defragmenting a hard drive make files quicker to access?
First link · your turn
A file is saved on a hard drive. How is it stored?
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Same files, same pieces. Defragmentation just puts each file's pieces side by side on the hard drive.
What you need to know
- Software runs on the hardware so we can get jobs done.
- System software manages and controls the hardware, and lets application software run.
- Utility software is a kind of system software. It is used to maintain, optimise or protect a computer system.
- Encryption, defragmentation and data compression software are all examples of utility software.
Have a goMaya says: "Defragmentation is utility software, so it definitely can't be system software." Is Maya right?
No. Defragmentation software is both.
Utility software is a kind of system software, so anything in the utility set is also in the system software set.
- When a file is saved to a hard drive, it is saved in segments.
- A file's segments may not be stored together. They can be scattered across the drive.
Have a goYour photo is saved on a hard drive in four segments. Must those four segments sit side by side?
No. They may be scattered across the drive.
Saving a file in segments does not guarantee the segments are stored together, so they can end up in different places.
- Defragmentation software reorganises the data on a hard drive by grouping related data together.
- It rearranges the files so that each file's segments are stored together.
Have a goA drive holds 10 segments in total before defragmentation. How many does it hold afterwards?
10, the same segments in new places.
Defragmentation only rearranges where existing segments are stored, so no segments appear or disappear.
- That reduces the time taken to access files, so system performance improves.
The big picture
Defragmentation software is utility software, which is a kind of system software. A hard drive saves each file in segments that can end up scattered. Defragmentation rearranges the files so each file's segments are stored together, which reduces the time taken to access files and improves system performance.
Key points
Worked example
Problem
A small drive has six blocks. Before defragmentation it holds [X1, Y1, X2, empty, X3, Y2], where X1 to X3 are file X's segments and Y1, Y2 are file Y's. After defragmentation it holds [X1, X2, X3, Y1, Y2, empty]. Describe what changed and what did not.
⚠ Watch out
Thinking defragmentation cleans up the drive by deleting, repairing or shrinking files. It does none of those. It only rearranges where each file's existing segments are stored so they sit together.
Memory hook
A book with its chapters in different rooms is slow to fetch. Move every chapter onto one shelf and you have the same book, just quicker to get. Scattered, then together, then faster.
Check yourself
Without looking back: finish this chain in your own words. A file's segments are scattered, so reading it means ... Defragmentation then ... so that ...
Flashcards
(10)What does system software do?
What is utility software used for?
How are system software and utility software related?
Name three examples of utility software.
How is a file saved on a hard drive?
What does it mean for a file to be scattered across the drive?
What does defragmentation software do?
Why does defragmentation improve system performance?
Does defragmentation change what is in a file?
Is a word processor system software?
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 Edexcel GCSE Computer Science topics
How this lesson was checked. This Edexcel GCSE Computer Science (specification 1CP2)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 21 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.