GCSE · Computer Science · Eduqas · Spec C500QS
Disk defragmenters
Imagine one book with its chapters shelved in six different rooms. You'd spend more time walking than reading. A messy drive can do that to a file.
One drive, four moments
Every file in one unbroken run: A A B B B C C D D D E E · ·
Letters are parts of files, dots are free slots. Scrub through the drive's life.
Why defragmenting speeds things up
Reason it through
On a magnetic hard disk drive, why does defragmenting make files quicker to read?
First link · your turn
A file is fragmented. Where are its parts?
Predict, then check
Think about what the defragmenter did to the free space.
A defragmenter has just finished running. You now save a new file. What is most likely to happen?
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Why a drive gets scattered, and how putting the pieces back together helps
What you need to know
- A disk defragmenter is utility software: a program that helps maintain the computer system instead of doing the user's everyday tasks.
- Fragmentation is when the parts of one file sit in separate, non-adjacent places on a drive instead of together.
Have a goTwo files each have 4 parts. File X sits in slots 5, 6, 7 and 8. File Y sits in slots 2, 3, 9 and 14. Which one is fragmented?
File Y.
Its parts are in separate, non-adjacent places. X's parts sit side by side, so X is stored together.
- It builds up over time as files are saved, deleted and changed.
- Deleting a file leaves a gap of free space, so free space ends up scattered across the drive in gaps.
- A new or enlarged file may be split into parts to fill those gaps.
Have a goYour friend says, very confidently: "I deleted a huge video, so now the video is fragmented!" What have they mixed up?
Deleting the video just leaves a gap. A different file gets split if it is saved into gaps.
Fragmentation means a file's parts are scattered. Deleting only leaves free space behind, and the gaps are what can cause later files to be split.
- A defragmenter moves each file's parts so they sit together in adjacent (contiguous) locations.
- It also gathers free space into larger continuous areas, so files saved later are less likely to be split.
- Defragmenting only moves where data is stored. It does not delete files or change their contents.
Have a goA drive holds 6 files before it is defragmented. How many files does it hold afterwards, and what has changed about each one?
Still 6 files. Each file's parts now sit together.
A defragmenter moves where data is stored and never deletes files or changes their contents, so the number of files cannot go down.
- On a magnetic hard disk drive, a fragmented file takes longer to read because the read/write head must move to several places.
- So defragmenting a magnetic hard disk drive means less head movement and quicker reading once each file's parts sit together.
The big picture
Over time, a file's parts can end up scattered across a drive (fragmentation). A disk defragmenter is utility software that moves each file's parts back together and gathers the free space, without deleting or changing any file. On a magnetic hard disk drive that means less read/write head movement, so files are read more quickly.
Key points
Worked example
Problem
A drive has 10 storage slots. A dot is a free slot. Its current layout is: P P · Q Q · · P · ·. Which file is fragmented, and what does the layout look like after a defragmenter has run?
⚠ Watch out
Thinking a defragmenter cleans the drive by deleting or shrinking files. It only moves where each file's parts are stored. The files and their contents stay exactly as they were.
Memory hook
De-fragment: take the scattered pieces and bring them back together. Same pieces, new places, and the read/write head has less to chase.
Check yourself
Without looking back: name the two jobs a defragmenter does to the layout of a drive, and say one thing it never does to your files.
Flashcards
(11)What type of software is a disk defragmenter?
What is fragmentation?
How does deleting files lead to fragmentation?
What does "contiguous" mean?
What does a defragmenter do to a file's parts?
What does a defragmenter do to the free space?
Why does gathering free space help later on?
Does defragmenting delete files or change what is in them?
Is a fragmented file damaged?
On a magnetic hard disk drive, why is a fragmented file slower to read?
What is the purpose of a disk defragmenter on a magnetic hard disk drive?
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.