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

1Tidy234

Stage 1 of 4: Tidy. paused

Tidy · 1/4scrub the drive's life →

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.

Who is the program working for?

Disk defragmentervsAn everyday program, e.g. for writing documents

Compare a defragmenter with a program for an everyday task.

Focus

Whose job does it serve?

Disk defragmenter

The computer system. It helps maintain it.

An everyday program, e.g. for writing documents

The user. It does the task they sat down to do.

The insight

This is what makes a defragmenter utility software: it looks after the system rather than doing the user's everyday task.

What does it work on?

Disk defragmenter

Where each file's parts are stored on the drive.

An everyday program, e.g. for writing documents

The content the user is creating, such as a document.

What does the user get out of it?

Disk defragmenter

A drive organised so files are read more quickly (on a magnetic hard disk drive).

An everyday program, e.g. for writing documents

A finished piece of work, such as a written document.

Why defragmenting speeds things up

?

Reason it through

On a magnetic hard disk drive, why does defragmenting make files quicker to read?

Link 1 of 4

First link · your turn

A file is fragmented. Where are its parts?

2
Locked — reveal the link above first
3
Locked — reveal the link above first
4
Locked — reveal the link above first

WHICH IDEA IS CLOSEST TO YOURS?

What does defragmenting actually do to your files?

A user runs a disk defragmenter on a drive full of fragmented files.

Which is closest to what you think the defragmenter does to the files?
How sure are you?

Exam line: Defragmenting changes where data is stored. It never changes what the data is.

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?

EXAM-STYLE PRACTICE (EDUQAS GCSE COMPUTER SCIENCE)

Have a go, then mark yourself

Describe what a disk defragmenter does and explain why it is used on a magnetic hard disk drive. [5 marks]

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

Exam line: Describe what it does, then explain why that speeds up reading on a magnetic hard disk drive.

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

1A disk defragmenter is utility software that helps maintain the computer system.
2Fragmentation means a file's parts are stored in separate, non-adjacent places. It builds up as files are saved, deleted and changed.
3A defragmenter moves each file's parts together and gathers free space into larger continuous areas.
4It moves data only. No files are deleted and no contents are changed.
5On a magnetic hard disk drive, less head movement means files are read more quickly.

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?
Utility software: a program that helps maintain the computer system rather than carrying out a user's everyday tasks.
What is fragmentation?
When the parts of a single file are stored in separate, non-adjacent places on a storage drive instead of together.
How does deleting files lead to fragmentation?
Deleting leaves gaps of free space scattered across the drive. A new or enlarged file may be split into parts to fill them.
What does "contiguous" mean?
Adjacent: stored side by side in one continuous area.
What does a defragmenter do to a file's parts?
It moves them so they are stored together in adjacent (contiguous) locations.
What does a defragmenter do to the free space?
It gathers the free space together into larger continuous areas.
Why does gathering free space help later on?
Files saved later are less likely to be split up, because there are larger continuous areas to put them in.
Does defragmenting delete files or change what is in them?
No. It only moves where the data is stored. Files and their contents stay the same.
Is a fragmented file damaged?
No. All its parts are there, just in separate places.
On a magnetic hard disk drive, why is a fragmented file slower to read?
The read/write head has to move to several different places on the disk to collect all of the file's parts.
What is the purpose of a disk defragmenter on a magnetic hard disk drive?
To reduce head movement, so files are read more quickly once each file's parts sit together.

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.