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.
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 |
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. |
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.
| 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. |
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.
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. |
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. |
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. |
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. |
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. |
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.
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
- Define the term utility software.
- Explain why creating a file system is an important part of formatting.
- Describe two actions that a disk-analysis or repair utility may carry out.
- Explain how fragmentation develops on a magnetic hard disk.
- Explain why defragmentation may improve magnetic-disk access time.
- Give two features that can make backup software more reliable than occasional manual copying.
- Explain one storage benefit and one transmission benefit of file compression.
- Explain why a virus checker requires both updates and repeated scans.
- A removable drive has file-system errors after being disconnected during a write. Select a suitable utility and justify your choice.
- A student says, “Formatting, repairing and defragmenting all do the same job: they clean the disk.” Correct the statement.
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. |