speed47 / dvdisaster

A tool providing additional ECC protection for optical media (unofficial version)
https://dvdisaster.jcea.es
GNU General Public License v3.0
259 stars 20 forks source link
blu-ray cd-rom dvd-rom ecc recovery-image

:cd: What is dvdisaster?

dvdisaster provides additional ECC protection for optical media. If a medium gets damaged, dvdisaster can recover it as long as the amount of damage is smaller than the amount of ECC data you added to protect it.

It can loosely be compared to .par2 files, but the protection works at the iso level instead of working at the file level. This way, even if metadata from the optical medium filesystem is damaged, dvdisaster can still work flawlessly.

Please refer to the PDF manual for more information.

:wrench: Unofficial version

The last upstream version by Carsten Gnörlich is dated 2017, and could be found on the official website which is now down. The original source code repository doesn't have it, but Debian sources does, thanks to the maintainer there. The original README has been left untouched in this repository.

This version is built on top of the latest upstream version, with the following notable enhancements:

Please refer to the CHANGELOG for all the details.

In 2021, upstream development briefly resumed on a new website. The new team successfully picked up some of the improvements of this unofficial version. If/when upstream resumes development again, their changes will be merged back here when possible. In any case, even if at some point we succeed in upstreaming all our patches, and both codebases are exactly the same, this repository will stay up as it provides automated tests and prebuilt binaries.

This version will never break compatibility with upstream versions, the goal is to ensure an optical media protected by upstream dvdisaster will still be able to be repaired with this version 10+ years from now. Regression tests are here to ensure this is the case.

:twisted_rightwards_arrows: 3 available protection modes ("codecs")

For a more detailed explanation of the algorithms, please refer to the codecs specification PDF.

:one: RS01 creates error correction files which are stored separately from the image they belong to. The artefact is an ecc file, which must be stored on another media than the one we're protecting.

:two: RS02 creates error correction data which is added to the medium to protect, we call this augmenting the image we're protecting. Damaged sectors in the error correction information reduce the data recovering capacity, but do not make recovery impossible - a second medium for keeping or protecting the error correction information is not required.

:three: RS03 is a further development of RS01 and RS02. It can create both error correction files and augmented images, with the following added features:

Rough comparison table:

Codecs RS01 RS02 RS03
Robustness* :star: :star::star::star: :star::star::star::star::star:
Speed :star::star: :star: :star::star::star::star::star:
Space efficiency :star::star::star::star::star: :star::star::star::star::star: :star::star::star::star:
Augmented images :x: :heavy_check_mark: :heavy_check_mark:
Separate files :heavy_check_mark: :x: :heavy_check_mark:

*Robustness against corruption of the dvdisaster-added ECC parts themselves

:bulb: Rationale

Even if the optical media era is sunsetting now, and has been for a few years, it's still of some value for off-site backups. In any case, we still have media in our hands that we want to be able to repair, should it be damaged, during the next years/decades. Repairing is actually pretty much the very reason of dvdisaster existence (as long as parity data has been added, of course). The idea of this unofficial version is to ensure dvdisaster doesn't get hard to find, use or compile, should upstream development never resume (we hope it does!) This is also why precompiled Windows binaries and a precompiled static CLI-only Linux version are available here.

:hammer: Compiling

See the INSTALL file. The workflow file that is used to automatically build binaries for each release can also help.

:camera: Screenshots

Reading a damaged CD under Windows:

dvdisaster_damaged_cd

Verifying the ECC correction data from the damaged image:

dvdisaster_cd_verify

Repairing the damaged image thanks to augmented data:

dvdisaster_cd_repair

Verification of the image after correction:

dvdisaster_cd_verify_ok

Reading a quad-layer multi-session BDXL with Linux GUI:

dvdisaster_bdxl_read

Note that the disc still has some room for more sessions (capacity is 128 GB).