Disk the Masher system (.dms) was an often used method on Amiga, to create a compressed image of a discs (usually floppy). The discs were read block-by-block, and their data structure was maintained.
The DiskMasher format is copyright-protected and has problems storing particular sequences of bits due to bugs in the compression algorithm, but was widely used in the pirate and demo scenes.