A-Level Computer Science / Unit 5: System Software and Program Translation

5.1.3 Utility Software for System Maintenance

🔒 Lesson slides are available to signed-in users. Sign in

5.1.3 Utility Software for System Maintenance

An operating system keeps a computer running from moment to moment, but some jobs are needed only at particular times: preparing a storage device, checking for damage, restoring lost data or scanning for malicious software. These focused maintenance jobs are carried out by utility software.

By the end of this section, you should be able to:

  • Explain why utility programs are needed alongside an operating system.
  • Describe the purpose of formatting, disk analysis and disk repair.
  • Explain how defragmentation can improve access on a magnetic hard disk.
  • Describe how backup, compression and virus-checking utilities support a computer system.
  • Select and justify a suitable utility for an unfamiliar maintenance problem.
Utility software: system software designed to perform a focused maintenance, protection, recovery or storage-management task.

Why Are Utility Programs Needed?

The operating system manages resources continuously, whereas a utility usually performs a specific job when the user or system requests it. Some utilities are supplied with the operating system; others can be installed separately.

Type of need Example problem Suitable utility
Prepare storage A removable drive has no usable file system. Disk formatter
Investigate faults A drive reports file-system errors after an interrupted write. Disk analysis or repair utility
Improve magnetic-disk layout One file is stored in many separated blocks. Defragmentation utility
Recover from loss Coursework is deleted or the original drive fails. Backup utility
Reduce data size A collection of files is too large to transfer conveniently. File-compression utility
Detect malicious code A downloaded file may contain a known virus. Virus checker
Common mistake: A utility is not chosen because it “makes the computer faster” in general. Each utility has a specific purpose and should be matched to a particular problem.

Disk Formatting: Preparing Storage for Use

Before an operating system can organise files on a storage device, the device needs a structure that the operating system understands. A disk formatter prepares the storage medium by creating a file system. It may also create partitions so that one physical device appears as separate logical storage areas.

Formatting action Purpose
Create a file system Provides the structures used to name, locate and manage files.
Create partitions when required Divides the device into separate logical sections.
Replace existing file-system information Allows the device to be prepared for a new use or operating system.
Common mistake: Formatting does not mean “tidying files”. It prepares the storage structure and may make existing data inaccessible, so important data should be backed up first.
Exam tip: A developed answer should mention the creation of a file system. Writing only “it clears the disk” does not explain the main purpose.

Disk Contents Analysis and Repair

Storage problems can occur after a sudden loss of power, an interrupted write operation or a physical fault. A disk-analysis utility checks the file system and storage areas for inconsistencies. A repair utility then attempts to correct the problem or prevent the operating system from using a damaged area.

Bad sector: a storage area on a magnetic disk that can no longer be read from or written to reliably.
Detected problem Possible utility response Limitation
Inconsistent file-system records Rebuild or correct the affected records where possible. Some file information may already be lost.
Unreliable disk sector Mark the sector so the system avoids using it. Marking the sector does not restore data that was destroyed.
Partly damaged file Recover readable data or isolate the unusable file. Complete recovery cannot be guaranteed.
Common mistake: A repair utility does not physically repair a damaged disk surface. It may correct logical structures, recover some data or mark an unreliable area so it is not used again.

Defragmentation on Magnetic Hard Disks

As files are created, enlarged and deleted, the free areas on a magnetic hard disk can become scattered. A new or extended file may then be stored in several separated blocks. This is known as fragmentation.

Fragmentation: the storage of one file in non-contiguous blocks rather than in one continuous region.

A defragmentation utility rearranges file blocks so that each file is stored more continuously and free space is consolidated. On a magnetic hard disk, this can reduce the physical movement of the read/write head and therefore reduce file-access time.

Before defragmentation Utility action After defragmentation
Parts of Project X are separated by gaps and other files. Move file blocks into a more continuous sequence. Project X can be read with less movement of the disk head.
Free space exists in many small areas. Combine free areas where possible. Larger continuous areas are available for future files.
Common mistake: Defragmentation is mainly associated with magnetic hard disks. Solid-state drives have no moving read/write head, so the same performance argument does not apply and routine defragmentation is unnecessary.
Exam tip: Link the rearrangement to its benefit: more continuous file blocks can reduce head movement and access time on a magnetic disk.

Backup Software: Preparing for Data Loss

A backup utility creates recoverable copies of data so that files can be restored if the originals are deleted, corrupted or lost because of hardware failure. The copy should be stored separately from the original data; otherwise one incident could destroy both.

Backup feature Why it is useful
Scheduled operation Reduces the risk that a user forgets to make a recent copy.
Copying changed files Reduces the time and storage required for repeated backups.
Restore facility Returns selected files or a system state from a saved copy.
Separate destination Protects the backup from the same drive failure as the original.
Common mistake: Moving a file to another folder on the same drive is not a reliable backup. The original and the “copy” may still be lost in the same hardware failure.

File Compression Utilities

A compression utility represents data using fewer bits. This reduces the storage space needed and can shorten transmission time. It may also package several files into one compressed archive for convenient transfer.

General-purpose file compression must normally be lossless, because the original program, document or data file must be reconstructed exactly when decompressed. The detailed compression methods are covered elsewhere in the course.

Situation Benefit of compression
Uploading a folder of source-code files Fewer bits need to be transmitted and the files can be grouped into one archive.
Keeping infrequently used records Less storage capacity is required.
Sending data over a limited-bandwidth connection A smaller transfer may complete sooner.
Common mistake: Compression does not automatically improve the quality of a file. Its purpose is to reduce the number of bits required to store or transmit the data.

Virus Checking and Removal

A virus checker scans files, storage devices and active processes for known malicious patterns or suspicious behaviour. When a threat is detected, the utility may block access, quarantine the file, attempt removal or ask the user to choose an action.

The utility must be updated regularly because new malware appears and new detection information is released. Routine scans are also needed because an infected file may have entered the system before the checker was able to recognise it.

Stage Utility action
Update Obtain current detection rules and program improvements.
Scan Examine files or active activity for indicators of infection.
Respond Block, quarantine, remove or report the suspected threat.
Common mistake: A virus checker reduces risk but cannot guarantee that every new or disguised threat will be detected.
Exam tip: When explaining updates, state that the checker needs new detection information to recognise recently discovered threats.

Choosing the Correct Utility

In an exam, the strongest answers identify the exact problem before naming a utility. Similar-sounding storage utilities solve different problems.

Clue in the scenario Best utility Reason
“No usable file system” Formatter Prepares the device and creates storage structures.
“File-system errors” or “bad sectors” Disk analysis/repair Checks for faults and attempts logical repair or marks damaged areas.
“File blocks are scattered on a magnetic disk” Defragmenter Rearranges blocks into more continuous regions.
“Restore after loss” Backup utility Provides a recoverable copy of earlier data.
“Reduce size before transfer” Compression utility Represents the data using fewer bits.
“Scan a suspicious download” Virus checker Detects and responds to recognised malicious code.
Answer structure: name the utility, describe its action, then connect that action to the stated problem.

Interactive: Utility Software Chooser

The existing utility chooser has been retained. Select a maintenance problem and follow the sequence from problem to utility action to result.

Recommended utility

Disk formatter

Prepares the disk by setting up the file system and, if needed, partitions.

Problem A new disk cannot be used until it is prepared.
Utility action Create a file system and prepare storage areas.
Result The operating system can store and locate files.

Memory check: Formatter = prepare a disk for use.

Common Mistakes and Misconceptions

  • Formatting and defragmentation: formatting creates a usable file system; defragmentation rearranges existing file blocks.
  • Repair and recovery: a repair utility may recover some data, but successful recovery is not guaranteed.
  • Backup and moving: a backup is a separate recoverable copy, not simply a relocated original.
  • Compression and deletion: compression reduces representation size; it does not achieve savings by discarding an ordinary data file.
  • Virus checking and updates: an outdated checker may not recognise recently discovered threats.
  • Defragmenting every drive: the magnetic-disk benefit does not transfer directly to solid-state storage.

Practice

Try these original questions

  1. Define the term utility software.
  2. Explain why creating a file system is an important part of formatting.
  3. Describe two actions that a disk-analysis or repair utility may carry out.
  4. Explain how fragmentation develops on a magnetic hard disk.
  5. Explain why defragmentation may improve magnetic-disk access time.
  6. Give two features that can make backup software more reliable than occasional manual copying.
  7. Explain one storage benefit and one transmission benefit of file compression.
  8. Explain why a virus checker requires both updates and repeated scans.
  9. A removable drive has file-system errors after being disconnected during a write. Select a suitable utility and justify your choice.
  10. A student says, “Formatting, repairing and defragmenting all do the same job: they clean the disk.” Correct the statement.
Exam tip: Avoid one-word answers when the question says “explain”. Connect the utility’s action to a clear consequence for the system or data.

Review

Utility Essential idea Typical misconception to avoid
Disk formatter Creates a usable file system and may partition the device. It is not a file-arrangement tool.
Disk analysis/repair Checks for logical or physical storage problems and responds where possible. It cannot guarantee complete data recovery.
Defragmenter Rearranges non-contiguous file blocks on a magnetic disk. It is not primarily for repairing bad sectors.
Backup utility Creates recoverable copies, often according to a schedule. A copy on the same failed drive may not provide protection.
Compression utility Uses fewer bits for storage or transmission. It does not improve file quality.
Virus checker Scans, identifies and responds to recognised threats. It still needs updates and cannot guarantee perfect detection.
Final check: Can you distinguish the three storage utilities—formatter, repair tool and defragmenter—without relying on memorised examples?