Disk compression

From Wikipedia, the free encyclopedia

A disk compression software utility increases the amount of information that can be stored on a hard disk drive of given size. Unlike a file compression utility which compresses only specified files - and which requires the user designate the files to be compressed - a disk compression utility works automatically and user doesn't need to be aware of its existence.

When information needs to be stored to the hard disk, the utility will compress the information. When information needs to be read, the utility will decompress the information. A disk compression utility overrides the standard operating system routines. Since all software applications access the hard disk using these routines, they continue to work after disk compression has been installed.

Disk compression utilities were popular especially in the early 1990s, when microcomputer hard disks were still relatively small (20 to 80 megabytes). A good disk compression utility could, on average, double the available space with negligible speed loss.

Note: While the most familiar disk compression utilities were designed to work on DOS systems, the concept was not specific to DOS. The utility DiskDoubler, for example, worked on the Apple Macintosh platform.

Contents

[edit] Common Disk Compression Utilities

[edit] Standalone Utilities

The initial compression utilities were sold independently. A user had to specifically choose to install and configure the software.

  • Stacker from Stac Electronics
  • XtraDrive from Integrated Information Technology ( IIT)
  • SuperStor Pro from AddStor
  • DoubleDisk Gold from Vertisoft Systems
  • DiskDoubler from Salient Software

[edit] Bundled Utilities

The idea of bundling disk compression into new machines appealed to resellers and users. Resellers liked that they could claim more storage space; users liked that they did not have to configure the software. Bundled utilities included:

  • DR-DOS 6.0, from Digital Research, included a version of SuperStor.
  • MS-DOS 6.0 and MS-DOS 6.2, from Microsoft, included DoubleSpace, which was based in part on Vertisoft Systems' DoubleDisk.
  • PC-DOS 6.1, from IBM, included a version of SuperStor.
  • MS-DOS 6.22, from Microsoft, included DriveSpace, which was DoubleSpace with a different compression algorithm.
  • Novell DOS 7, from Novell (after acquiring Digital Research), included a version of Stacker.
  • Windows 95, from Microsoft, included an updated version of DriveSpace.
  • Plus!, from Microsoft, included DriveSpace 3.

[edit] How Disk Compression Works

Disk Compression usually creates a single large file, which becomes a virtual hard drive. This is similar to how a single physical hard drive can be partitioned into multiple virtual drives. The compressed drive is accessed via a device driver.

[edit] Compressing Existing Drives

All drives would initially be empty. The utility to create a drive would usually offer to "compress a current drive". This meant the utility would:

  1. Create an empty compressed drive, stored on the existing drive.
  2. Transfer existing files on the old drive to the new compressed drive.
  3. Increase the size of the new compressed drive as necessary to accommodate more files and allow empty space when done.
  4. When all files were transferred, the drive letters would be swapped.

Usually certain system files would not be transferred. For example, OS swap files would remain only on the host drive.

[edit] Compressing the Boot Drive

Note that the device driver had to be loaded to access the compressed drive. A compressed C drive required changes to the boot process as follows:

  1. BIOS loads sector 0 of the first physical hard drive (partition sector)
  2. Partition sector loads sector 0 of the bootable partition. In this case, it's the host drive.
  3. Host drive sector 0 loads (in the case of MS-DOS) IO.SYS and begins Config.Sys processing
  4. Compression device driver is loaded. Compressed drive becomes C; host drive usually became F.
  5. Processing continues from compressed drive.

[edit] Drawbacks

Some common drawbacks to using disk compression:

  • Not all compression utilties would confirm the absence of errors in the file system before compressing a disk in place. Some errors, such as crosslinked files, could result in additional data loss during the transfer process. [1]
  • The compressed drive is only visible if the device driver is loaded and the compressed drive is mounted. A boot disk, for example, might not contain the driver.
  • Users did not always realize that the large file on the host drive contained the compressed drive. While it was usually "hidden" by default,[2] users who did find the large file curious or suspicious were able to delete it. This would normally result in data loss.

[edit] See also

[edit] External Links

[edit] References

  1. ^ In crosslinked files, two files are storing at least part of their data in the same location. At least part of one file (the "bad" file) is always lost in this instance. However, if the "bad" file is copied and then deleted, part of the "good" file is deleted as well. Microsoft ScanDisk was created, in part, to preform a better check of the file system prior to compression than the old MS-DOS CHKDSK utility.
  2. ^ For example, DOS associated up to four attributes with files: System, Hidden, Read-Only, and Archivable. Files with the System or Hidden attributes are often not displayed by default. Files with the System or Read-Only attribute cannot be deleted with the "Erase" (or "Del") DOS command. Most compression utilities would mark the drive file with at least one or more of the System, Hidden, and Read-Only attributes (many would use all three). However, files marked with such attributes can be viewed and deleted by other means. In addition, the user can also remove attributes.
In other languages