Disk compression

Short description: Automatic, disk-wide data compression

Disk compression increases the amount of information that can be stored on a disk by automatically compressing and decompressing data as it is written to and read from it. A disk compression utility is software that provides disk compression by overriding the system's file access layer so that all programs participate in compression. When a program writes a file, the utility compresses the data before storage. When a program reads a file, the utility decompresses the stored data before providing it to the program.

Disk compression uses a single, normal file for storing the logical, user-visible files of a disk volume. This file tends to be relatively large and acts as a virtual drive. Typically, access to the compressed storage is via device driver. Similar utilities automatically compress and decompress each file instead of using a single, large file, but such a utility is not classified as disk compression.

Unlike a file compression utility which is generally interactive (user specifies which files to compress and when to compress them), a disk compression utility is noninteractive (files are processed automatically as part of normal file use). This automatic behavior is sometimes described as on-the-fly, transparent, real-time and online.

Disk compression was popular especially in the early 1990s, when microcomputer hard disks were relatively small (20 to 80 megabytes) and rather expensive (roughly 10 USD per megabyte).[1] Such utilities tended to be a more economic means of having more disk space as opposed to buying a disk with more space. A good disk compression utility could, on average, double the available space with negligible speed loss. Disk compression fell into disuse by the late 1990s, as advances in hard drive technology and manufacturing led to lower cost per unit of space.

## Contents

* 1 Use
* 2 Considerations
* 3 Examples
* 3.1 Hardware-assisted
* 3.2 Software only
* 3.3 Bundled
* 3.4 Related
* 4 See also
* 5 References
* 6 External links

## Use

To start using disk compression on an existing drive, the utility would follow steps like:

1. Create an empty, compressed, virtual drive (a normal file on the host drive).
2. Transfer files from the host drive to the compressed drive except for certain system files such as the swap file.
3. Increase the size of the compressed drive to accommodate files and allow empty space when complete.

Since a device driver is required to access a compressed drive, a compressed boot drive (C:) required changes to the boot process as follows:

1. The System BIOS loads sector 0 of the first physical hard drive (Master Boot Record).
2. The partition sector loads sector 0 of the bootable partition (Volume Boot Record). In this case, it's the host drive.
3. Host drive sector 0 loads (in the case of DOS) the DOS BIOS (IO.SYS, IBMBIO.COM etc.) Depending on the version, only the first few sectors of the file or the whole file may be loaded into memory. In the first case, the loaded stub contains another loader loading the remainder of the file from disk. In the case of DR-DOS, the BIOS is packed and will decompress itself through an embedded decompression routine.[2][3]
4. The DOS BIOS then loads the DOS kernel (MSDOS.SYS, IBMDOS.COM etc.)
5. If the DOS supports the preload API, the DOS BIOS attempts to load a preloadable compression driver[4][5] (DBLSPACE.BIN, DRVSPACE.BIN or STACKER.BIN) from the root of the host drive and attempts to communicate with it through the DOS preload API.[2][6] If the driver responds as expected, the DOS BIOS will keep the driver, if not, it will get discarded.[7] If kept and configured accordingly, drive letters may get swapped, so that the compressed drive becomes C:.
6. The DOS BIOS starts CONFIG.SYS processing by looking for the file in the root of the boot drive. In the case of DR-DOS, DCONFIG.SYS takes precedence over CONFIG.SYS, if present.[6][2]
7. Compression drivers not loaded through the preload API may be loaded through DEVICE statements.
8. Depending on configuration and if this hasn't happened already, drive letters may get swapped, so that the compressed drive becomes C:.
9. Processing continues from compressed drive.

## Considerations

Performance
If a system is generally CPU bound, disk compression tends to decrease overall performance because data compression requires significant CPU time. But for a system that is more I/O bound, frequently waiting for storage accesses to complete, then compressing a drive can increase overall performance. With compressed data, there is less data to read from or write to a drive.[6]
Data loss due to crosslinked files
Not all compression utilities would confirm the absence of errors in the FAT file system before compressing a disk in place. Some errors, such as crosslinked files, could result in data loss during the transfer process.
Boot drive accessibility may depend on another drive
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. This was not normally an issue for solutions that came bundled with the operation systems unless booting foreign operating systems, as system utilities like SYS were modified to copy the compression drivers to boot disks by default,[6][3] and the corresponding operation systems would also fall back to look for them on drives other than the boot disk if they couldn't be found there.
Uninstall limited by host drive size
Uninstallation was problematic if the expanded size of data on the compressed disk was larger than the normal disk capacity.
Accidentally deleting virtual drive file
Users did not always realize that the large file on the host drive contained the compressed drive. While it was usually hidden by the compression utility, users who did find the large file curious or suspicious were able to delete it which resulted in the loss of all the files stored in it.

## Examples

### Hardware-assisted

Some of the initial disk compression solutions used a coprocessor via driver software. Examples include:

Stacker
From Stac Electronics.[8][9]
Expanz!
From InfoChip Systems.[8][9][10]
DiskDoubler dd2000
From Datran Corporation.

### Software only

As processor power increased over time, software-only solutions began to reach or even outperform the performance of hardware-assisted solutions. These utilities were third-party components, either bundled in an OS distribution or installed separately.

Squish
From Sundog Software.[11][12][13]
Stacker
From Stac Electronics.[9]
XtraDrive
From Integrated Information Technology.
SuperStor
From AddStor.[8][9]
DoubleDisk
From Vertisoft Systems.[8][9]
DoubleSpace
Based, in part, on Vertisoft Systems' DoubleDisk.[7]
DriveSpace
DoubleSpace with a different compression algorithm (DRVSPACE.BIN).
JAM
(JAM.SYS) from JAM Software, Kiev, Ukraine.[14]
DiskDoubler
From Salient Software.
Double Density
From Data Becker.

### Bundled

Bundling disk compression with a new computer appealed to both resellers and users. Resellers could claim more storage space, and users liked that they did not have to install or configure the software. Operating systems pre-installed on new computers with bundled disk compression included:

DR DOS 6.0 (1991)
Bundled with a custom version of SuperStor.
PalmDOS 1.0 (1992)
Bundled with a DPMS-enabled version of SuperStor.
MS-DOS 6.0 (1993)
Bundled with DoubleSpace. (MS-DOS 6.0 introduced the so-called DOS preload API, an undocumented[4][5] challenge–response type interface which allowed DoubleSpace to be loaded before CONFIG.SYS was processed.)
PC DOS 6.1 (1993)
While the original release did not include a disk compressor, a custom version of  SuperStor/DS was included in a later release, also introducing the preload API in the PC DOS line.
MS-DOS 6.2 (1993)
Bundled with an improved version of DoubleSpace.
Novell DOS 7 (1993)
Bundled with a DPMS-enabled version of Stacker (3.12), which also supported compressed data exchange with remote NetWare and Personal NetWare servers, also running Stacker, in order to avoid unnecessary recompression when copying files.[6] It also introduced support for the DOS 6 preload API in order to maintain compatibility with Microsoft's DoubleSpace in multi-boot scenarios.[4][6] A similar mechanism was used to load the optional single- or multi-user SECURITY component.
PTS-DOS Extended 6.4 (1994)
Bundled with a disk compression component named  Folder (FOLDER.SYS).[15]
PC DOS 6.3 (1994)
Bundled with SuperStor/DS.
MS-DOS 6.22 (1994)
Bundled with DriveSpace. (Note that MS-DOS 6.21 shipped with no disk compression software for legal reasons.)
PC DOS 7.0 (1995)
Bundled with Stacker 4.02 (DPMS-enabled).
Windows 95 (1995)
Bundled with DriveSpace 2.
Windows 95 OSR2 (1996)
Bundled with a stripped-down version of DriveSpace 3.
Windows 95 Plus! (1996)
Bundled with the full version of DriveSpace 3.
OpenDOS 7.01 (1997)
Bundled with Stacker 3.12 (DPMS-enabled).[6]
DR-DOS 7.02 (1998)
Bundled with Stacker 3.12 (DPMS-enabled).[16] DR-DOS 7.02 also added support for DriveSpace[2]
PC DOS 2000 (1998)
Bundled with Stacker 4.02 (DPMS-enabled).
Windows 98 (1998)
Bundled with DriveSpace 3.
DR-DOS 7.03 (1999)
Bundled with Stacker 3.12 (DPMS-enabled).
Windows 98 SE (1999)
Bundled with DriveSpace 3.
PTS-DOS Pro 2000 (1999)
Bundled with  Datacomp.

### Related

Notable software adjacent to disk compression includes:

Squeeze
Squeeze (from Turner Hall Publishing) was a resident DOS file compressor for Lotus 1-2-3 and Lotus Symphony files.[17]
Squish Plus ROM
This special ROM chip (from Sundog Software and distributed through Personalized Software) contained a custom version of Squish Plus with only 36 KB footprint adapted for the HP Portable Plus.[13]
Double Tools for DoubleSpace
Double Tools (from Addstor) enhances the functionality of the DoubleSpace utility bundled with MS-DOS 6.0.
Multimedia Stacker
Multimedia Stacker (from Helix Software) bundled Stac's DPMS-enabled Stacker 4.01 with Helix Cloaking and utilities, utilizing Cloaking's built-in DPMS server to relocate and run in protected mode.
THS filesystem
THS (from Thomas Scheuermann; 1994–1996) was a compressed file system driver for Linux which could read some compressed volume files.[18][19][20]
DMSDOS
DMSDOS (1996) was a Linux kernel driver to support the reading and writing of DoubleSpace, DriveSpace 2 & 3, and Stacker 3 & 4 volumes.[21][22]
NTFS compression
Windows includes support for compressing files and folders in an NTFS partition. As such, it has aspects of both file and disk compression.

## See also

* cramfs
* Disk fragmentation
* e2compr
* Executable compression
* Microsoft Real-Time Compression Interface
* RAM compression
* Self-extracting archive
* SquashFS

## References

1. ↑ Kozierok, Charles M. (17 April 2001). "Disk Compression". The PC Guide. http://www.pcguide.com/ref/hdd/file/compr-c.html.
2. ↑ 2.0 2.1 2.2 2.3 "Caldera OpenDOS 7.01/7.02 Update Alpha 3 IBMBIO.COM README.TXT". 1997-10-02. http://www.uni-bonn.de/~uzs180/download/ibmbioa3.zip. [1]
3. ↑ 3.0 3.1 DR-DOS 7.03 WHATSNEW.TXT — Changes from DR-DOS 7.02 to DR-DOS 7.03. Caldera, Inc.. 1998-12-24. http://www.lookas.net/ftp/incoming/darbui/Justas/DRDOS/WHATSNEW.TXT. Retrieved 2019-04-08.
4. ↑ 4.0 4.1 4.2 Undocumented DOS: A programmer's guide to reserved MS-DOS functions and data structures - expanded to include MS-DOS 6, Novell DOS and Windows 3.1 (2 ed.). Addison Wesley. 1994. ISBN 0-201-63287-X. https://archive.org/details/undocumenteddosp00andr_0. (xviii+856+vi pages, 3.5"-floppy) Errata: [2][3]
5. ↑ 5.0 5.1 DOS Internals. Addison Wesley. 1994. ISBN 978-0-201-60835-9. [4][5] Errata: [6][7][8]
6. ↑ 6.0 6.1 6.2 6.3 6.4 6.5 6.6 (in de) NWDOS-TIPs -- Tips & Tricks rund um Novell DOS 7, mit Blick auf undokumentierte Details, Bugs und Workarounds. MPDOSTIP (3 ed.). 1997-07-30. http://www.antonis.de/dos/dos-tuts/mpdostip/html/nwdostip.htm. Retrieved 2015-04-05. NWDOSTIP.TXT is a comprehensive work on Novell DOS 7 and OpenDOS 7.01, including the description of many undocumented features and internals. It is part of the author's yet larger MPDOSTIP.ZIP collection maintained up to 2001 and distributed on many sites at the time. The provided link points to a HTML-converted older version of the NWDOSTIP.TXT file.
7. ↑ 7.0 7.1 "Hands on - Under the Hood: Inside MS-DOS 6 - The developers of MS-DOS describe the operating system's memory optimization and disk-compression technology". BYTE Magazine 18 (8): 197–202. July 1993. https://archive.org/stream/BYTEVol1808199307PentiumPCs/BYTE Vol 18-08 1993-07 Pentium PCs#page/n203/mode/1up. Retrieved 2016-11-01. [9]
8. ↑ 8.0 8.1 8.2 8.3 "The big squeeze". InfoWorld 14 (7): 57–63. 1992-02-17. https://books.google.com/books?id=_z0EAAAAMBAJ&pg=PA62. Retrieved 2015-04-06.
9. ↑ 9.0 9.1 9.2 9.3 9.4 "Double - no - triple your hard disk space with on-the-fly data compression utilities". PC Magazine 11 (2): 261. 1992-01-28. https://books.google.com/books?id=uEkrL23rU98C&pg=PT280. Retrieved 2015-04-06.
10. ↑ "Expanz! board quickly compresses files on all disk types but forfeits some DOS compatibilities". PC Magazine 9 (19): 13. 1990-11-13. https://books.google.com/books?id=WIeyaksLI8gC&pg=PT44. Retrieved 2015-04-06.
11. ↑ "Squish - File compressor crams data into smaller space, but slowly". InfoWorld 9 (6): 55. 1987-02-02. https://books.google.com/books?id=8jsEAAAAMBAJ&pg=PA55. Retrieved 2015-04-05.
12. ↑ "Squish Puts a Squeeze on Files Before They Are Written to Disk". PC Magazine 6 (4): 46. 1987-02-24. https://books.google.com/books?id=phxlBt4dX3oC&pg=PA46. Retrieved 2015-04-06.
13. ↑ 13.0 13.1 "50% more file space for as little as $89.95". The Portable Paper (Personalized Software, now Thaddeus Computing) 4 (4): 46. 1989-07-08. http://www.hpmuseum.net/pdf/ThePortablePaperV4N4_48pages_Jul-Aug 89_OCR.pdf. Retrieved 2015-04-05.
14. ↑ http://files.mpoli.fi/unpacked/software/dos/compress/jam125sw.zip/readme.doc [bare URL plain text file]
15. ↑ "MS-DOS-Clone made in Russia". Computerwoche. 1994-05-06. http://www.computerwoche.de/a/ms-dos-clone-made-in-russia,1121205. Retrieved 2015-04-12.
16. ↑ Caldera DR-DOS 7.02 User Guide. Caldera, Inc.. 1998. http://www.drdos.net/documentation/usergeng/uglontoc.htm. Retrieved 2013-08-10.
17. ↑ "Squeeze 10 times as many spreadsheets on a disk - SQZ! - The data squeezer for Lotus". PC Magazine (Turner Hall Publishing): 155. 1986-10-14. https://books.google.com/books?id=nuXmVNll5JEC&pg=PA155. Retrieved 2016-11-18.
18. ↑ "FTP link". sunsite.unc.edu. ftp://sunsite.unc.edu/pub/Linux/system/Filesystems/dosfs/thsfs.tgz. [dead ftp link] (To view documents see Help:FTP)
19. ↑ "Re: Disk Compression - Stacker - Drivespace, etc". https://lists.debian.org/debian-user/1996/09/msg01042.html.
20. ↑ http://ftp.nluug.nl/ftp/ibiblio/system/filesystems/thsfs.lsm [bare URL plain text file]
21. ↑ "DMSDOS - Linux kernel driver". 2005-03-18. http://cmp.felk.cvut.cz/~pisa/dmsdos/.
22. ↑ "DMSDOS CVF module". 1998-11-19. http://cmp.felk.cvut.cz/~pisa/dmsdos/dmsdos.html.

## External links

* "MS-DOS 6 Technical Reference". http://www.microsoft.com/technet/archive/msdos/01_intro.mspx?mfr=true.
* "DoubleSpace CVF file layout". http://www.techhelpmanual.com/805-doublespace_compressed_volume_file_layout.html. ff.
* "How Safe is Disk Compression?". BYTE Magazine. February 1994. Archived from the original on 2008-06-19. https://web.archive.org/web/20080619060529/http://www.byte.com/art/9402/sec6/art1.htm.
* "How To... Compress Hard Drives". Smart Computing. April 1999. http://www.smartcomputing.com/editorial/article.asp?article=articles/archive/l0504/9834/9834.asp&guid=.

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Disk compression. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Disk_compression&oldid=4346729"